03/23/2023 04:31 AM
Requirement is to make SAV role requestable from ARS:
{"accountParams":
{
"connection":"acctAuth",
"processingType":"SequentialAndIterative",
"call":{
"call1":{
"http":{
"url":"https://xxxxxxx.saviyntcloud.com/ECM/api/v5/getUser",
"httpHeaders":{
"Authorization":"${access_token}"
},
"httpContentType":"application/json",
"httpMethod":"POST",
"httpParams":"{\"userQuery\":\"user.username is not null\"}"
},
"listField":"userdetails",
"keyField":"accountID",
"colsToPropsMap":{
"accountID":"username~#~char",
"name":"systemUserName~#~char",
"customproperty47":"STORE#ACC#ENT#MAPPINGINFO~#~char"
} }} },
"entitlementParams":
{
"connection":"acctAuth",
"processingType":"SequentialAndIterative",
"entTypes":{
"SAVRole":{
"entTypeOrder":1,
"call":{
"call1":{
"callOrder":0,
"listField":"result",
"keyField":"entitlement_value",
"http":{
"url":"https://xxxxxxxxxxx.com/ECM/api/v5/fetchControlDetailsES?analyticsid=1534",
"httpMethod":"GET",
"httpContentType":"application/json",
"httpHeaders":{
"Authorization":"${access_token}"
},
"httpParams":"{\"offset\":\"0\"}"
},
"colsToPropsMap":{
"displayname":"ROLENAME~#~char",
"entitlementID":"ROLEKEY~#~char",
"description":"ROLEDESCRIPTION~#~char",
"entitlement_value":"ROLENAME~#~char"
} }}}}},
"acctEntParams":{
"connection":"acctAuth",
"entTypes": {
"SAVRole": {
"call":{
"call1":{
"callOrder":0,
"stageNumber":0,
"processingType": "httpEntToAcct",
"http":{
"url":"https://xxxxxxx.saviyntcloud.com/ECMv6/api/userms/savroles/ROLE_ADMIN/users?limit=1000&offset=0",
"httpMethod":"GET",
"httpContentType":"application/json",
"httpHeaders":{
"Authorization":"${access_token}"
} },
"listField":"users",
"entKeyField": "entitlementID",
"acctIdPath": "",
"acctKeyField": "accountID"
} } } } } }
Have I missed anything in the above JSON? Please help me how can I fix this.
03/23/2023 09:22 AM
Can you try with the below format.
"SAVRoles": {
"call": {
"call1": {
"connection": "userAuth",
"acctKeyField": "accountID",
"callOrder": 0,
"stageNumber": 1,
"processingType": "httpEntToAcct",
"http": {
"httpHeaders": {
"Authorization": "${access_token}"
},
"url": "@@BASEURL@@/ECMv6/api/userms/savroles/${id}/users?limit=1000&offset=0",
"httpContentType": "application/json",
"httpMethod": "GET"
},
"listField": "users",
"entKeyField": "entitlementID",
"acctIdPath": "username"
}
}
}
03/30/2023 11:39 PM
Hello @sahil ,
Thank you for your response,I noticed that accounts totalcount is larger but in saviynt its importing 49. Could you please help me understand what can be the reason?
Thank you,
Harsha
04/03/2023 08:55 AM
Can you check in the logs the logs for the job thread the response your api call is returning. In case you have used any filters and the users may be getting excluded due to that.