last person joined: 15 hours ago 

Enterprise security using ClearPass Policy Management, ClearPass Security Exchange, IntroSpect, VIA, 360 Security Exchange, Extensions and Policy Enforcement Firewall (PEF).
Expand all | Collapse all

ClearPass Guest - API email receipt

  • 1.  ClearPass Guest - API email receipt

    Posted Feb 09, 2016 05:05 PM

    I've managed to create guest acounts using the ClearPass Guest API, but I'd like to be able to have a password automatically generated still and automatically send an email receipt.


    Is there functionality within Guest to be able to do this or would it require an extension of the API?

  • 2.  RE: ClearPass Guest - API email receipt

    Posted Feb 10, 2016 11:59 AM



    here's how to achieve this :) 


    First, go to Clearpass Guest and then to Configuration -­> Pages -> Fields

    2016-02-10 11_45_05-Customize Fields.png


    As you can see, there is a field named auto_send_smtp. This field will automatically send an email to the provided e-mail adress. 

    For the Password auto generation part you will find a field named : random_password


    2016-02-10 11_46_18-Customize Fields.png


    When you click those fields you can edit them and personalize them a lot to your needs. The description of the fields are quite self explanatory.


    Next you need to add those fields to your Guest Creation Form.

    Go to Configuration -­> Pages -> Forms and Views and then select  the create_user form (if this is the one you are using) and click "Edit Fields".

    2016-02-10 11_46_58-Customize Forms & Views.png

    Now add the fields, you should end up with something like this :

    2016-02-10 11_48_05-Customize Form Fields (create_user_1_1_1).png

    You can customize the auto_send_smtp field to make it Hidden or to see it. In this example I selected checkbox and saved with default values.

    2016-02-10 11_48_34-Customize Form Field (auto_send_smtp).png


    Next you should launch the page and have something like this somewhere in it :)


    2016-02-10 11_49_17-Create Guest Account.png

  • 3.  RE: ClearPass Guest - API email receipt

    Posted Feb 10, 2016 06:31 PM

    Looks great, thanks! Will this also work for Guests that are created through the ClearPass Guest API?

  • 4.  RE: ClearPass Guest - API email receipt

    Posted Feb 11, 2016 12:11 PM

    Sure, just go under Home » Administration » Operator Logins » Profiles in CP Guest.

    Then select the profile which your using and click edit. Go to the bottom and select the form you just edited previously on the Create New Device: field. You can also set it as the default page which is useful.