IAzureCosmosDbGetRoleAssignmentsOfAccount Method

Retrieves the role assignments, and the default role assignment in the user, based on parameter user/

Definition

Namespace: MobileTrack.DataContainers.Cosmos
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
Task<IReadOnlyCollection<RoleAssignmentDto>> GetRoleAssignmentsOfAccount(
	AccountDto user,
	bool includeDefaultAssignment,
	CancellationToken cancellationToken = default
)

Parameters

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

Return Value

TaskIReadOnlyCollectionRoleAssignmentDto
Found role assignments; the list will be at least 1 in length, denoting the default role assignment of the user.

Exceptions

ArgumentNullExceptionThrown if user is .

See Also