Leveraging Intelligent Recommendations for Operational Transformation. AMS Partners click HERE | EMEA/APJ Partners click HERE |
08/09/2023 10:47 AM
Hi Team,
I need your help in preparing ImportAccountEnt JSON for account and entitlement mapping for the below API.
{{baseUrl}}/v1/users/:id/roles-products?roleId=<integer>&productId=<string>
For example:
https://<hosturl>/v1/users/951/roles-products?roleId=14&productId=M
The sample postman response is as below
Thanks,
Shilpa
08/09/2023 09:08 PM
Hello @Shilpa_B,
Can you provide the json what you have worked on and also currently it is not possible to parse through all the attributes, we can only parse user ID attribute as per above postman response,
And also would like to know postman response, if we pass only
https://<hosturl>/v1/users/951/roles-products
08/10/2023 05:00 AM
08/10/2023 07:31 AM
Hello @Shilpa_B,
I didn't find any attached json?
08/11/2023 02:20 AM - edited 08/23/2023 01:39 AM
[Edited message to mask URL from attached file]
08/13/2023 09:46 PM
Hello @Shilpa_B,
I have sent you the json please try and let me know the result and also the above postman response you have shared i need from the line 1, as you have shared from line 23.
Thanks,
Thanks,
08/14/2023 02:36 AM
Hi @sudeshjaiswal ,
Thank you for the json I am running import on this to check the result. Meanwhile please find the postman response for API
{
"items": [
{
"product": {
"id": "A",
"name": "Account"
},
"role": {
"id": 14,
"name": "System Admin"
}
},
{
"product": {
"id": "A",
"name": "Account"
},
"role": {
"id": 18,
"name": "API Access"
}
},
{
"product": {
"id": "M",
"name": "Matching"
},
"role": {
"id": 14,
"name": "System Admin"
}
},
{
"product": {
"id": "T",
"name": "Task"
},
"role": {
"id": 14,
"name": "System Admin"
}
}
],
"totalItems": 4
}
08/21/2023 06:22 AM
Did you get a chance to check on this? How can we achieve for this kind of API?
08/22/2023 09:32 PM
Hello @Shilpa_B ,
I have shared you the json, did you tried with that!
Thanks.
08/23/2023 01:42 AM
I tried with JSON that you had shared but it didnt work. Also I could see product id is not mapped here
08/23/2023 08:43 AM
08/23/2023 10:47 PM
Hello @Shilpa_B,
What json i have shared with you have the below api in "Roles and Products"
v1/users/${id}/roles-products",
And json you have shared above contain the different API under Roles and Product.
/${id}/roles-products?roleId=${entitlementValue}&productId=A",
We cannot pass two dynamic value as the same call.
Thanks,
08/30/2023 04:36 AM
We can use the API in either way.. From the below listed, the first API gives access of an accountid for perticular role-product combination. The second API gives, the accountid having access to all role-products combination.
1. {{baseUrl}}/v1/users/951/roles-products?roleId=18&productId=A
2. {{baseUrl}}/v1/users/951/roles-products
From anyone of these API, we should be able to import the account access mapping into Saviynt.
09/04/2023 01:28 AM
Any update on this please?
09/10/2023 10:04 PM
Hello @Shilpa_B,
Currently this is not possible,
1. {{baseUrl}}/v1/users/951/roles-products?roleId=18&productId=A
Have three binding variables, which cannot be achieved.
2. {{baseUrl}}/v1/users/951/roles-products
mapping wont be possible.
Thanks.