Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

REST;Manager Attribute mapping

vivekrajan1
New Contributor III
New Contributor III

Hi All,

Im using REST connector to do UserImport, Below is the JSON response snippet from the Target Application.  "work_email" holds email address of the manager.

since manager attribute stores Username, May I know what is the recommended step to map Manager?

{
"UserId": "66d9a66ffbc92325412d5",
"manager": {
"id": "66d9a66ffbc92695412d5",
"manager_id": "66c35e075b5885fd83061",
"number": 20,
"work_email": "vivek.r@email.com",
"status": "ACTIVE"
}
}

3 REPLIES 3

NM
Honored Contributor III
Honored Contributor III

@vivekrajan1 use preprocessor query to fulfill the need.

Using email search for the manager record in saviynt db(query does the work) and map owner/manager field with it.


If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'

vivekrajan1
New Contributor III
New Contributor III

Does this work?

ImportUserJSON:(colsToPropsMap)

"manager":"manager.work_email"

PreProcessor Query:

UPDATE NEWUSERDATA NU SET NU.OWNER = (select USERNAME from CURRENTUSERS CU where CU.EMAIL = NU.MANAGER)

NM
Honored Contributor III
Honored Contributor III

@vivekrajan1 have it reference to another customproperty and then change to get the username

Apart from that it looks fine.


If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'