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

REST Connector - How to import entitlements as Array List

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on July 14 2020 at 15:06 UTC

Is it possible to import entitlements which are present in the JSON payload as Array List?


Below is my use-case, I want to import list of permissions via /roles (as the API doesn't provide a separate resource to import permissions):


JSON Response Payload:

{   "total": 2,   "offset": 0,   "limit": 1000,   "results": [     {       "id": "1",       "resourceType": "Role",       "name": "Assignee",       "permissions": [         "ASSET_ATTRIBUTE_CHANGE",         "ASSET_CHANGE",         "ASSET_ATTRIBUTE_ADD",         "ASSET_ATTRIBUTE_REMOVE"       ]     },     {       "id": "2",       "resourceType": "Role",       "name": "Admin",       "permissions": [         "USER_ADMIN",         "ASSET_DELETE"       ]     }   ] }

ImportAccountEntJSON (For Permissions import - Please correct it if below config is wrong):

"Permission": {         "entTypeOrder": 2,         "call": {           "call1": {             "callOrder": 0,             "stageNumber": 3,             "http": {               "url": "https://XXXXXXXXXX/rest/roles",               "httpContentType": "application/json",   "httpHeaders": {               "Authorization": "${access_token}"           },               "httpMethod": "GET"             },             "listField": "results",             "keyField": "entitlementID",             "colsToPropsMap": {               "entitlementID": "permissions~#~char",               "entitlement_value": "permissions~#~char"             }           }         }       }



This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.
2 REPLIES 2

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on July 20 2020 at 03:55 UTC

Hi Ramanpreet Bhatia,

The REST connector cannot handle the above response since it is not in the right format and does not contain a key value pair to import Entitlements.

Thank you

Vedanth B.K


This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on July 22 2020 at 15:27 UTC

Thanks Vedanth,


Regarding 'does not contain a key value pair to import Entitlements'


If we set the entitlement ID same as the entitlement value?

This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.