Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

REST connector Trigger adhoc Add access task based on CreateAccountJSON response

Anu
Regular Contributor
Regular Contributor

It's a Salesforce application implemented with a REST connector. In the createAccountJSON function, we're making two calls.

In Call 1, we're checking if the ID(salesforceattribute) equals User.Cp62 value exists in the target or not.

In Call 2, during user provisioning, based on the response received from Call 1, the ID column value is passed:
"ID": "${if(response.call1.message.totalSize == 1) {''} else {user.customproperty62}}"

In addition to the above logic of createAccountJSON, we have an additional requirement where if the ID value is passed as null from Saviynt, we need to trigger an Adhoc AddAccess (specific entitlement) along with the requested Role during provisioning and if the ID value is not null proceed with normal provisioning process

Do we have an option to achieve such a requirement within Saviynt?

3 REPLIES 3

naveenss
All-Star
All-Star

Hi @Anu if the value is null then you can call the api to assign a specific entitlement in the subsequent calls.  However, it won't create a task in Saviynt.  

Regards,
Naveen Sakleshpur
If this reply answered your question, please click the Accept As Solution button to help future users who may have a similar problem.

Anu
Regular Contributor
Regular Contributor

Hi @naveenss ,

Thanks for the response. In createaccountJson itself we can call the access API?

If yes,could you please share any sample for such request of createaccountjson.

You can implement this high level design


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