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

How to send user manager displayname and request approver name in create account json in DB

sudheera
New Contributor
New Contributor

Hi, 

We need to send user manager displayname not the userkey and request approver displayname in create/ update account query for DB connection.

Provide any solution to send the attributes in query.

5 REPLIES 5

rushikeshvartak
All-Star
All-Star

Share current JSON

for manager displayname 

${user?.manager?.displayName} or ${usersManagerObj?.displayName}

You can't fetch request approval 

https://docs.saviyntcloud.com/bundle/EIC-Connectors/page/Content/Binding-Variables-for-Provisioning-... 


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

${usersManagerObj?.displayName} it is worked.

And is there any logic to create dynamic attribute to fetch the username who had approved the request and send in json, in case if the approver is not the manager.

current json:

"insert into NPIT_USERS (USERID, DISPLAYNAME, EMAIL, INACTIVE, APPROVER_NAME, JOBTITLE, MANAGER) Values ('${user.username}','${user.lastname+', '+user.firstname}','${user.email}', '0', '${usersManagerObj?.lastname+', '+usersManagerObj?.firstname}', '${user.title}', ' ${usersManagerObj?.username}')"

NM
Esteemed Contributor
Esteemed Contributor

Hi @sudheera , DA comes into picture only at the time of submitting the request you can't have SQL query to fetch the details.

Approves happen after request submission and approval page..


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

stalluri
Valued Contributor II
Valued Contributor II

@sudheera 
Try this out
${managerAccount?.displayName}


Best Regards,
Sam Talluri
If you find this a helpful response, kindly consider selecting Accept As Solution and clicking on the kudos button.

NM
Esteemed Contributor
Esteemed Contributor

Hi @sudheera try this 

${usersManagerObj?.displayName}


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