
AndyC.64975 (Customer) asked a question.
We have workflows that are querying a HR system and provisioning users off the returned data. We are using group membership to push the new users from Okta to AD and AD Auth Delegation is disabled. We want to set the manager field in Okta and push that to AD. I can do this manually by entering the Distinguished name of the manager. How could this be automated?

Hi @AndyC.64975 (Customer) , Thank you for reaching out to the Okta Community!
You might be able to use API queries to find the manager user in Okta, assuming there is manager info to be leveraged in the API response from your HR system.
For example, the HR system may mention the manager by e-mail or externalID, but that is something that can be used to trace back to the Manager's name.
From there, the usual implementation of Okta profile being updated and pushed to AD happens normally assuming a correct setup for that.
Unfortunately I don't have any specifics for you. If it's an Okta custom attributes, it would all be handled utilizing the built-in Okta card. The thing with Workflows is it is really difficult to have 1 to 1 demo’s as each environment has specific unique use cases.
As long as there is some sort of attribute on the user profile that is populated and can be used to “find” the corresponding person, api calls can be made to find the required information.
Once you know all of the information pieces you need and how to gather them individually you can build out an automation.
Maybe this will give you a starting point:
https://help.okta.com/wf/en-us/Content/Topics/Workflows/Tutorials/unauthenticatedapi-walkthrough/unauthenticatedapi-walkthrough.htm
Have a great rest of the day!
Hi
Thanks for the reply. That is how we are getting the manager name by API call to the HR system, but to input that name into the Okta Manager field requires knowing the distinguished name of the manager in AD.
I supposed I could stick the employeeID of the manager into an extensionAttribute and then use Azure Automation to run a script on prem to find the manager by ID and populate the user's manager field. But I would rather keep it self contained in Okta.
Through trial and error discovered that if you map Okta 'manager' field to AD field ManagerUPN you can populate that with an email(full UPN) in AD instead of the CN name.