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 (270k 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 When reading the REST API documentation it does not mention working directly against Azure AD and Exchange Online. Will this be added? Thanks /Peter Sonander

asked Jan 26, 2023 by Sonander (40 points)
0 votes
1 answer

Is it possible to convert a 365 mailbox to a shared mailbox as part of the user deprovision process? The user is synced to our local AD. I found with the current process the ... getting deleted in 365. It would be nice to set the mailbox to be a shared mailbox

asked Oct 30, 2018 by john.morrow (270 points)
3,326 questions
3,026 answers
7,727 comments
544,684 users