and more in a single search tool across platforms. Read the announcement here. |
02/22/2024 07:07 AM
Hi
I am using a REST connector for Reltio application to import accounts and roles. I have successfully imported the accounts using unique key as cp1 for email. Now, I am trying to import the roles and map them to accounts however I can see there is only 1 attribute at app side that is 'roleName' and I am using below ImportAccountEntJSON JSON and getting error 'Cannot get property 'entitlementname' on null object'.
ImportAccountEntJSON
{
"accountParams": {
"connection": "userAuth",
"processingType": "SequentialAndIterative",
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"http": {
"url": "https://abc.xyz.com/oauth/users",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpContentType": "application/x-www-form-urlencoded",
"httpMethod": "GET"
},
"statusConfig": {
"active": "true",
"inactive": "false"
},
"listField": "",
"keyField": "customproperty1",
"colsToPropsMap": {
"name": "username~#~char",
"customproperty1": "email~#~char",
"customproperty2": "enabled~#~char",
"customproperty3": "credentialsNonExpired~#~char",
"customproperty4": "externalUser~#~char"
}
}
},
"acctEntMappings": {
"Role": {
"listPath": "Role",
"idPath": "UserRoleId",
"keyField": "entitlement_value"
}
}
},
"entitlementParams": {
"processingType": "SequentialAndIterative",
"entTypes": {
"Roles": {
"entTypeOrder": 1,
"entTypeLabels": {},
"call": {
"call1": {
"connection": "userAuth",
"callOrder": 0,
"stageNumber": 0,
"http": {
"httpHeaders": {
"Authorization": "${access_token}"
},
"url": "https://abc.xyz.com/admin/roles/users",
"httpContentType": "application/json",
"httpMethod": "GET"
},
"listField": "records",
"keyField": "entitlement_Value",
"colsToPropsMap": {
"entitlementID": "Id~#~char",
"entitlement_value": "roleName~#~char",
"displayName": "roleName~#~char",
"description": "Label~#~char"
}
}
}
}
}
},
"acctEntParams": {
"processingType": "acctToEntMapping"
}
}
Please suggest where I am going in wrong directions
02/22/2024 08:58 PM
"acctEntMappings": {
"Role": {
"listPath": "Role",
"idPath": "UserRoleId",
"keyField": "entitlementID"
}
}
},
02/23/2024 12:51 AM
Hi Rushikesh,
I am still getting the same error.
Also, there is no entitlementID at the target side. there is only 1 attribute that is entitlement value / roleName
Kindly suggest accordingly on the above JSON
02/25/2024 07:23 PM
Share API Response
02/25/2024 09:17 PM
Hi Rushikesh,
Below is the response from API.
[
"ROLE_USER",
"ROLE_TEST_READONLY",
"ROLE_TEST_SERVICES",
"ROLE_CUSTOM_USER",
"ROLE_ADMIN_USER",
"ROLE_READ",
"ROLE_API",
"ROLE_DUMMY"
]
02/25/2024 09:21 PM
02/25/2024 09:27 PM
Hi Rushikesh,
Seems it is the same issue which is with me however I cannot see the JSON on that forum. Is it possible if you can provide the JSON so that I can also try the same JSON at my end.
02/26/2024 02:02 AM
Hi Rushikesh,
Please share the JSON asap as per above to start my testing as it is not available on your shared forum link.
02/26/2024 07:40 PM
02/26/2024 08:20 PM
Hi Rushikesh,
We are not sure if entitlements were created from UI in target app as it is not at the Saviynt end. Please suggest if we need to proceed to import the entitlements manually in Saviynt in my scenario or is there any other way.
02/26/2024 08:47 PM
You need to import manully
03/19/2024 07:44 AM
Hi @asharma
When you try to import accounts and access from target and pull the data on postman, what API are you referring? Are you using the same API to bring in accounts and roles(entitltments) or through different API's
Please share the complete postman request and response.
03/20/2024 08:09 AM - last edited on 03/20/2024 08:45 AM by Sunil
Hi Adarsh,
I am using below API's in Postman.
Get users - https://auth.reltio.com/oauth/users
Get Roles - https://auth.reltio.com/admin/roles/users/
Postman response
Get Users -
03/26/2024 08:07 AM
Hi @adarshk , Is there any update on above?
03/26/2024 11:02 PM
Please validate ListFields and Keyfield mapping.
entitlement_value needs to be consistent across the JSON.
ListField is mapped to 'records', please confirm if this is the right attribute used in postman call aswell
Share the postman request response screenshots for Role and user calls.
03/27/2024 01:03 AM
Hi Adarsh,
I have already posted the postman request and response above responses to you. please check them.
03/27/2024 09:08 PM
You need to create entitlements manually as its list and not key value