Configure the DAE
To configure the DAE, you must:- Register the application with Auth0
- Create a database connection
- Disable all other connections for the Auth0 Application
- Create users for database connection
- Assign roles to users
- Install and configure the extension
- Use the extension
Register the application with Auth0
Create the Application that the Delegated Administration Extension will expose to those who should have administrative privileges for the Users page. To do this, create a delegated admin application in Auth0. When finished, note the application’s .Create a database connection
In this example, a database connection will serve as the source of your users who are allowed access to the Users area. To configure this, create a database connection. While setting up your connection:- Use a fitting connection name, such as
HelpDesk. - Enable the Disable Sign Ups toggle. For security purposes, this ensures that even users who have the link to the database connection cannot sign themselves up.
Disable all other connections for the Auth0 application
By default, Auth0 enables all connections associated with your tenant when you create a new Application. For this example, disable all connections other than your newly-created database connection. This helps keep the application secure because no one can add themselves using one of your existing connections. To configure this, update application connections.Create users for the database connection
To continue, you must create at least one user and attach it to your connection.Assign roles to users
event.authorization.roles. To add roles to Organization members, read Add Roles to Organization Members.- Create DAE roles. The names of the roles you create must match the names of the pre-defined DAE roles above.
- Assign DAE roles to a user manually.
-
Add user roles to the DAE namespace in the ID Token using Actions:
CLIENT_ID placeholder with your delegated admin application’s Client ID andreplace {yourTenant} with your tenant name. For example, if your tenant’s name is “tenant_name_example”, the namespace would be: https://tenant_name_example/auth0-delegated-admin
To learn more about creating Actions, read Write Your First Action
context.authorization object.If you choose not to use Authorization Core, you should define DAE roles in one of the following fields on the user profile:user.app_metadata.rolesuser.app_metadata.authorization.roles
Install and configure the extension
Now that we’ve created and configured an application, a connection, and our user, we can install and configure the Delegated Admin Extension itself.Use the extension
Once installed, you are ready to use the Delegated Admin Extension. Navigate to the extension using the appropriate login link for your region and your tenant’s extensibility runtime.Delegated Administration session timeout
sessionStorage. You must start a new session on each page reload.