| RoleAssignmentControllerExpireResourceAssignments Method (IListInt32, DateTime, Boolean) |
Expires a number of resource assignment data objects by altering their status and validto date.
Also, "approve" verdicts (for calculated assignments that the resource assignments take part in) are expired.
The method validates that the active user has the proper permissions to expire the assignments.
That is the case if one of the following applies to each of the assignments:
- it is his own assignment
- he is manager of the identity
- he is owner of the resource
- he is owner of the system (which the resource belongs to)
The validation can be overridden with SecurityOverrideContext
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 virtual void ExpireResourceAssignments(
IList<int> assignmentIds,
DateTime newValidTo,
bool setStatusObsolete
)
Parameters
- assignmentIds
- Type: System.Collections.GenericIListInt32
- newValidTo
- Type: SystemDateTime
The new value of valid to. If DateTime.MinValue is provided, then UtcNow is used. - setStatusObsolete
- Type: SystemBoolean
If true the status of the resource assignments is changed to "Obsolete" (notice: not disabled).
When valid to is set to UtcNow and when validity the period is extended by RoPE,
we also want to obsolete the assignments to make sure that they are removed from the calculation.
See Also