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 (272k 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.1k 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

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 (100 points)
0 votes
1 answer

Hello, Is it possible to execute a custom command after creating a user, with the intention to prompt the end user for more information? For example we have a User ... would then prompt for a 'Country' to be specified from a param dropdown list. Thanks

asked Mar 10, 2022 by bavery (250 points)
3,351 questions
3,052 answers
7,791 comments
545,082 users