- Application Programming Interface (API)
- HRMS
- Active Directory (AD)
- Okta Classic engine
When creating a script or custom application to retrieve user profile attributes from Okta, and the users have a profile master such as Active Directory or an HRMS application such as Workday, the required attributes may be from the profile master and not mapped to the Okta user profile.
To retrieve these values, there are two available options:
- Map Profile Master Attribute to Okta attribute:
- Navigate to Directory > Profile Editor > Select Profile for Okta app > Add Attribute > Define required attribute parameters and Save.
- Go back to Profiles > Select Mappings for the application from which the values should be mapped, for example, Workday.
- Map the required attribute to the new attribute created.
- Select Save > Apply Changes.
- Utilize the Okta API to retrieve the users' Okta profiles via:
GET {{url}}/api/v1/users/{{userId}}- Retrieve Profile Master attribute via API:
- Obtain the user's Okta user ID:
- Via Okta UI, navigate to Directory > People > search for user > Select User > extract the ID value from the URL.
- Use the Okta API via the API calls shared in the linked article above.
- Obtain the profile master Application ID:
- Navigate to Applications > Select Application > Copy ID value from the URL.
- Make an API call to the following endpoint:
- Obtain the user's Okta user ID:
GET/api/v1/apps/${applicationId}/users/${userId}