Skip to main content
Version: 2.0.0


Assign a role to a specific user.


user - The user the role will be assigned to (accepts either the user id or the user key).
role - The role that will be assigned (accepts either the role id or the role key).
tenant - The tenant the role is associated with (accepts either the tenant id or the tenant key).


RoleAssignmentRead ra = permit.api.users.assignRole("", "admin", "tesla");