Skip to main content
Version: 2.0.0

getAssignedRoles

Get all the assigned roles for a specific user.

Parameters

user - The id of the role. This can also be the role key.
tenant - optional - The id of the tenant or the tenant key. If no is tenant provided, all tenants will fetch.

Payload

{
"user": "user",
"tenant": "tenant"
}

Implementation

roles = await permit.api.get_assigned_roles(user, tenant)