| RoleAssignmentControllerDelegateRolesEx 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 DelegateRolesEx(
IEnumerable<int> roleIds,
IEnumerable<int> identityIds,
DateTime validFrom,
DateTime validTo,
int delegatorIdentityId,
int originId,
bool skipEvents,
SqlConnection dbConnection,
SqlTransaction dbTransaction
)
Parameters
- roleIds
- Type: System.Collections.GenericIEnumerableInt32
Ids of the roles that should be delegated.
- identityIds
- Type: System.Collections.GenericIEnumerableInt32
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.
- skipEvents
- Type: SystemBoolean
Skip launching events at save
- dbConnection
- Type: System.Data.SqlClientSqlConnection
- dbTransaction
- Type: System.Data.SqlClientSqlTransaction
See Also