IAzureCosmosDbGetRoleAssignmentsOfCompany Method
Retrieves the Role Assignments belonging company.
Namespace: MobileTrack.DataContainers.CosmosAssembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
Task<List<RoleAssignmentDto>> GetRoleAssignmentsOfCompany(
CompanyDto company,
RoleDto? role = null,
CancellationToken cancellationToken = default
)
- 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
TaskListRoleAssignmentDtoFound
RoleAssignmentDto's, or an empty
ListT if none were found.
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.