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 (390 points)
0

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)

+1

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

1 Answer

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

Hello,

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.

0

Thank you.

Related questions

0 votes
1 answer

In most situations in Adaxes when multiple members are added or removed from a group the members are processed individually allowing business rules to run for each of them. ... a business rule to get information about the other members added with the cmdlet?

asked Mar 8 by Carl Bruinsma (120 points)
0 votes
1 answer

Users when signing into the adaxes portal, MFA keeps saying invalid. I have had to disable MFA for now till we can get this resolved.

asked Jul 18 by imagee (20 points)
0 votes
2 answers

I've had a couple custom commands configured since 6/2023 and they've been working just fine up until recently (sometime within the past few weeks or so). Here's a general ... something obvious here. But I can't make sense of why this is suddenly an issue.

asked Mar 20 by msinger (210 points)
0 votes
1 answer

Hi all, We currently have a bunch of dial plans that we assign to new users via Adaxes. We updated Adaxes to the latest version, and moved it to a new server before ... value - perhaps this value has been removed/broken in new versions of adaxes? Cheers all.

asked Jan 22 by TheLexicon (200 points)
0 votes
0 answers

Hi all, We have Adaxes running in our environment. We don't have an on-prem Exchange environment, everything is in Exchange online. Our existing distrubution groups all ... how to get the exchange properties back for newly created groups? Kind regards, Eddy

asked Dec 8, 2022 by eddy1985 (20 points)
3,588 questions
3,277 answers
8,303 comments
548,090 users