IAzureCosmosDbGetRoleAssignmentsOfCompany Method

Retrieves the Role Assignments belonging company.

Definition

Namespace: MobileTrack.DataContainers.Cosmos
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
Task<List<RoleAssignmentDto>> GetRoleAssignmentsOfCompany(
	CompanyDto company,
	RoleDto? role = null,
	CancellationToken cancellationToken = default
)

Parameters

company  CompanyDto
Company to receive the role assignments for.
role  RoleDto  (Optional)
Optional: if set, we will only retrieve assignments for that particular role.
cancellationToken  CancellationToken  (Optional)
Cancellation token

Return Value

TaskListRoleAssignmentDto
Found RoleAssignmentDto's, or an empty ListT if none were found.

Remarks

Note: this does not include the default role assignment all users have on their personal AccountDto, which is scoped to the EnvironmentDto they are a part of. This method only retrieves the additional role assignments created for the company.

Exceptions

ArgumentNullExceptionThrown if company is .

See Also