capabilities.work

Create User and Assign Roles

A 3-step recipe with Auth0. We can help you get access.

Recipe · 3 steps

Create User and Assign Roles

with Auth0 · Identity & Access Management

Create a user and grant tenant roles in one pass.

  1. Create a new user in the supplied database connection with the given email and password.
  2. Assign the supplied tenant role ids to the newly created user.
  3. Retrieve the user record to confirm the roles were applied and return the final identity.
What you'll need to have ready
  • connection: Name of the database connection the user should be created in.
  • email: Email address for the new user.
  • password: Initial password for the new user.
  • roles: List of existing role ids to assign to the new user.
For your developer

Arazzo workflow auth0:create-user-assign-roles, 3 operations: post_users → post_user_roles → get_users_by_id. Specs on APIs.io.