Click HERE to see how Saviynt Intelligence is transforming the industry. |
08/12/2024 08:01 AM
08/12/2024 08:19 AM
Hi @ShantanuKumar ,
Is this the response from get all user call?
08/12/2024 08:25 AM
Yes.
08/12/2024 08:29 AM
Use
"CUSTOMPROPERTY31": "STORE#ACC#ENT#MAPPINGINFO~#~char" in accountparam
That will solve will your issue.
08/12/2024 08:35 AM
I will ask my team to try it. I saw some articles that if the entitlement values are coming as comma separated then it won't work.
08/12/2024 09:08 AM
Use below code to resolve your issue
"customproperty31": "#CONST#${String output1=response.userlist.groups.replaceAll(', ','\",\"'); beg= ' {\"Group\":{\"entIds\":[\"'; end= '\"],\"keyField\":\"entitlementID\"}}' ; output2= beg.concat(output1) ; finoutput= output2.concat(end) ; return finoutput}~#~char".
08/13/2024 01:18 AM
Hello Rushikesh,
I tried and getting CP31 of account as below screenshot.
ImportAccEntJSON:
{
"accountParams": {
"connection": "acctAuth",
"processingType": "SequentialAndIterative",
"statusAndThresholdConfig": {
"accountsNotInImportAction": "Suspend",
"inactivateAccountsNotInFile": false,
"accountThresholdValue": 10000
},
"includeExistingInActiveAccounts":"true",
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"http": {
"url": "https://####/getAllUsersWithGroups",
"httpHeaders": {
"Authorization": "${access_token}",
"Content-Type": "application/json"
},
"httpContentType": "application/json",
"httpMethod": "GET"
},
"listField": "userlist",
"keyField": "accountID",
"colsToPropsMap": {
"accountID": "name~#~char",
"name": "name~#~char",
"customproperty31": "#CONST#${String output1=response.userlist.groups.replaceAll(', ','\",\"'); beg= ' {\"Group\":{\"entIds\":[\"'; end= '\"],\"keyField\":\"entitlementID\"}}' ; output2= beg.concat(output1) ; finoutput= output2.concat(end) ; return finoutput}~#~char"
},
"makeProcessingStatus": false,
"pagination": {
"nextUrl": {
"nextUrlPath": "${response?.completeResponseMap?.next_page==null?null:response.completeResponseMap.next_page}"
}
}
}
}
},
"entitlementParams": {},
"acctEntParams": {}
}
08/13/2024 01:20 AM
Print response.userlist.groups in another custom property and see what data is coming
08/13/2024 04:01 AM
Below you can check the cp51 and cp31:
08/13/2024 06:01 AM
"customproperty31": "#CONST#${String output1=response.userlist.groups.replaceAll('[\\[\\]]', '').replaceAll(', ', '\",\"'); beg= '{\"Group\":{\"entIds\":[\"'; end= '\"],\"keyField\":\"entitlementID\"}}'; output2= beg.concat(output1); finoutput= output2.concat(end); return finoutput}~#~char"
08/14/2024 01:13 AM
Still the same please check below screenshot:
08/14/2024 05:35 AM
In CP51 use replace ALL with const and remove [ /]
08/20/2024 07:10 AM
Could you please give an example or provide the code as I am not able to modify it.
08/22/2024 11:37 AM
Rishikesh, I am not able to understand the statement you made. Could you please explain or share the expression?
08/22/2024 11:58 AM
"customproperty51": "#CONST#${String output1=response.userlist.groups.replaceAll('[\\[\\]]', '').replaceAll(', ','\",\"'); return output1}~#~char"
08/23/2024 05:46 AM
Hello Rushikesh,
Please check below screenshot still the groups are not selected as entitlement.