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

Add/Remove Access tasks not completing without any error : REST

Aashish-Handa
Regular Contributor
Regular Contributor

Hi Team, 

Facing a wierd situation while provisioning and deprovisioning a certain entitlement using a REST OOTB where the I can see the values of the httpParams in the logs fine, however, do not see the tasks getting completed in Saviynt. The pending tasks are getting updated but no error is seen there or even in the error logs. Creating an account is working fine.

ADD ACCESS JSON:
{
"call": [
{
"name": "call1",
"connection": "userAuth",
"url": "https://xxxxxxxx/PRRestService/OneIDMAccess/v1/AddUserRole",
"httpMethod": "PATCH",
"httpHeaders": {
"Authorization": "Bearer"
},
"httpParams": "{\"Application\":\"MyOrders\",\"SSO\":\"503378682\",\"Role\":\"MyOrders:EGM+Africa:GIQ Admin:GIQ Admin\"}",
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
201,
200,
204
]
}
}
]
}

PFA the logs for the transaction. Also, a log snippet below:

AashishHanda_0-1711040611789.png

Tried hardcoding the attributes but no luck. Request someone to please assist me on this. 

Thanks.

[This message has been edited by moderator to mask sensitive info]

8 REPLIES 8

CR
Regular Contributor III
Regular Contributor III

only put 200 alone and check security system connector got mapped or not?

"statusCode": [
200
]


Thanks,
Raghu
If this reply answered your question, Please Accept As Solution and hit Kudos.

Aashish-Handa
Regular Contributor
Regular Contributor

Tried changing the add access json with status code as 200 only, but still the same.

PFA the logs.

What I am a bit confused is the presence of the following log statements, can this be the reason for this issue:

2024-03-22T14:45:28+05:30-ecm-worker-rest.RestProvisioningService-quartzScheduler_Worker-8-xqgkx-DEBUG-EntitlementID: null
 
2024-03-22T14:45:28+05:30-ecm-worker-rest.RestProvisioningService-quartzScheduler_Worker-8-xqgkx-DEBUG-Entitlement_value:MyOrders:China:Accounts Payable:Billing
 
2024-03-22T14:45:28+05:30-ecm-worker-rest.RestProvisioningService-quartzScheduler_Worker-8-xqgkx-DEBUG-arsTasks?.requestAccessKey: com.saviynt.ecm.workflow.Request_Access : 6973
 
2024-03-22T14:45:28+05:30-ecm-worker-rest.RestProvisioningService-quartzScheduler_Worker-8-xqgkx-DEBUG-Adding entitlement MyOrders:China:Accounts Payable:Billing to user SightCall.Test2@GEHealthcare.com
 
2024-03-22T14:45:28+05:30-ecm-worker-rest.RestProvisioningService-quartzScheduler_Worker-8-xqgkx-DEBUG-entitlement value key is not null
 
2024-03-22T14:45:28+05:30-ecm-worker-services.SaviyntCommonUtilityService-quartzScheduler_Worker-8-xqgkx-DEBUG-USE_DEFAULT_ATTR_VALS_IN_REQUEST =
 
2024-03-22T14:45:28+05:30-ecm-worker-services.SaviyntCommonUtilityService-quartzScheduler_Worker-8-xqgkx-DEBUG-usedefaultval = false
 
2024-03-22T14:45:28+05:30-ecm-worker-services.SaviyntCommonUtilityService-quartzScheduler_Worker-8-xqgkx-DEBUG-Enter getStandardBindingVariable
 
2024-03-22T14:45:28+05:30-ecm-worker-services.SaviyntCommonUtilityService-quartzScheduler_Worker-8-xqgkx-DEBUG-Exit getStandardBindingVariable
 
2024-03-22T14:45:28+05:30-ecm-worker-rest.RestUtilService-quartzScheduler_Worker-8-xqgkx-DEBUG-Got showLogs = true
 
2024-03-22T14:45:28+05:30-ecm-worker-rest.RestProvisioningService-quartzScheduler_Worker-8-xqgkx-DEBUG-currentEntitlementJsonMap: [call:[]]
 
2024-03-22T14:45:28+05:30-ecm-worker-rest.RestProvisioningService-quartzScheduler_Worker-8-xqgkx-DEBUG-params.memento.addAccessJSON: [call:[]]
 
2024-03-22T14:45:28+05:30-ecm-worker-rest.RestProvisioningService-quartzScheduler_Worker-8-xqgkx-DEBUG-Total Call: 0
 
 
2024-03-22T14:45:28+05:30-ecm-worker-services.HttpClientUtilityService-quartzScheduler_Worker-8-xqgkx-DEBUG-called executePostRequestWithHeaders for api...
 
2024-03-22T14:45:26+05:30-ecm-worker-rest.RestProvisioningService-quartzScheduler_Worker-8-xqgkx-DEBUG-Inside pullObjectsByRest
 
2024-03-22T14:45:26+05:30-ecm-worker-rest.RestUtilService-quartzScheduler_Worker-8-xqgkx-DEBUG-Got showLogs = true
 
Thanks

Please share Postman screenshot

Please share curl command [Refer https://codingnconcepts.com/postman/how-to-generate-curl-command-from-postman/ ]


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

Amar_Simha
Regular Contributor
Regular Contributor

@Aashish-Handa : Logs says the method is POST, but the example says PATCH. Is it working via postman?

Also, please mask the URLs before uploading to the forum.

We tried using both POST and PATCH using POSTMAN and it worked. So thought of using PATCH instead of POST in Saviynt as well, but no luck.

The logs attached are from a POST call.

Postman screenshot

Please share curl command [Refer https://codingnconcepts.com/postman/how-to-generate-curl-command-from-postman/ ]


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

rushikeshvartak
All-Star
All-Star

Automated provisioning is enabled ?


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

Yes this is enabled and thats why we are able to create accounts.