0 votes

We have a Business rule that runs after successful user creation. It creates a EULA Word doc with the username and initial password for the new user. It was originally set as a run powershell script action, but we changed it to a custom command where, based on one user attribute (Department) we would run a different EULA script.

Prior to this change it was working. When we instituted the change, the EULA was created properly but the password was no longer populated, and when we test the script in the editor against a valid user, the password field is blank.

This was working before yesterday, and I don't believe any changes have been made to the Adaxes setup...

Screen Shot 2020-07-08 at 9.46.39 AM.png

by (1.4k points)

I reverted the business rule back to run a powershell script and it is working as expected. Possibly there's a scoping issue between just running a script directly and running a custom command? The power shell script in both cases was identical (except for a minor change in a part of the script not connected with the EULA Doc creation...changeing the TO: line when emailing the document)


You can pass the initial password as a parameter to the custom command.

1 Answer

+1 vote
by (182k points)
selected by
Best answer


The thing is that value reference %unicodePwd% can only be used in Business Rules triggering Before/After creating a user, resetting/changing/self-resetting password of a user. In all other cases, including Custom Commands, the value reference will resolve into an empty value.

As Eugene mentioned, you can execute the Custom Command in your Business Rule and pass the password as a parameter value. In this case, the Business Rule will look like the following, where userPassword is the parameter name: image.png For information on how to use parameters in Custom Commands, have a look at the following tutorial: https://www.adaxes.com/tutorials_ActiveDirectoryManagement_CreateCustomCommand.htm#how_to_use_parameters.


Thank you.

Related questions

0 votes
0 answers

Hello, We are using Adaxes' ADSI provider interface to interact with AD via web services. Our AD account has approximately 4000 active users, and most users have ... you would like to see my GetGroupMembership method and my tcp connection settings. Thanks.

asked Oct 15, 2014 by mbcalvin (1.1k points)
0 votes
1 answer

Hello, Often objects are moved from one OU to another. In some cases the OU does not have the same property patterns applied to them, and the user become inconsistent with the ... patterns. But we do not know how to get started to build this one Thanks !

asked Feb 22, 2019 by Pierre (4.4k points)
0 votes
1 answer

Hello - I have configured some custom property patterns for office location and Department and am seeing a drop down list when attempting to create a new user limited to the ... down list. Is this therefore only limited to some AD attributes and not others ?

asked Mar 21, 2017 by cdsouza (280 points)
0 votes
1 answer

We have a form to used by our HR Reps to create non-employee records. There are two fields on the form that are auto-generated via a property pattern: Full Name ( ... changed to cause this new behavior? Nothing has changed with our property pattern set-up...

asked Aug 30, 2016 by sandramnc (3.4k points)
0 votes
1 answer

If I try to "Modify User" from the Admin page, I receive the following error:

asked Apr 7, 2016 by Kikaida (4.8k points)
2,241 questions
2,002 answers
17,044 users