ModelFactoryGenerateNewRoleAssignment Method
Generates a new role assignment for user recipient
Namespace: MobileTrack.Common.ExtensionsAssembly: MobileTrack.Common (in MobileTrack.Common.dll) Version: 0.7+1dadc87dcf0a0f837e19a3ce2deb7c1cd85375d1
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