Announcing the SAVIYNT KNOWLEDGE EXCHANGE unifying the Saviynt forums, documentation, training, and more in a single search tool across platforms. Click HERE to read the Announcement.

EnableAccount-Get entitlementvalue in the ticket's content

Puspanjali
New Contributor
New Contributor

Hi Team

We are onboarding a disconnected model.

In Enable Account request, we are expecting the ticket should contain the user's existing access(entitlement value).

Can the team help me to know the binding to get the existing entitlement value of the account?

 

CreateTicketJSON

{
"call": [{
"name": "call1",
"connection": "bmcAuth",
"showResponse": true,
"url": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"httpMethod": "POST",
"httpParams": "{\"values\":{\"Detailed Description\":\"${if(task.tasktype==3 || (task.tasktype==1 && task.parenttask!=null)){' '+user.firstname+' '+user.lastname+' has got approval for Account '+task.accountName+' with Entitlements '+ allEntitlementsValues+' '}else if(task.tasktype==2 && (allEntitlementsValues==null || allEntitlementsValues.isEmpty() || allEntitlementsValues=='')){'Request for Delete Account ' + task.accountName+' '}else if(task.tasktype==2){'Update Entitlements Request for AccountID: '+task.accountName+' Entitlements '+allEntitlementsValues+' '}else if(task.tasktype==1){'Update Entitlements Request for AccountID: '+task.accountName+' Entitlements '+allEntitlementsValues+' '}else if(task.tasktype==6){'Enable Account Request for AccountID:'+task.accountName+'and user Existing Access'+task.accountName.allEntitlementsValues+' '}else if(task.tasktype==14){'Account Inactivation Request for AccountID:'+task.accountName+' '} 

 

 

4 REPLIES 4

SB
Saviynt Employee
Saviynt Employee

You can use the variable ${allEntitlementsValues} to display the entitlements. 

Also, below is the link to the ServiceNow guide that you can refer for the example of CreateTicketJson

https://docs.saviyntcloud.com/bundle/ServiceNow-v2022x/page/Content/ServiceNow-as-a-Ticketing-System...


Regards,
Sahil

Isn't it ${allEntitlementsValues} variable will be used to get all entitlements that are being requested in the request? If I understood correctly @Puspanjali is looking for variable which will give the existing entitlements that user account has, will the same variable work?

 

 


Regards,
Saathvik
If this reply answered your question, please Accept As Solution and give Kudos to help others facing similar issue.

Puspanjali
New Contributor
New Contributor

Hi Saathvik

Yes, you are correct, I wanted to know the account attribute variable binding to get the existing entitlement of the user and send it in the ticket description. 

 

About this ${allEntitlementsValues}. as you mentioned, I already tried this, it only sends the entitlements which are present in the user request.

In the FD doc, no sample variable is present to send the existing entitlement of the user in enable request.

else if(task.tasktype==6){'Enable Account'}else if(task.tasktype==14){'Suspend'}else{task.tasktype}}\",

SB
Saviynt Employee
Saviynt Employee

${allEntitlementsValues} does only send the entitlements that are present in the task/request. Currently the variable to send all existing entitlements for Enable account is not supported. 

You can raise this as an enhancement on Ideas portal if needed

https://ideas.saviynt.com/


Regards,
Sahil