User Profile & Linked Object

Hello,

We have a requirement where we need to pass manager’s user id (i.e 00ub0oNGTSWTBKOLGLNR) to an downstream application for creating org structure. Unfortunately, they don’t accept manager email as an value to create the org structure and indicated that they must accept the user id of the manager.

After doing some research, discovered that its not possible to pass on manager’s id without doing something like this:

How to Create Linked Objects and Pass the Attribute to Downstream Applications

I followed the guide and created a new linked object as well as linked couple user’s managers via AP; but, I still can’t seem to grab the manager’s id in downstream app using expression

user.getLinkedObject(“manager”).id

However, the following does work:

user.getLinkedObject(“manager”).login

user.getLinkedObject(“manager”).firstName

user.getLinkedObject(“manager”).lastName

I also tested “user.getLinkedObject(“manager”)” by itself and I seem to finally see the manager id along with few other values:

Then, I tried to use expression like this one to extract the id:

String.substringBefore(String.substringAfter(user.getLinkedObject(“manager”), “id=”), “,”)

…sadly its throwing an error saying invalid expression.

Any help here would be greatly appreciated. Please let me know if this is possible via Okta Workflow where I need to extract the manager id and then store it on a custom attribute. Once stored, I should be able to pass down to the downstream app.

Thanks.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.