Click or drag to resize

AccessRequestV2 Methods

The AccessRequestV2 type exposes the following members.

Methods
  NameDescription
Public methodCreateRequestedResourceAssignments

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 onlyYes
Action Object Access request.
Security The method overrides all security. It therefore doesn't have to be executed by the SYSTEM user.
Public methodStatic memberGetCodeMethodRoleAssignmentCreationParams
This method constructs the CodeMethodRoleAssignmentCreationParams object for the packaged solution Access Request v2. It can be used in custom access request implementations to customize the Access Request by replacing the standard CodeMethod.
Top
Extension Methods
  NameDescription
Public Extension MethodToBool
Converts object to boolean.
(Defined by ObjectExtensions.)
Public Extension MethodToDateTime
Converts object to DateTime.
(Defined by ObjectExtensions.)
Public Extension MethodToInt
Converts object to integer.
(Defined by ObjectExtensions.)
Top
See Also