ModelFactoryGenerateNewRoleAssignment Method
Generates a new role assignment for user recipient
Namespace: MobileTrack.Common.ExtensionsAssembly: MobileTrack.Common (in MobileTrack.Common.dll) Version: 0.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
public static RoleAssignmentDto GenerateNewRoleAssignment(
AccountDto recipient,
RoleDto? role = null,
EnvironmentDto? scope = null
)
- recipient AccountDto
- User that receives the role assignment.
- role RoleDto (Optional)
- Role to assign. If left , the recipient's default role will be used.
- scope EnvironmentDto (Optional)
- Scope to assign. If left , the recipient's assigned environment will be used.
RoleAssignmentDtoGenerated role assignment