04/04/2023 10:08 PM
How do you import the entitlements such as SAVRoles? This API works on Postman, but no entitlements are imported.
{{url}}/ECMv6/api/userms/savroles
04/04/2023 11:15 PM
Hello @jezzanuena ,
As this API is only used for the GET function not for importing the entitlement,
For Ref:- https://documenter.getpostman.com/view/20697337/2s8Z72WCSb#30d5cdc8-e314-4f8a-93b0-55a58c041e79
04/04/2023 11:20 PM - edited 04/04/2023 11:21 PM
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)"
Do you know any work around?
04/04/2023 11:22 PM
Also, I used GET to import accounts, though.
04/05/2023 04:36 AM - edited 04/05/2023 04:46 AM
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