Click HERE to see how Saviynt Intelligence is transforming the industry. |
09/06/2024 02:17 AM
Hi Team,
we have users/accounts api where we are getting siteId(aexgdiseiydjfc8364) attribute. In Entitlement API we are getting it in id attribute with other values like ari:cloud:saviyntdomain::site/aexgdiseiydjfc8364. We want perform the account to entitlement mapping with id attribute. Hence we need the MODIFYUSERJSON to split the siteid from entitlement api.
below are the responses from postman for both APIs:
Accounts API:
{
"data": [
{
"account_id": "123:45678",
"account_type": "organization",
"account_status": "active",
"name": "Harry Potter",
"picture": "",
"email": "harrypotter@domain.com",
"access_billable": false,
"last_active": "2024-08-28T21:23:47.619428364Z",
"product_access": [
{
"name": "Application Software",
"key": "application-software",
"siteId": "aexgdiseiydjfc8364",
"realm": "global",
"regions": [],
"workspaceAri": "ari:cloud:application-software::site/aexgdiseiydjfc8364",
"url": "domain.organization.net",
"last_active": "2024-08-23T13:03:19.652912911Z"
},
{
"name": "TypeWriter",
"key": "TypeWriter",
"siteId": "bgdwwdytaq23400",
"realm": "global",
"regions": [],
"workspaceAri": "ari:cloud:TypeWriter::site/bgdwwdytaq23400",
"url": "domain.organization.net",
"last_active": "2024-08-28T21:23:47.619428364Z"
}
]
}
]
}
entitlements API:
{
"data": [
{
"id": "ari:cloud:saviyntdomain::site/aexgdiseiydjfc8364",
"type": "saviyntdomain",
"links": {
"self": "https://url"
},
"attributes": {
"name": "saviyntinc",
"typeKey": "saviyntdomain",
"type": "saviyntdomain",
"icons": {},
"avatars": {},
"labels": [
"sandbox"
],
"status": "online",
"statusDetails": [],
"sandbox": {
"type": "NONE",
"parentId": null
},
"hostUrl": "https://saviyntinc.domain.net/wiki",
"realm": "global",
"regions": [
"ap-southeast-1",
"ap-southeast-2"
]
},
"relationships": {
"entitlement": [
{
"id": "gstid",
"links": {
"self": "https://URL/entitlements/gstid"
},
"type": "entitlements",
"attributes": {
"planKey": "access",
"plan": "access",
"key": "saviyntdomain.ondemand"
}
}
],
"policy": [
{
"id": "tpag",
}
]
}
Please suggest if you have any other solution for the same.
Thanks ,
Sachin
09/06/2024 07:22 AM
String operations on idPath is not supported