Technical Tip: How to use Custom User Fields in FortiAuthenticator Self-Service Portal
| 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'.
Step 2. Create a new portal and portal policy to allow self-registration: Refer to these documents:
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:
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.
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.
After registration, the user can be found in the specified user group. And the value of the 'Department' field is saved.
|






