Skip to main content
Version: 2.0.0


Assign a role to a specific user.


userId - The id of the user. This is the unique key of the user.
roleId - The id of the role. This can also be the role key.
tenantId - The id of the tenant. This can also be the tenant key.


var response = await permitClient.Api.AssignRole(userId, roleId, tenantId);