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 (240 points)

1 Answer

0 votes
by (220k 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

Thanks for the info. I'm now grabbing the %adm-ManagerUserName% value, but need to remove the final 21 characters of it so it contains only their username and not our ... this in the PowerShell Script Editor for my business rule, I get the following error:

asked Mar 11, 2021 by mkvidera (60 points)
0 votes
1 answer

Is it possible, using a business rule, to reassign a user's direct reports to their manager when they get disabled? For example, User B reports up to User A. User B gets disabled and all of their direct reports automatically get assigned to User A. Thanks

asked Jul 6, 2020 by bavery (250 points)
0 votes
1 answer

I have a scheduled task that runs a Powershell script against an AD group, "Group 1". I need to get all of the members of Group 1, and add them to Group 2. The ... identity in the error message start with 'user;'? What is the correct way to accomplish this?

asked Aug 27, 2019 by ngb (90 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 (250 points)
0 votes
1 answer

Hello, We are currently trailing Adaxes before purchase, We want to use this to mainly automate our starters and leavers process. Starters seems easy enough, however I ... CSV. Not very experienced with powershell so any help would be much appreciated. Regards

asked Oct 29, 2018 by wayne (70 points)
2,733 questions
2,469 answers
6,460 comments
1,336,439 users