In ImportAccountEntJSON for SAV4SAV , acctEntParams is not mapping properly

Harsha
New Contributor III
New Contributor III

Requirement is to make SAV role requestable from ARS:

  1. Created security system and endpoint
  2. Created a rest based  sav4sav connection
  3. Created an analytics to fetch all sav roles
  4. With help of ImportAccountEntJSON got accounts and sav roles as entitlements and accounts.
  5. Now acctEntParams is not mapping properly, I am trying to see accounts associated with entitlement that is SAV Role
  6. ImportAccountEntJSON -

{"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.

3 REPLIES 3

sahil
Saviynt Employee
Saviynt Employee

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"
}
}
}


Regards,
Sahil

Harsha
New Contributor III
New Contributor III

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

 

sahil
Saviynt Employee
Saviynt Employee

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.


Regards,
Sahil