Skip to main content
Version: 2.0.0

ListAssignedRoles

Get all the assigned roles for a specific user.

Parameters

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

Implementation

const roles = await permitClient.Api.ListAssignedRoles(userId, tenantId);