Create Role and Add Permissions
A 3-step recipe with Auth0. We can help you get access.
Recipe · 3 steps
Create Role and Add Permissions
with Auth0 · Identity & Access Management
Create a role and attach API permissions to it.
- Create a new user role with the supplied name and optional description. New roles start with no permissions.
- Associate the supplied resource-server/permission pairs with the new role.
- List the permissions currently associated with the role to confirm the additions.
What you'll need to have ready
- name: Name of the new role.
- description: Optional human-friendly description of the role.
- permissions: Array of resource_server_identifier / permission_name pairs to associate with the role.
For your developer
Arazzo workflow auth0:create-role-add-permissions, 3 operations: post_roles → post_role_permission_assignment → get_role_permission. Specs on APIs.io.