Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Entitlement Creation for Rest connector

UdaySai
New Contributor
New Contributor

We need to extract entitlements from this response, we should get 4 entitlements - Admin, CM viewer,  Administrator,  Viewer.

 

2023-05-11 20:26:18,000 [quartzScheduler_Worker-8] DEBUG rest.RestProvisioningService  - Got Webservice API Response: [headers:[Cache-Control: no-cache, Pragma: no-cache, Content-Type: application/json; charset=utf-8, Expires: -1, Server: Microsoft-IIS/10.0,Date: Thu, 11 May 2023 20:26:17 GMT, Content-Length: 687], responseText:{"product_permission_profiles":[{"product_id":"37f013eb-7012-4588-8028-357b39fdbd00","permission_profiles":[{"permission_profile_id":"0","permission_profile_name":"Admin"},{"permission_profile_id":"99","permission_profile_name":" CM Viewer"}]},{"product_id":"f6406c68-225c-4e9b-9894-64152a26fa83","permission_profiles":[{"permission_profile_id":"13434851","permission_profile_name":" Administrator"},{"permission_profile_id":"13434853","permission_profile_name":"Viewer"}]}]}, cookies:[], statusCode:200]

 

We tried below json in accountentimport but it created 2 entitlements instead of 4 concatenating the values in name and id field per product id- 
1. Administrator,  Viewer (ent id - 0,99)
2. Admin,CM Viewer (ent id - 13434851,13434853)

 

Json used - 
"permission_profiles": {
                "entTypeOrder": 1,
                "call": {
                    "call1": {
                        "callOrder": 0,
                        "http": {
                            "httpHeaders": {
                                "Authorization": "${access_token}",
                                "Accept": "application/json"
                            },
                            "url": "xxx",
                            "httpContentType": "application/x-www-form-urlencoded",
                            "httpMethod": "GET"
                        },
                        "listField": "product_permission_profiles",
                        "keyField": "entitlementID",
                        "colsToPropsMap": {
                            "entitlementID": "permission_profiles.permission_profile_id~#~char",
                            "entitlement_value": "permission_profiles.permission_profile_name~#~char",
                            "displayname": "permission_profiles.permission_profile_name~#~char"
                        },
                        "makeProcessingStatus": false
                    }
                }
            }
        }

1 REPLY 1

SB
Saviynt Employee
Saviynt Employee

Based on the response shared above, the product_id can be imported as an entitlement but the permission_profile_id cannot be imported as an entitlement.


Regards,
Sahil