Click HERE to see how Saviynt Intelligence is transforming the industry. |
08/30/2024 10:40 AM
Hi Team,
we have two different APIs, one fetches the users/accounts and the other API fetches entitlements i.e Sites and there is no mapping attribute in between both accounts and Entitlement API for REST application.
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/lxhdysodusnd%43*&",
"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",
"type": "policies",
"links": {
"self": "https://URL/policies/tpag"
},
"attributes": {
"type": "tpag",
"enabled": true,
"suspended": "NONE"
}
}
]
}
}
]
}
Can you please specify what shall be the matching criteria for the above to import them in Saviynt.
Thanks,
Sachin
08/30/2024 10:48 AM
You need to have unique identifier to fetch account to entitlement mappinh
08/31/2024 07:19 AM
Hi @Sachin , if there is no API or anything in Json which shows an association between account and entitlement, this is not possible.
Would you double check , what you are calling entitlement ApI is actually an entitlement for Saviynt.
Account api seems to have something called "product_access", that looks like some sort of access / entitlement.
09/02/2024 03:23 AM
Hello @Amit_Malik We are trying to map the SiteID from accounts API to values present in entitlement api but there is no common attribute for site id or name which match with account api details .
09/02/2024 03:27 AM
Do you have any other way to get that association ? csv files or db view etc..?
09/02/2024 05:57 PM
09/01/2024 02:51 AM - edited 09/01/2024 02:51 AM
Hi @Sachin , I could see product access in account api but entitlement API doesn't import the same name as per response?? Or does it?
09/04/2024 11:36 AM
Hello @NM Yes correct, There is siteID in the Users api but same ID is not there in Entitlement API for any entitlement.
Regards,
Sachin
09/04/2024 11:38 AM
You need to work with app team for common attribute