| RoleAssignmentControllerDelegateRoles Method |
The method delegates a number of roles to a number of identities.
In other words, it creates a number of role assignments for the identities corresponding to the roles.
The method validates that the delegating user has the roles that are to be delegated (and that they are active and not expired).
A role is not delegated if the receiving identity has it already.
Namespace:
Omada.OE.Solution.OIM.AppLogic
Assembly:
Omada.OE.Solution.OIM.AppLogic (in Omada.OE.Solution.OIM.AppLogic.dll) Version: 15.0.0.0
Syntaxpublic static void DelegateRoles(
IntegerList roleIds,
IntegerList identityIds,
DateTime validFrom,
DateTime validTo,
int delegatorIdentityId,
int originId,
SqlConnection dbConnection,
SqlTransaction dbTransaction
)
Parameters
- roleIds
- Type: IntegerList
Ids of the roles that should be delegated.
- identityIds
- Type: IntegerList
Ids of the identities who should have the roles.
- validFrom
- Type: SystemDateTime
Start of validity period for the delegated role assignments.
- validTo
- Type: SystemDateTime
End of validity period for the delegated role assignments.
- delegatorIdentityId
- Type: SystemInt32
Id of identity who delegates his roles.
- originId
- Type: SystemInt32
Id of the origin data object - typically a delegation process target object id.
- dbConnection
- Type: System.Data.SqlClientSqlConnection
- dbTransaction
- Type: System.Data.SqlClientSqlTransaction
See Also