We are delighted to share our new EIC Delivery Methodology for efficiently managing Saviynt Implementations and delivering quick time to value. CLICK HERE.

Binding Variable for manager username - CreateAccountJSON

IAM_99
Regular Contributor II
Regular Contributor II

Hi All,

We need to pass manager attributes (user profile) in CreateAccountJSON like below.

"MANAGER_ID" : "${user.manager.username}"

getting this error - No such property: username for class: java.lang.Long

 

"MANAGER_ID" : "${manager.username}"

getting this error - No such property: manager for class: SimpleTemplateScript7

any idea ?

 

Thanks

10 REPLIES 10

SumathiSomala
All-Star
All-Star

@IAM_99which connection/application you are using? 

try below

"MANAGER_ID": "${managerAccount.custompropertyxx}"

 

 

Custompropertyxx should contain user's username in Saviynt

Regards,
Sumathi Somala
If this reply answered your question, please Accept As Solution and give Kudos.

IAM_99
Regular Contributor II
Regular Contributor II

Thanks for the reply - Its doesn't work - its for account level attributes  right ? i need user(manager) attributes ,getting below

No such property: managerAccount for class: SimpleTemplateScript11

Try belowSupported binding variable: usersManagerObj

${usersManagerObj?.username}

Applicable for V23. 10 

Regards,
Sumathi Somala
If this reply answered your question, please Accept As Solution and give Kudos.

rushikeshvartak
All-Star
All-Star

${usersManagerObj?.username}

Refer https://docs.saviyntcloud.com/bundle/REST-v23x/page/Content/Configuring-the-Integration-for-Provisio... 

Always refer release notes 🙂


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

IAM_99
Regular Contributor II
Regular Contributor II

No luck - No such property: usersManagerObj for class: SimpleTemplateScript24

@IAM_99 Try below

${com.saviynt.ecm.identitywarehouse.domain.Users.get(user?.manager)?.username}

${userManager.username}

 

 

 

Regards,
Sumathi Somala
If this reply answered your question, please Accept As Solution and give Kudos.

IAM_99
Regular Contributor II
Regular Contributor II

Hi @SumathiSomala  It didnt work.

vivekmohanty_pm
Saviynt Employee
Saviynt Employee

@IAM_99 Which connector are you using?

IAM_99
Regular Contributor II
Regular Contributor II

Hi @vivekmohanty_pm  we are using Custom Connector - but Saviynt confirmed it will not work in other connectors also

Its documented that will work


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.