Assign Organization User Role
A 3-step recipe with Kinde. We can help you get access.
Recipe · 3 steps
Assign Organization User Role
with Kinde
Resolve a user by search and assign an organization role.
- Search for the user by the supplied query, returning at most one page of results to resolve the user id.
- Add the supplied role to the matched user within the organization.
- Read back the user's roles within the organization to confirm the new role is present.
What you'll need to have ready
- query: Email or name to search the user by. Use '*' to match all.
- orgCode: The organization code the role is granted within.
- roleId: The id of the role to assign to the user.
For your developer
Arazzo workflow kinde:assign-org-user-role, 3 operations: searchUsers → CreateOrganizationUserRole → GetOrganizationUserRoles. Specs on APIs.io.