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

Best way to Import N number of entitlement types in a REST import

Aditya
New Contributor
New Contributor

Hi Guys,

In REST connector we have to hard code the entitlement type section for each entitlement type in the "entitlementParams" section of ImportAccountEntJSON for ex:

 

"entitlementParams": {
"connection": "oauthConnection",
"processingType": "SequentialAndIterative",

"entTypes": {
"Role1": {
"entTypeOrder": 1,
"call": {
"call1": {
"callOrder": 0,
"http": {
"url": "@HOSTNAME@/api/v2/custom_roles.json",
"httpHeaders": {"Authorization": "${access_token}"},
"httpContentType": "application/json",
"httpMethod": "GET"
},
"listField": "custom_roles",
"keyField": "entitlementID",
"colsToPropsMap": {
"entitlementID": "id~#~char",
"entitlement_value": "name~#~char"
}}},
"Role2": {}

}}

 

For importing multiple entitlement types we have to add above section for each entitlement type.

If we have 10 ET then we have to add 10 sections in Json. 

 

Is there any way to import these number of entitlement types in an efficient way or dynamic way.

And if in future new Entitlement types are added it should import automatically, there should not be any need to add the above json section for each and new entitlement types.

 

Thanks,

Aditya

2 REPLIES 2

rushikeshvartak
All-Star
All-Star

You need to hardcode each entitlement type. There is no alternative or looping can be done in REST connector


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

Vedanth-BK
Regular Contributor
Regular Contributor

@Aditya In REST Connector, specifying the ET is mandatory. Creating ET on the run is not supported 

Thank you
Vedanth B.K
If you find my response helpful and it works, Hit the 'Kudos' button and accept it as a solution!!