0D51Y00008cfRZ0SAMOkta Classic EngineLifecycle ManagementAnswered2023-02-23T13:23:16.000Z2020-05-28T17:57:51.000Z2020-06-12T21:36:14.000Z

EricP.72813 (Customer) asked a question.

Mapping fields from other records (e.g. Manager -> Subordinate)

Our HR system provides an internal ID for a user's manager, but what we want is the user's manager's email address in their Okta profile. Is there a way through Okta Expression Language to do this mapping on user import?

 

I'm thinking something similar to the findWorkday() function, but more generic (since we're not using Workday). It might look something like this in practice: "findUser($sourceAttribute, $destAttribute).$returnedAttribute", where $sourceAttribute would be the value we already have (e.g. hrApp.ManagerID), $destAttribute would be the matching attribute in the manger's record (e.g. hrApp.ID) and $returnedAttribute would be the thing we want from the other user's record (e.g. user.Email). The function would find the user with an ID that matches the value we provided for ManagerID, then return Email from that record.

 

I'm aware of the Linked User API, but that seems to require some setup/maintenance to keep the links fresh. I was hoping something that could do live lookups without needing to maintain the links.

 

Any ideas?

 

Thanks!


  • ManjushaM.65936 (Okta, Inc.)

    Hi Eric,

     

    Here is the Okta expression language document for your reference : https://developer.okta.com/docs/reference/okta-expression-language/

     

    String.substringAfter, String.substringBefore etc. are useful string functions here If you can bring in user’s manager name to Okta.

     

    I would recommend you to open a support case with Okta so that an engineer will take a look at your use case  and help you to set the attribute using Okta expression language. Thank you!

     

    Expand Post
This question is closed.

Recommended content

No recommended content found...