Click HERE to see how Saviynt Intelligence is transforming the industry. |
04/11/2023 08:14 AM
I'm using REST connector to collect accounts, entitlements and accEnt association using below JSON. Accounts and entitlements are successfully collected, But i don't see account entitlement association for any accounts. I was able to collect the assigned entitlements under account customproperty.
Please help me on why i don't see account entitlement association for ay accounts.
Here is the JSON i'm using
{
"accountParams": {
"connection": "userAuth",
"processingType": "SequentialAndIterative",
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"http": {
"url": "https://api.cloudflare.com/client/v4/accounts/09fd3a16b2b05b606bff7d91b2b9a4d7/members",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json"
},
"httpContentType": "application/json",
"httpMethod": "GET"
},
"listField": "result",
"keyField": "name",
"colsToPropsMap": {
"name": "user.email~#~char",
"accountID": "user.email~#~char",
"customproperty2": "user.id~#~char",
"customproperty7": "roles[0].id~#~char",
"customproperty31": "STORE#ACC#ENT#MAPPINGINFO~#~char"
}
}
},
"acctEntMappings": {
"roles": {
"listPath": "",
"idPath": "entitlement_value",
"keyField": "entitlementID",
"importAsEntitlement": true
}
}
},
"entitlementParams": {
"connection": "userAuth",
"processingType": "SequentialAndIterative",
"entTypes": {
"roles": {
"entTypeOrder": 0,
"entTypeLabels": {},
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"http": {
"url": "https://api.cloudflare.com/client/v4/accounts/09fd3a16b2b05b606bff7d91b2b9a4d7/members",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json"
},
"httpContentType": "application/json",
"httpMethod": "GET"
},
"listField": "result",
"keyField": "entitlement_value",
"colsToPropsMap": {
"entitlementID": "roles.id~#~char",
"entitlement_value": "roles.id~#~char",
"displayname": "roles.name~#~char",
"customproperty1": "deleted~#~char",
"customproperty2": "created_at~#~char",
"customproperty3": "updated_at~#~char"
},
"disableDeletedEntitlements": true
}
}
}
}
},
"acctEntParams": {
"processingType": "acctToEntMapping"
}
}
Attached are the logs for reference
Solved! Go to Solution.
04/11/2023 09:00 AM
This could be due to the acctEntMappings you have defined in the JSON. You can refer to the below REST Connector guide to understand the mapping (under ImportAccountEntJSON section) and update your JSON accordingly.
04/11/2023 09:39 AM
Thank you for your response.
I followed the REST Connector Guide to create the JSON/Update the above JSON. Still i don't see it is working as expected. I opened a FD ticket even support suggested to refer to REST Connector Guide. But no luck.
04/18/2023 09:47 AM
Can you confirm if you are able to see the entitlement assigned to the account populating in CP31 of the account.
If this value is populating, can you update ConfigJSON param in the REST connection with value {"showLogs":true}. Run the job and share the log string Got Webservice API Response
04/18/2023 02:48 PM - edited 04/21/2023 10:12 AM
Here is what i see in the CP1 on the account.
Attached are the logs.
04/18/2023 02:49 PM
Already added showlogs = true
04/18/2023 07:56 PM
There no mapping coming from target in accounts CP31. Does data is coming from postman if yes please share screenshot
04/19/2023 08:26 AM
04/19/2023 08:34 AM
Can you check in the saviynt logs if you are seeing the data being pulled as well.
You can search for the keyword "Got Webservice API Response"
04/20/2023 11:17 AM
I was able to see the date being pulled.
04/20/2023 02:54 PM
Can you update acctEntMappings as below and try.
"acctEntMappings": {
"roles": {
"listPath": "roles",
"idPath": "id",
"keyField": "entitlementID",
"importAsEntitlement": true
}
}
04/21/2023 10:11 AM - edited 04/21/2023 10:14 AM
I made the change and I assume we are back to square one.
Seeing the same error which i have seen earlier.
Log error:
2023-04-21/16:56:23.620 [{}] [quartzScheduler_Worker-6] DEBUG println.PrintlnToLogger - Println :: [1;31m| Error [22;39mjava.lang.NullPointerException: Cannot invoke method get() on null object
UI job error:
Failed to import one or more object types due to
multiple errors. Check the Job Log Details page
for more information
Attached are the logs for reference.
04/24/2023 09:00 AM - edited 04/24/2023 09:01 AM
I checked this and it should be working now. We need to set the value for "importAsEntitlement": to false. We already have a separate call to import entitlements under entitlementParams so the entitlements will be imported with it.
"acctEntMappings": {
"roles": {
"listPath": "roles",
"idPath": "id",
"keyField": "entitlementID",
"importAsEntitlement": false
}
}
05/01/2023 06:14 PM
Thank you issue is now resolved.