and more in a single search tool across platforms. Read the announcement here. |
10/16/2023 08:48 AM
Please see below error messages for REST -
Error in Acct - Ent mapping-
Error in importing entitlements-
Only account import is successful, please suggest some solutions to import entitlement & to map them with imported accounts.
Response for call in acctEntParams(for now I just have written json for groupid(usergroup) mapping not for Roles-
ImportAcctEntjson-
Solved! Go to Solution.
10/16/2023 11:04 AM
10/16/2023 09:31 PM
Hi Saathvik,
PFB response for GET- Usergroups
10/17/2023 11:40 AM
@Jaya : Try below JSON
{
"accountParams": {
"connection": "userAuth",
"processingType": "SequentialAndIterative",
"call": {
"call1": {
"callOrder": 1,
"listField": "data",
"keyField": "accountID",
"statusConfig": {
"active": "true",
"inactive": "false"
},
"disableDeletedAccounts": true,
"http": {
"url": "https://xxx.com/users",
"httpMethod": "GET",
"httpContentType": "application/json",
"httpHeaders": {
"API-Token": "xxx"
}
},
"colsToPropsMap": {
"accountID": "id~#~int",
"customproperty2": "last~#~char",
"customproperty1": "first~#~char",
"name": "email~#~char",
"status": "isActive~#~bool"
}
}
}
},
"entitlementParams": {
"processingType": "SequentialAndIterative",
"entTypes": {
"Usergroups": {
"entTypeOrder": 1,
"call": {
"call1": {
"callOrder": 1,
"connection": "userAuth",
"listField": "data",
"keyField": "entitlementID",
"disableDeletedEntitlements": true,
"http": {
"url": "https://xxx.com/groups",
"httpMethod": "GET",
"httpContentType": "application/json",
"httpHeaders": {
"API-Token": "xxx"
}
},
"colsToPropsMap": {
"entitlementID": "id~#~char",
"description": "description~#~char",
"entitlement_value": "name~#~char"
}
}
}
},
"Roles": {
"entTypeOrder": 1,
"call": {
"call1": {
"callOrder": 1,
"connection": "userAuth",
"listField": "data",
"keyField": "entitlementID",
"disableDeletedEntitlements": true,
"http": {
"url": "xxx.com/roles",
"httpMethod": "GET",
"httpContentType": "application/json",
"httpHeaders": {
"API-Token": "xxx"
}
},
"colsToPropsMap": {
"entitlementID": "id~#~char",
"description": "description~#~char",
"entitlement_value": "name~#~char"
}
}
}
}
}
},
"acctEntParams": {
"entTypes": {
"Usergroups": {
"call": {
"call1": {
"processingType": "httpAcctToEnt",
"connection": "userAuth",
"acctKeyField": "accountID",
"entKeyField": "entitlementID",
"listField": "",
"entIdPath": "groupid.ID",
"http": {
"url": "xxx.com/user/${id}",
"httpMethod": "GET",
"httpContentType": "application/json",
"httpHeaders": {
"API-Token": "xxx"
}
}
}
}
}
}
}
}
10/25/2023 04:20 AM
Hi Saathvik,
We are still getting same error . PFB screenshot.
11/07/2023 04:02 AM
Hi Saathvik, could you maybe help Jaya further below? They are still facing same issue. Thanks in advance!
11/08/2023 11:20 PM
@Jaya , lets start with entitlements import. Use {"showLogs" = true} in configjson to check the response for the roles call and see if all the roles have id and name populated. From error it looks like some values in response do not have name or id is null/empty.
11/09/2023 03:05 AM
H Nimit,
I have added suggested config Json code in the connection & could see entitlement import is successful.
After this when we enter in acctEntParams mapping , I am getting the entitlement value tagged to the user in response-
But after this it still says Entvalukey:Null
11/09/2023 09:40 PM
@Jaya , did you try with below in acctentmapping for usergroups?
"listField": "groupid",
"entIdPath": "ID",
11/09/2023 10:24 PM - edited 11/09/2023 10:32 PM
Yesssss Its working now with these changes.
Thank you so much for your help Namit.
11/10/2023 06:51 AM
Need help with one more thing-
In disable account call - body should be in below format as suggested by application team -
{
"email":"string"
}
And I am passing http parameters as below, In logs it shows error - email must be present but I could see API call is able to pick email ID, so what could be the issue.
Do I have to include double quotes? Please help.
"httpParams":"{\"email\":\"${account.name}\"}"
In postman it is successful -
11/10/2023 07:41 AM
11/10/2023 08:19 AM
Superb...It worked. Thankyou Saathvik.
11/10/2023 08:29 AM
Great can you please mark it as solution so that it helps others as well.