Save Button Is Disabled When Configuring Auth0 User-Delegated Access
Last Updated:
Overview
When configuring User-Delegated Access for an application on an API, the Save button remains disabled after selecting Grant Access and a permission. This occurs because the side drawer form state does not register the initial toggle change, or the API is set to allow all applications. Resolve this by creating the grant directly through the Auth0 Management API or by adjusting the Application Access Policy in the Auth0 Dashboard.
Applies To
- Auth0
- User-Delegated Access
- Auth0 Management API
- Auth0 Dashboard
Cause
The side drawer form state does not register the initial toggle change to enable the Save control. Additionally, the Custom API under Application Access Policy > User-delegated Access might be marked as All apps allowed.
Solution
How is the user-delegated grant created via the Auth0 Management API?
Establish the persistent user-delegated permission grant without altering the access policy by making a POST request to the client grants endpoint using a Management API token.
- Make a POST request to the
/api/v2/client-grantsendpoint using a Management API token. - Set the
subject_typeto"user".
Configure the grant via the Auth0 Dashboard
Enable the save control by navigating to the Custom API, ensuring the access policy is not set to allow all applications, opening the editor to grant access, and selecting a permission.
- Navigate to the Custom API and ensure that User-delegated Access under Application Access Policy is not marked as All apps allowed.
- Open the editor and select Grant Access until the status changes to Revoke Access.
- Select a permission, such as
<permission_name>. - Select Save.