0 votes

I am experimenting with the new REST api. From our HR system, we will be receiving a user's manager represented as their email address. We will pass that (manager email address) via the REST call to some attribute probably.

Since the manager needs to be a DN, what is the best way to handle this? We can set a custom attribute a placeholder with the incoming data and possibly do a DN lookup from that temporary attribute I guess. But I am not sure how to do lookup in Adaxes as a post user creation business?

I am not set on this idea. What is the best way to handle this considering our HR system will only provide an email address for the manager of a new hire?

Any advice and details appreciated.

by (320 points)

1 Answer

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

Hello,

You are right, the best approach would be passing manager email to an Adaxes custom text attribute and then set the manager for the user in a business rule triggering After creating a user. In the rule, you will need to use a PowerShell script that will find the manager based on their email address. The following SDK article should be helpful: http://adaxes.com/sdk/SampleScripts.SearchingUserAccounts.

If you have issues writing the script, please, specify what should be done in case if the script finds more than one or no users with the corresponding email address. Any additional details will be much appreciated.

Related questions

0 votes
1 answer

This script description says it can find the manager via FullName Distinguished name or Display name. Wondering if we can change it to use employeeID or SamAccountName.

asked Oct 24, 2022 by mightycabal (1.0k points)
0 votes
1 answer

I would like to set the Hire Date of a user to the CustomAttributeDate2. Using your script to create users from a csv file. I have tried "Hire Date" = " ... for me to get that data into the customAttribute in adaxes? Add something to the script.

asked Jan 10, 2023 by mightycabal (1.0k points)
0 votes
1 answer

Hi Adaxes, I'm struggling to create an AD user in Adaxes via PowerShell, here's part of the script I have, the user information is coming from a REST API ... checked the OU and there's no property patterns applied (was thinking there were some requirements)

asked Aug 23, 2022 by richarddewis (260 points)
0 votes
1 answer

Hi, { "criteria": { "objectTypes": [ { "type": "USER", "items": { "type": 1, "items": [ { "type": 0, "property": "accountDisabled", "operator": "eq" ... ": { "isDisabled": true, Please share the right request JSON to get the required result. Thanks, Lohith

asked Oct 3 by lom (20 points)
0 votes
1 answer

For creating a computer object, we want to check if the entered CN is already used in our AD. And for that we want to use a powershell script. An other dot ... powershell script should be start before creating the computer object, right? Thanks for your help.

asked Jun 4 by KEME (80 points)
3,549 questions
3,240 answers
8,232 comments
547,814 users