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