0 votes

Hi,

When we add custom command action in UI, when a user selects 1 or more users for that custom commands, is there a way to integrate those selected users as input value into that custom command script and take action on those users.

by (120 points)

1 Answer

0 votes
by (289k points)
selected by
Best answer

Hello,

If you are selecting multiple users to execute the custom command on, there is no such possibility. The thing is that the command will be executed separately for each user and there will be no way to obtain other selected users.

If you are using a parameter to select multiple users, have a look at step 5 of the following tutorial for details and examples on how to user custom command parameters: https://www.adaxes.com/help/CreateCustomCommand.

0

Hi,

Thanks for the valuable inputs. I'm able to choose a user from UI and pass them as input into the script to be executed. However, when I select the user from self-service portal, I have to choose them twice, first under "Object selection" then again under "Operation configuration". Is there a way to use the same user selected under object selection into next step. I'm using "Directory Object picker" in custom command for my use case.

0

Hello,

Unfortunately, there is no such possibility as those are two separate unrelated options. The first is for selecting the users to execute the custom command on. The second is for selecting parameter values. For each command execution your script can only have access to the particular target object and selected parameter values.

Related questions

0 votes
1 answer

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. ... and pass it as a param in a custom command that is called in one of the steps?

asked May 12, 2021 by davfount90 (20 points)
0 votes
1 answer

Can you run a powershell to get a Custom Command's ID?

asked Jun 10, 2020 by hgletifer (1.3k points)
0 votes
1 answer

Hi, I followed this example: https://www.adaxes.com/sdk/IAdmTop6.html, but because the Custom Command is disabled, I get the following error message: System.Management.Automation ... if I enable the Custom Command. I am using Adaxes 2018.2 Best Regards Martin

asked Feb 19, 2020 by Martin (150 points)
0 votes
1 answer

To the left of the user object there are several custom commands showing. I don't want our service desk to see them. Why are they showing? How do I remove them. Must be something simple. They only see these when looking at a user Object.

asked Jan 17 by mightycabal (1.0k points)
0 votes
1 answer

I had a business rules that had a PowerShell script to update User properties in a SQL table. It was working fine. I moved the PowerShell to a custom command so I could ... in the custom command does get the values for the User object. Am I missing something?

asked Jun 2, 2014 by sdavidson (730 points)
3,548 questions
3,238 answers
8,232 comments
547,810 users