Announcing the SAVIYNT KNOWLEDGE EXCHANGE unifying the Saviynt forums, documentation, training, and more in a single search tool across platforms. Click HERE to read the Announcement.

Saviynt For Saviynt v23

jezzanuena
Regular Contributor
Regular Contributor

How do you import the entitlements such as SAVRoles? This API works on Postman, but no entitlements are imported.

{{url}}/ECMv6/api/userms/savroles

4 REPLIES 4

sudeshjaiswal
Saviynt Employee
Saviynt Employee

Hello @jezzanuena ,

As this API is only used for the GET function not for importing the entitlement,

sudeshjaiswal_0-1680675203112.png

For Ref:- https://documenter.getpostman.com/view/20697337/2s8Z72WCSb#30d5cdc8-e314-4f8a-93b0-55a58c041e79 

 

If you find the above response useful, Kindly Mark it as "Accept As Solution".

 I see. I thought I could use it to get the entitlements because this API is included in the ImportAcctEntJSON from the OOB connection "Sav4Sav(REST)"

jezzanuena_1-1680675669577.png

 

Do you know any work around?

 

jezzanuena
Regular Contributor
Regular Contributor

Also, I used GET to import accounts, though.

sudeshjaiswal
Saviynt Employee
Saviynt Employee

Hello @jezzanuena,

These are the following sample snippets from the JSON which is working for us, Please modify them accordingly as per your need.
You have put it under connection --->ImportAccountEntJSON

"SAVRoles": {
"entTypeOrder": 0,
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"http": {
"url": "https://xxxxxxxx/ECMv6/api/userms/savroles",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json"
},
"httpContentType": "application/json",
"httpMethod": "GET",
"successResponses": {
"statusCode": [
200,
201
]
}
},
"listField": "savroles",
"keyField": "entitlementID",
"colsToPropsMap": {
"entitlementID": "ROLENAME~#~char",
"entitlement_value": "ROLENAME~#~char",
"customproperty1": "CUSTOMPROPERTY1~#~char"
}
}
}
}

"SAVRoles": {
"call": {
"call1": {
"connection": "userAuth",
"acctKeyField": "accountID",
"callOrder": 0,
"stageNumber": 1,
"processingType": "httpEntToAcct",
"http": {
"httpHeaders": {
"Authorization": "${access_token}"
},
"url": "https://xxxxxxxxxxx/ECMv6/api/userms/savroles/${id}/users",
"httpContentType": "application/json",
"httpMethod": "GET"
},
"listField": "users",
"entKeyField": "entitlementID",
"acctIdPath": "username",
"pagination": {
"offset": {
"offsetParam": "offset",
"batchParam": "limit",
"batchSize": 500,
"totalCountPath": 1000
}
}
}
}
}

Thanks

If you find the above response useful, Kindly Mark it as "Accept As Solution".