<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D50Z00008G7VUmSANOkta Classic EngineIntegrationsAnswered2025-06-14T13:45:02.000Z2016-06-21T20:32:41.000Z2018-08-12T04:16:54.000Z
How can I make additional AD fields such as UPN available through API?
My goal is to be able to return User Principal Name attribute in the User API.

Although UPN is a base attribute in the Okta User profile, it is not returned in the API call /api/v1/users/{{userId}}.

I can return the UPN attribute by first adding it as a property to the Okta User Profile and secondly going to Profile Editor > Directories > Active Directory User and creating a mapping between the Okta User Profile upn attribute and the AD userPrincipalName property.

We have over 40 active directory integrations and this would be tedious to have to do this for each one of them in order to use the Okta API consistently. Is this the correct way to accomplish returning the UPN from AD - is there an easier/better way?

This question is closed.
Loading
How can I make additional AD fields such as UPN available through API?