Enable user registration
When users (successfully) log in to your portal via an identity provider, you have the option to create a new user in Intrexx User Management if the user does not yet exist in Intrexx, or to update the user's information if the user already exists in Intrexx.
Creating or modifying an Intrexx user is done using two Groovy scripts that are executed when user registration is enabled for a provider. The Groovy scripts are configured using the "Binding: Web" dialog box.
Step-by-Step
To set up user registration for new or existing Intrexx users, follow these steps:
-
Click the "
" icon (Edit Groovy scripts).(The section " Enter ID Provider Data in User Management " describes how to access the dialog box.)
The "Edit Groovy Scripts" dialog box appears.
Using the "Open Intrexx Editor " button, you can create a Groovy script to register a new Intrexx user or modify an existing Intrexx user.
If no Groovy script has been created yet, a sample script is inserted when you open the script editor.
Register a New Intrexx User
After successfully logging in to the portal, an Intrexx user account is created if one does not already exist. In the Groovy script, you can use the Groovy User Management API for this purpose. The ` accessTokenDetails ` variable can be used to retrieve the ID token details and the access token for HTTPS requests.
The script is stored in the file internal/cfg/oauth2_user_registration.groovy.
Edit an Existing Intrexx User
The script is stored in the file internal/cfg/oauth2_user_update.groovy.
The Groovy scripts are defined for all providers. If necessary, the provider type can be retrieved in the script using `accessTokenDetails["idp"]`.
-
Click the " Open Intrexx Editor" button.
The Intrexx Editor appears.
-
Edit the script.
-
Click "OK."
You will return to the "Edit Groovy Scripts" dialog box.
You have set up user registration.
More Information


