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

Importing Access returned in a comma separated list

angela
New Contributor III
New Contributor III

Hello, I am working on importing access for an application and have run into an issue in the 

acctEntParams section. The permissions are returned in a comma separated list under each accountname. Is there a way we can iterate through this comma separated list to import each permission?
 
"acctEntParams": {
        "connection": "acctAuth",
        "entTypes": {
            "Permissions": {
                "call": {
                    "call1": {
                        "processingType": "http",
                        "callOrder": 0,
                        "stageNumber": 0,
                        "http": {
                            "url": "https://*********/rest/v1/**********/user/export",
                            "httpHeaders": {
                                "Accept": "application/json",
                                "Authorization": "${access_token}"
                            },
                            "httpMethod": "GET"
                        },
                        "listField": "objects",
                        "acctKeyField": "accountID",
                        "entKeyField": "entitlementID",
                        "entIdPath": "groupNames",
                        "acctIdPath": "name"
                    }
                }
            }
}}

 

example call response.jpg

5 REPLIES 5

rushikeshvartak
All-Star
All-Star

 

${String op=response.Membership.replaceAll(', ','\",\"'); beg= ' {\"Group\":{\"entIds\":[\"'; end= '\"],\"keyField\":\"entitlementID\"}}' ; fin= beg.concat(op) ; fin1= fin.concat(end) ; return fin1}


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

I'm not sure I understand what field I would put that in?

I found another way to pull the groups by a user but am still running into an error where I can't get these to map. I wasn't sure if it is because it is returning in [] rather than {} or that there is no entidpath?

two groups.jpg

 

"acctEntParams": {
        "connection": "acctAuth",
        "entTypes": {
            "Permissions": {
                "call": {
                    "call1": {
                        "processingType": "httpAcctToEnt",
                        "callOrder": 0,
                        "stageNumber": 0,
                        "http": {
                            "url": "https://******/rest/v1/permission/user/name/${id}/groups/get",
                            "httpHeaders": {
                                "Accept": "application/json",
                                "Authorization": "${access_token}"
                            },
                            "httpMethod": "GET"
                        },
                        "acctKeyField": "accountID",
                        "entKeyField": "entitlementID",
                        "listField": "",
                        "entIdPath": ""
                    }
                }
            }
}}

Using const we were able to resolve


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

Anu
Regular Contributor
Regular Contributor

@angela  We have the similar issue with one of our SCIM connector. It would be really helpful if you could share the working JSON?

angela
New Contributor III
New Contributor III

I wasn't able to resolve the way I had hoped (using the acctEntParams). I found that the system I was integrating would always have at least 1 group per account so I imported the accounts and groups in accountParams and then used the acctEntMappings field to map the groups. I've attached what I used to import