Api /apps/v1/users/id does not return Additional Active Directory Attributes

Dear team
I have a user who was imported from AD (using directory integration ).
when i retrive the user information using /apps/v1/users/ . I do not get “Additional Active Directory Attributes”
which are visible in UI .

Thanks and Regards
Akshar

Hi @akshar, this information is treated like an application user profile. If you go to Directory → Directory Integrations and then select your AD instance, in the address bar, you will see the ID. Copy that, and then you can make an API call to https://{yourOktaOrg}/api/v1/apps/{directoryId}/users/{userId} and the AD attributes will be returned.

image

2 Likes