Typical Use Cases
- Assign roles to new users on registration
- Give access to resources for specific users
- Temporary give access to users
|Load Users||Can be used to grant roles to a single user or to a list of users.|
|User Registration||Can be used to grant roles to a newly created user.|
Input Parameter Reference
|Role||Select the security role to grant from a list with all the roles in the application. RoleId can also be used as input. If the user already has the role, it will be removed from it and then regranted.||Yes||Not selected||Yes|
|Other Role Names||Freely input the role identifiers you want to grant. Multiple roles are separated by a comma or semicolon. The role identifier can be a role name or a role ID.||Yes||Empty string||No|
|Role Validity||Set a validity period to the granted role. The validity period can be done: for a number of days, date interval with or without tokens. There is also an option to extend a role validity period for users that already has the role. This option will extend the expiration date by the number of extension days set. |
When the validity period will expire, the user will not have the permissions of that role anymore.
If a role is deleted, it will simply be revoked from any user that has it.
1. Grant a User Role
The action below register a new user and grants it the '[Citizen Developers]' Role. If the user exists and already has the role, nothing will happen. Import it into your application to see it in action.
2. Grant a User Role for a period of time
The action below register a new user and grants it the '[Citizen Developers]' Role just for 30 days. If the user exists already, the old validity period will reset. For example if the user has only 20 days left, it will have again 30 days left after the action is executed. Import it into your application to see it in action.