Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Creating ImportAccountEnt JSON for Account and Entitlement api for REST application

Sachin
New Contributor
New Contributor

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

 

8 REPLIES 8

rushikeshvartak
All-Star
All-Star

You need to have unique identifier to fetch account to entitlement mappinh


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Amit_Malik
Valued Contributor II
Valued Contributor II

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.

 

Kind Regards,
Amit Malik
If this helped you move forward, please click on the "Kudos" button.
If this answers your query, please select "Accept As Solution".

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 .

Amit_Malik
Valued Contributor II
Valued Contributor II

Do you have any other way to get that association ? csv files or db view etc..?

Kind Regards,
Amit Malik
If this helped you move forward, please click on the "Kudos" button.
If this answers your query, please select "Accept As Solution".

  • Please api enhancement request with target application

Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

NM
Honored Contributor III
Honored Contributor III

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?


If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'

Sachin
New Contributor
New Contributor

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

You need to work with app team for common attribute


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.