0 votes

I have followed the How-To on creating a csv and importing new users into a specific OU. What I need is some understanding on how I can retrieve the password value that is auto generated by the property pattern that I have setup. When doing this from the web GUI I am able to capture the password value and pass it into a Word EULA doc that is created. How do I take that same process and that is utilized in the web GUI and have it happen the same way when importing from CSV?

The Word doc pulls the username, password, and email address from the user creation process.

Thanks,
Tony

by (480 points)

1 Answer

0 votes
by (216k points)
selected by
Best answer

Hello Tony,

As far as we understand, the Word doc is created by a Business Rule triggered after creating a new user, is that correct? In that case, you can use the %unicodePwd% value reference. When the rule is executed, it will be replaced with the new user's password.

0

Support,

Yes, it is a custom command that is a part of a business rule. I already have it set to %unicodePwd% in the powershell. But for some reason it is not pulling the password into the Word doc. The other value are coming correctly, just not the password.

Thanks,

Tony

0

Tony,

That value reference is resolved only in Business Rules triggered upon creation of a new user and upon changing a user's password. Since you have your script in a separate Custom Command, that is a completely different operation, and the value reference is not resolved there. You need to have your script directly in the Business Rule.

0

That was the issue :)

Thank you for your help.

As a secondary question... Should most powershell items be done inline with the Business rule or for ease can they be created as a Custom command to easily update one location and not have to touch every business rule?

Thanks,

Tony

0

Tony,

Actually, having them in Custom Commands is the recommended approach. The behavior of the %unicodePwd% value reference is one of the very few exceptions when that approach doesn't work.

Related questions

0 votes
1 answer

hello i'm new with Adaxes i'm try to creat schuadle task to import a spefice user list by thier username id after that just update City for them by bulk updating . kinly advise

asked Aug 29, 2023 by sudox (20 points)
0 votes
1 answer

Have a csv file of users that I need to import into Adaxes. I had initially found an article for this, but upon going today, it gave me an error (looks like it was deleted). Thank you

asked Nov 19, 2022 by wangl (20 points)
0 votes
1 answer

Hello, We'd like to create a scheduled task that: Imports a csv of users (there's a column with header sAMAccountName) Disables the account Changes the password to a random ... we can build on that knowledge for other tasks we'd like to schedule.) Thanks!

asked Nov 13, 2019 by gfreeman (120 points)
0 votes
1 answer

Hello We are trying to import new users from CSV file and when we try and add the Hire Date attribute it states it is a recognized column. Can you advise if it is possible to do?

asked Feb 14, 2017 by willy-wally (3.2k points)
0 votes
1 answer

Trying to test importing users via CSV. Running into the following error -- Error: The input object cannot be bound to any parameters for the command either because the command does ... in the Powershell script, but no luck -- Here's my scheduled task --

asked Apr 10 by msinger (110 points)
3,374 questions
3,073 answers
7,817 comments
545,382 users