IAzureCosmosDbGetRoleAssignmentsOfAccount Method
Retrieves the role assignments, and the default role assignment in the user, based on parameter user/
Namespace: MobileTrack.DataContainers.CosmosAssembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
Task<IReadOnlyCollection<RoleAssignmentDto>> GetRoleAssignmentsOfAccount(
AccountDto user,
bool includeDefaultAssignment,
CancellationToken cancellationToken = default
)
- user AccountDto
- User to get role assignments from
- includeDefaultAssignment Boolean
- Whether to include the default assignment, defined by user's, RoleId
and EnvironmentId
- cancellationToken CancellationToken (Optional)
- Cancellation token
TaskIReadOnlyCollectionRoleAssignmentDtoFound role assignments; the list will be at least 1 in length, denoting the default role assignment of the user.