Share all details about your problem, including any error messages you may have received.
Hello everyone!
Currently we have a requirement where for the Account Management (operations Enable/Disable/Delete) the users from one workgroups should be able to submit any of the operations without the approvals, but every other identity should be able to submit it with the manager approval on this operation.
I’ve tried changing the approvalScheme in the LCM provisioning workflow to the custom script, but all the time (even for the specified identities) the approval items are generated for the manager.
Has anyone encountered this type of requirement before? Perhaps someone could help me with this, I would really appreciate any help.
Here is the script snippet:
I have tried the script below. It sets the ApprovalSchema to “none” for workgroup members and to “manager” for others. You can incorporate the following script into your approvalschema variable within the LCM Provisioning workflow.
Thanks again, you’ve helped me a lot!
It works fine, but the only thing that confuses me is that if the users from the workgroup are not the requesters, but also one who’s account is disabled\enabled, there are also no approvals.
For example, if I use the system administrator user to block a random user it generates the manager’s approval, but if I block the user from the specified workgroup (“ISA” in our environment) there are no approvals for them and the operation will proceed immediately.
If a workgroup member submits a request for themselves or another user, or if an admin submits a request for workgroup member, the approval scheme is set to ‘none’.
Let me know, if you have any issue with this code.
Regards,
Arun
Thank you for your reply.
There are 2 questions for now.
Typed variable declaration : Attempt to resolve method: getName() on undefined variable or class name: identity : at Line: 5 . I’ve fixed it with the Identity identity = plan.getIdentity();
And the second one is [Undefined argument: launcher : at line: 17]. And I have no idea how to fix it…
Typed variable declaration : Attempt to resolve method: getName() on undefined variable or class name: identity : at Line: 5 . you can remove the line no 5. You will get the identityName directly from the workflow variable.
2.And the second one is [Undefined argument: launcher : at line: 17]. please check the workflow variable. If the launch is not present, you add the below variable to the workflow.
** <Variable input=“true” name=“launcher”/>**