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 (1.8k points)

1 Answer

0 votes
by (177k 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 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 (3.7k 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 by Martin (280 points)
0 votes
1 answer

Hi In which sequence are Business Rules executed, when an object is covered by more than one Business Rule Scope ? I have done some tests, which indikated a top-down approach ... Rule 1 (then) Business Rule 2 (then) Business Rule 3 - Thanks and Merry Christmas

asked Dec 20, 2018 by Boxx.dk (11.9k points)
0 votes
1 answer

How can I execute a Business Rule through PowerShell? I have a Business Rule that fires when a User is created. I have a custom field on the User that can be updated though ... based on the value in this custom field, when the User is updated. Is it possible?

asked Feb 10, 2014 by sdavidson (5.1k points)
0 votes
1 answer

Hello, I have a small question about executing custom commands remotely with powershell. We are now using Adaxes custom commands through orchestrator with remote ... /$UserAD_DN", $NULL, $NULL, 0) $UserAD.ExecuteCustomCommand($command_example) Kr, Serge

asked Oct 12, 2015 by kerremansserge (1.4k points)
2,183 questions
1,948 answers
5,392 comments
5,258 users