0 votes

Hello

As I have mentioned before - when creating a new user, I need to fetch the formal name of the user from an external system.
In the external system, the user's formal name (and other data) is paired with an employee numer.

In our old IDM system, we have placed a button on the Create user form, which fires a script and fetches the name.
This is not (yet ?) possible in Adaxes, so I have made the following workaround;

1 - The user manager enters the employee number in a customattributetext field.
2 - The user manager clicks on "Create user"
3 - A Business Rule (before creating a user) detects that the givenname field is empty (because it's not shown on the form) - and fires a script.
4 - This script uses the employee number to find and fetch data from an external data source.

Help needed here:
5 - Now - I need the script to fill the fetched data into the following attributes: givenname and sn.

6 - The user manager then fills in the rest of the informations needed.
7 - The user manager clicks on "Create user" again - and the new user account is created.

Okay, I could display the fetched data to the user manager as an logmessage, but ..... this will appear as a bad solution :oops:

- Thanks

by (2.6k points)
0

Ping to top

0

BR before creating a user:

Trying to fill in some attributes with values fetched for an external system.

This does not work, nor does (because there is no object at this stage):
$Context.TargetObject.Put("givenName", $Value1)
$Context.TargetObject.Put("sn", $Value2)

This should work, but the values are not used by Adaxes when actually creating the user :?
$Context.SetModifiedPropertyValue("givenName", $Value1)
$Context.SetModifiedPropertyValue("sn", $Value2)

Then, the Property Pattern formatting "cn" "%givenName% %sn% (DI%initials:upper%)" is also written wrong .....

- Thanks

Please log in or register to answer this question.

Related questions

0 votes
0 answers

Hello, We had this happen today, and it is the first time we have noticed this. We created a user using the HelpDesk web interface (our usual procedure), and the user ... seen before, and what we could do to try and troubleshoot if this happens again. Thanks.

asked Nov 8, 2018 by Jasonmh (540 points)
0 votes
1 answer

Hello, We have recently migrated to Office 365 and are experiencing a few problems related to password. When I create a user using Adaxes, Adaxes automatically send out ... during using user creation. How can we solve this problem? Regards, Eirik Zakariassen

asked Oct 16, 2015 by eirikza (120 points)
0 votes
1 answer

Hi after the user acount is created in Active Directory I need the business rule to pause for 30mins for the azure sync to take place before the rule can continue to add the 365 license.

asked May 24 by johanpr (120 points)
0 votes
1 answer

Automation of user creation based on ServiceNow ticket creation.

asked Jan 24, 2022 by tdetmer (20 points)
0 votes
1 answer

I had a business rules that had a PowerShell script to update User properties in a SQL table. It was working fine. I moved the PowerShell to a custom command so I could ... in the custom command does get the values for the User object. Am I missing something?

asked Jun 2, 2014 by sdavidson (730 points)
3,551 questions
3,242 answers
8,242 comments
547,827 users