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 Remove access JSON Query

Lakhitha
New Contributor II
New Contributor II

Hi All,

We are passing values under "Params" section to remove the access for group in postman. Please find the below screenshot for your reference.

Lakhitha_0-1698322175972.png

I have tried the below remove access JSONs. But it's not working.

Lakhitha_1-1698322310729.png

Lakhitha_2-1698322907275.png

Can anyone please check this and assist us?

Thanks & Regards,

Lakhitha

8 REPLIES 8

sk
All-Star
All-Star

@Lakhitha : Can you share your ReconcileJSON? I am trying understand whether you are storing entitlementID while importing entitlements to id what you are showing in postman screenshot instead of entitlement value.

If you are storing unique id of entitlement in entitlementID column then your first JSON format should work as expected. But if you still get error please share the respective logs

Also is the entitlement type is Role1 ? If not can you change the name of call to match with entitlement type and see?


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

Lakhitha
New Contributor II
New Contributor II

Hi Saathvik,

Yes while reconciling the entitlements we are storing groupid to entitlementID attribute.

Lakhitha_0-1698419059599.png

And we are collecting two different entitlement types, hence we have mentioned it as "Role1" & "Role2"

And we can see Entitlementid and accountid populated in the logs. Please find the below error message.

Lakhitha_2-1698419474747.png

Thanks & Regards,

Lakhitha

@Lakhitha : Looks like mismatch with content type. Try to add "Accept": "application/json" in your first JSON in httpheaders block and see if that works

 

"httpHeaders": {
        "Authorization": "${access_token}",
        "Accept": "application/json"
      }

 

sk_0-1698420204900.png

 


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

Lakhitha
New Contributor II
New Contributor II

Hi Saathvik,

I have tried adding "Accept": "application/json" in httpheaders block. But received same error after running WSRetry Job.

Lakhitha_0-1698651821537.png

Thanks & Regards,

Lakhitha

rushikeshvartak
All-Star
All-Star

We must use the method "DELETEWITHBODY" when the method is DELETE with parameters to be passed. 


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

Hi Rushikesh,

I have tried "DELETEWITHBODY" method, but I'm getting "500:Internal Server" error. Please find the below JSON and error screenshot for your reference.

Lakhitha_1-1698652106590.png

 

 

 

 

Lakhitha_2-1698652350414.png

Thanks & Regards,

Lakhitha

naveenss
All-Star
All-Star

Hi @Lakhitha 

Please add the below headers in the httpHeaders. It should work

"Accept":"application/json",

"Content-Type":"application/json"

 

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.

Lakhitha
New Contributor II
New Contributor II

Hi Naveen,

Thanks for your response.

I have added the above suggestion in httpHeaders and it's working now.

Thanks for doing the needful.

Thanks & Regards,

Lakhitha