IAzureCosmosDbGetRoleAssignmentsOfCompany Method
Retrieves the Role Assignments belonging company.
Namespace: MobileTrack.DataContainers.CosmosAssembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
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.