nandiniks
(Nandini KS)
June 19, 2023, 12:05pm
1
Hi All,
I have aggregate the users in webservices connector. All that API i have get/Users which also have the entitlements details as well as below.
“entitlements”: {
"userManagementPerm": 2,
"employeeServicesAccess": 2,
"manageDisbursements": 0,
"manageTradeClearance": 0,
"tenB5DashBoardAccess": 0,
"cashPlanDepositPermission": 0,
"participantViewPermission": 0,
"esppEnrollmentPerm": 0,
"eeoAccessPermission": true,
"dropBoxPermission": false,
"communityAccess": true,
"contentOnly": false,
"manageIpAddresses": false,
"ssnAccess": false
},
So response mapping I tried is Schema attribute and Attribute path as $.entitlements
Here the curly braces are also imported into sailpoint.
What mapping should I give to get only “userManagementPerm” as value in entitlements.
rajeshs
(Rajesh Kumar)
June 19, 2023, 2:56pm
2
Did you try $.entitlements.userManagementPerm
Is “entitlements” the root of the response from your API?
nandiniks
(Nandini KS)
June 20, 2023, 4:44am
4
Yes i did, but that gives the value as 0/1/2/3… which is present after the colon.
nandiniks
(Nandini KS)
June 20, 2023, 4:46am
5
The getusers API giving the entitlement details also. The end system doesnot have separate API for entitlements.
nandiniks
(Nandini KS)
June 20, 2023, 4:47am
6
Also i need to get other values within quotes present in below rows as well.
nandiniks
(Nandini KS)
June 20, 2023, 4:20pm
8
HI Nitesh,
I have set the root path as $.resources and attribute path as $.entitlements.userManagementPerm. But its importing the value after the colon such as 0/2/3/tru/false like this.
Sorry I think I misunderstood your requirement. You want to get the keys from json data. Not the values.
You may have to write an AfterOperation Rule to modify the responseBody
I second that. JSONpath expressions won’t return keys in an JSON object. You will need to write an after operation rule to retrieve the keys.
1 Like
system
(system)
Closed
September 3, 2023, 3:25pm
12
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.