Is there a way to get the name of the user who approved a request and supply that to a step inside of a custom command?

For example, HR submits a status change for an employee. IT then approves this request or rejects it.

Is there a way to grab that IT Staff members name and pass it as a param in a custom command that is called in one of the steps?

by (20 points)

1 Answer

by (306k points)
0 votes

Hello,

Unfortunately, there is no such possibility for a custom command that is executed manually. As a solution, you can use a business rule triggering After updating a ApprovalRequest. The rule will run a script that will execute the custom command. In the script, you can obtain the properties of the user who processed the request and then pass the required property value as a custom command parameter value for execution. For information on how to execute custom commands using scripts, have a look at the following SDK article: http://adaxes.com/sdk/SampleScripts.ExecutingCustomCommands.

Related questions

For any given AD attribute, I'd like to be able to retrieve the defined friendly name for it. Example: l = City, st = State, etc. Is there a way to do that in PowerShell? Thanks!

asked Aug 8 by jaymallery (60 points)
0 votes
1 answer

Is there any way to add a warning message when someone tries to add a group member that already is member? Checked config but found nothing related. Added a new member that ... the group and there is no warning, and the logs show that the task was completed.

asked Jul 9, 2024 by lramirez (20 points)
0 votes
1 answer

I am wanting to export a list of users including the properties of a specific custom attribute. Ideally, I would be able to run a get-admuser and filter on a custom attribute, but even an excel report with the custom attributes would work. Is this possible?

asked Sep 9, 2021 by ggallaway (300 points)
0 votes
1 answer

If I have created an custom command i would like to find where this CC is used (linked) in Adaxes (used in Scheduked Task and so on). How can a general find references ... report where I can find all the Linked Objects that I have created by myself in Adaxes ?

asked Jun 1, 2023 by Beat Ott (50 points)
0 votes
1 answer

We would like to use a script to copy the rules of a ‘Membership type = rule-based’ group and add them to another group. Is this possible? Do you have a script available? Thanks

asked 1 day ago by DRiVSSi (360 points)
0 votes
1 answer