0 votes

I would like to add the following logic into a Powershell script that will be triggered on 'After Create User'.

  • Read the value of the 'title' property of the user just created
  • Search Adaxes for a Custom Command that has the same name as the value of 'title' (textual equivalence)
  • Invoke the Custom Command found

I will create Custom Commands to match every possible value of 'title' and each will take a single parameter of 'True' or 'False'.

Could you assist with how to script this please?

Many thanks.

by (310 points)

1 Answer

0 votes
by (294k points)

Hello Bernie,

Have a look at the following script from our repository: https://www.adaxes.com/script-repository/execute-custom-command-with-name-specified-in-user-property-s574.htm. If the Custom Command to be executed has parameters that should be specified upon execution, have a look at the following SDK article for an example: https://adaxes.com/sdk/?IAdmTop6.html. Should you have issues updating the script to meet your needs, please, provide us with all the possible details on the parameters and their values to be set for command execution, and we will help you.

Related questions

0 votes
1 answer

Hi team, I have a follow up to this question https://www.adaxes.com/questions/14234/business-after-adding-members-powershell-script-executed Let me explain my setup A rule- ... area% failed due to the following exception: $($_.Exception.Message)", "Error") }

asked Feb 13 by wintec01 (1.5k points)
0 votes
1 answer

Hi Is it possible to get a business rule which calls a custom command powershell script to wait for the script to complete before continuing? Thanks Matt

asked Apr 27, 2017 by chappers77 (2.0k points)
0 votes
1 answer

We have a business rule that will update an AD attribute when a new member is added to a group. This business rule works when we use powershell commands or the admin console ... set to trigger "After adding a member to a group". Thank you for your support!

asked Mar 29, 2023 by mark.it.admin (2.3k points)
0 votes
1 answer

I have a few reports that I want to add to a custom command workflow such that the report is executed and exported to a csv in a pre-defined (variable) path. I was ... a script to run the report and export it, but could not locate information on that process.

asked Oct 28 by aweight (60 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)
3,588 questions
3,277 answers
8,303 comments
548,079 users