AccessRequestV2CreateRequestedResourceAssignments Method |
This code method is intended specifically for the "Access request ED2" feature package.
The code method is used in the "Request access" process template. It creates a resource assignment data object for each of the selected resources. If no identities are selected the assignments will be created for the identity belonging to the creator of the action object.
The status of the created assignments depend on whether they require approval or not. If they do require approval a number of approval processes are launched. The number of approval processes depends on which resource has been requested. The system inspects the requested resources and determines whether they need approval and if so whether it is a manager and/or a role owner who must approve. It then groups them together so that assignments with identical approval needs are being handled by the same approval process. The approvers are notified by email using the "Approve role assignments" mail template.
Codemethod usage | |
---|---|
Designed to be used in a process only | Yes |
Action Object | Access request. |
Security | The method overrides all security. It therefore doesn't have to be executed by the SYSTEM user. |
Namespace: Omada.OE.Solution.OIM.Assembly.PackagedSolution
public void CreateRequestedResourceAssignments( CodeMethodInvokeContext context, string configuration )