FortiAuthenticator
FortiAuthenticator provides centralized authentication services for the Fortinet Security Fabric including multi-factor authentication, single sign-on services, certificate management, and guest management.
FrankY1
Staff
Staff
Article Id 394651
Description

This article describes how to customize the self-service portal to utilize the custom user fields. In FortiAuthenticator, custom fields can be configured in the user information and then used in the self-service portal.

Scope FortiAuthenticator.
Solution

Step 1. Edit Custom Fields Settings: 

Refer to this document for instructions on navigating to Custom User Fields: Custom user fields.

 

In this example, the Custom field 1 is changed to 'Department'. 

 

edit custom field.png

 

Step 2. Create a new portal and portal policy to allow self-registration:

Refer to these documents:

Portals

Self-service portal policies

 

Step 3. Edit the User Registration Page HTML code.:

The portal HTML code needs to be edited to include the custom field. Under Authentication -> Portals -> Replacement Messages -> User Registration Page:

 

Picture4.png

 

Select 'Detach' to have better visibility of the source code, select 'Toggle Tag List' to show the usable tags, such as the custom field names and form field values. Follow the format of existing form fields and add the HTML code for the custom fields.

 

Picture3.png

 

When completed, the custom fields should be visible in the User Registration Page. Save the changes. 

 

Step 4. Test:

Navigate to the portal URL (configured in Step 2 under the portal policy), select 'Create account'. The custom field 'Department' is visible in the self-register portal.

 

self register 1.png

 

self register 2.png

 

After registration, the user can be found in the specified user group. And the value of the 'Department' field is saved. 

 

Picture5.png