<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
Send Profile Master Attributes to an Application via a Custom Script
Lifecycle Management
Administration
Okta Classic Engine
Okta Identity Engine
SDKs & Libraries
Overview
This article describes how to send profile master attributes to an application via a custom script.
Applies To
  • Application Programming Interface (API)
  • HRMS
  • Active Directory (AD)
  • Okta Classic engine 
Solution

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:
 

  1. Map Profile Master Attribute to Okta attribute:
    1. Navigate to Directory > Profile Editor > Select Profile for Okta app > Add Attribute > Define required attribute parameters and Save.
    2. Go back to Profiles > Select Mappings for the application from which the values should be mapped, for example, Workday.
    3. Map the required attribute to the new attribute created.
    4. Select Save > Apply Changes.
    5. Utilize the Okta API to retrieve the users' Okta profiles via:
GET {{url}}/api/v1/users/{{userId}}

NOTE: See the following Retrieve a user documentation for more details on this API call.
 
  1. Retrieve Profile Master attribute via API:
    1. 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.
    2. Obtain the profile master Application ID:
      • Navigate to Applications > Select Application > Copy ID value from the URL.
    3. Make an API call to the following endpoint: 
GET/api/v1/apps/${applicationId}/users/${userId}
 
NOTE: See the following Retrieve an application user documentation for more details on this API call.
 
Loading
Send Profile Master Attributes to an Application via a Custom Script