Click HERE to see how Saviynt Intelligence is transforming the industry. |
08/03/2024 06:50 AM
Hi
I'm not sure if I'm using httpEnttoAcct correctly in my entitlement to account mapping. I've successfully imported Accounts and Entitlements using this JSON and I now need to pass each Group Name in httpParams to get the list of Group Members (this is how it works in Postman). Would ${id} be the correct way to do it?
So far what I've attempted has not done any mapping and I've not seen any error messages either so please can you take a look and see if there's anything obviously wrong with the JSON.
{
"accountParams":
{
"connection": "acctAuth",
"processingType": "SequentialAndIterative",
"statusAndThresholdConfig":
{
"deleteLinks": true,
"statusColumn": "customproperty2",
"activeStatus": [
"true"] ,
"accountThresholdValue": 200,
"correlateInactiveAccounts": false,
"inactivateAccountsNotInFile": false,
"deleteAccEntForActiveAccounts": true
},
"call":
{
"call1":
{
"callOrder": 0,
"stageNumber": 0,
"http":
{
"url": "https://****.com/OneStreamApi/api/DataProvider/GetAdoDataSetForAdapter?api-version=5.2.0",
"httpHeaders":
{
"Authorization": "Bearer ${connection.token}",
"Accept": "application/json"
},
"httpParams": "{\"BaseWebServerUrl\": \"https://****.com/OneStreamWeb\",\"ApplicationName\": \"Dev\",\"WorkspaceName\": \"Default\",\"AdapterName\": \"REST_CALL\",\"ResultDataTableName\": \"RestAPIResults\",\"CustomSubstVarsAsCommaSeparatedPairs\": \"Method = Report, ReportName = Userlist\"}",
"httpContentType": "application/json",
"httpMethod": "POST"
},
"listField": "userList",
"keyField": "name",
"colsToPropsMap":
{
"accountID": "uniqueID~#~char",
"customproperty2": "isEnabled~#~bool",
"name": "email~#~char",
"displayname": "name~#~char",
"customproperty31": "STORE#ACC#ENT#MAPPINGINFO~#~char"
},
"successResponses":
{
"statusCode": [200, 201]
},
"unsuccessResponses":
{
"statusCode": [400, 401, 404, 500]
}
}
}
},
"entitlementParams":
{
"connection": "acctAuth",
"processingType": "SequentialAndIterative",
"entTypes":
{
"Group":
{
"call":
{
"call1":
{
"callOrder": 0,
"stageNumber": 0,
"http":
{
"url": "https://****.com/OneStreamApi/api/DataProvider/GetAdoDataSetForAdapter?api-version=5.2.0",
"httpHeaders":
{
"Authorization": "Bearer ${connection.token}",
"Accept": "application/json"
},
"httpParams": "{\"BaseWebServerUrl\": \"https://****.com/****Web\",\"ApplicationName\": \"Dev\",\"WorkspaceName\": \"Default\",\"AdapterName\": \"REST_CALL\",\"ResultDataTableName\": \"RestAPIResults\",\"CustomSubstVarsAsCommaSeparatedPairs\": \"Method = Report, ReportName = Group\"}",
"httpContentType": "application/json",
"httpMethod": "POST"
},
"listField": "groupList",
"keyField": "entitlementID",
"colsToPropsMap":
{
"entitlementID": "uniqueID~#~char",
"entitlement_value": "name~#~char",
"description": "description~#~char",
"acctEntMappingInfoColumnFromEnt": "STORE#ACC#ENT#MAPPINGINFO~#~char"
},
"disableDeletedEntitlements": true
}}}}},
"acctEntParams": {
"connection": "acctAuth",
"entTypes": {
"Group": {
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"processingType": "httpEntToAcct",
"http": {
"url": "https://****.com/****Api/api/DataProvider/GetAdoDataSetForAdapter?api-version=5.2.0",
"httpHeaders":
{
"Authorization": "Bearer ${connection.token}",
"Accept": "application/json"
},
"httpParams": "{\"BaseWebServerUrl\": \"https://****.com/****Web\",\"ApplicationName\": \"Dev\",\"WorkspaceName\": \"Default\",\"AdapterName\": \"REST_CALL\",\"ResultDataTableName\": \"RestAPIResults\",\"CustomSubstVarsAsCommaSeparatedPairs\": \"Method = Report, ReportName = GroupMembership, Groupname = ${id}\"}",
"httpContentType": "application/json",
"httpMethod": "POST"
},
"listField": "groupMembership",
"entKeyField": "entitlementID",
"acctKeyField": "name"
}
}
}
}
}
}
Solved! Go to Solution.
08/03/2024 04:00 PM
Please share postman screenshot and curl command [Refer https://codingnconcepts.com/postman/how-to-generate-curl-command-from-postman/ ]
⚠️‼️‼️Do not upload any attachments that contain sensitive information, such as IP Addresses, URLs, Company/Employee Names, Email Addresses, etc.‼️‼️⚠️
08/04/2024 05:20 AM
08/04/2024 07:55 PM
Please use below
{
"accountParams": {
"connection": "acctAuth",
"processingType": "SequentialAndIterative",
"statusAndThresholdConfig": {
"deleteLinks": true,
"statusColumn": "customproperty2",
"activeStatus": [
"true"
],
"accountThresholdValue": 200,
"correlateInactiveAccounts": false,
"inactivateAccountsNotInFile": false,
"deleteAccEntForActiveAccounts": true
},
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"http": {
"url": "https://****.com/OneStreamApi/api/DataProvider/GetAdoDataSetForAdapter?api-version=5.2.0",
"httpHeaders": {
"Authorization": "Bearer ${connection.token}",
"Accept": "application/json"
},
"httpParams": "{\"BaseWebServerUrl\": \"https://****.com/OneStreamWeb\",\"ApplicationName\": \"Dev\",\"WorkspaceName\": \"Default\",\"AdapterName\": \"REST_CALL\",\"ResultDataTableName\": \"RestAPIResults\",\"CustomSubstVarsAsCommaSeparatedPairs\": \"Method = Report, ReportName = Userlist\"}",
"httpContentType": "application/json",
"httpMethod": "POST"
},
"listField": "userList",
"keyField": "name",
"colsToPropsMap": {
"accountID": "uniqueID~#~char",
"customproperty2": "isEnabled~#~bool",
"name": "email~#~char",
"displayname": "name~#~char",
"customproperty31": "STORE#ACC#ENT#MAPPINGINFO~#~char"
},
"successResponses": {
"statusCode": [
200,
201
]
},
"unsuccessResponses": {
"statusCode": [
400,
401,
404,
500
]
}
}
}
},
"entitlementParams": {
"connection": "acctAuth",
"processingType": "SequentialAndIterative",
"entTypes": {
"Group": {
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"http": {
"url": "https://****.com/OneStreamApi/api/DataProvider/GetAdoDataSetForAdapter?api-version=5.2.0",
"httpHeaders": {
"Authorization": "Bearer ${connection.token}",
"Accept": "application/json"
},
"httpParams": "{\"BaseWebServerUrl\": \"https://****.com/****Web\",\"ApplicationName\": \"Dev\",\"WorkspaceName\": \"Default\",\"AdapterName\": \"REST_CALL\",\"ResultDataTableName\": \"RestAPIResults\",\"CustomSubstVarsAsCommaSeparatedPairs\": \"Method = Report, ReportName = Group\"}",
"httpContentType": "application/json",
"httpMethod": "POST"
},
"listField": "groupList",
"keyField": "entitlementID",
"colsToPropsMap": {
"entitlementID": "uniqueID~#~char",
"entitlement_value": "name~#~char",
"description": "description~#~char",
"acctEntMappingInfoColumnFromEnt": "STORE#ACC#ENT#MAPPINGINFO~#~char"
},
"disableDeletedEntitlements": true
}
}
}
}
},
"acctEntParams": {
"connection": "acctAuth",
"entTypes": {
"Group": {
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"processingType": "httpEntToAcct",
"http": {
"url": "https://****.com/****Api/api/DataProvider/GetAdoDataSetForAdapter?api-version=5.2.0",
"httpHeaders": {
"Authorization": "Bearer ${connection.token}",
"Accept": "application/json"
},
"httpParams": "{\"BaseWebServerUrl\": \"https://****.com/****Web\",\"ApplicationName\": \"Dev\",\"WorkspaceName\": \"Default\",\"AdapterName\": \"REST_CALL\",\"ResultDataTableName\": \"RestAPIResults\",\"CustomSubstVarsAsCommaSeparatedPairs\": \"Method = Report, ReportName = GroupMembership, Groupname = ${id}\"}",
"httpContentType": "application/json",
"httpMethod": "POST"
},
"listField": "groupMembership",
"entKeyField": "entitlementID",
"acctIdPath": "memberEmail",
"acctKeyField": "accountID"
}
}
}
}
}
}
08/03/2024 10:29 PM
Hi @do12 , do you see the response coming in logs
After running access import, fetch logs and share it across to debug the issue.
08/04/2024 05:36 AM
08/04/2024 07:29 AM
Hi @do12 , logs doesn't seem to be relevant.
Can you attach new extract?
08/04/2024 11:52 AM
08/04/2024 12:48 PM
@do12 ,
try this
{
"accountParams":
{
"connection": "acctAuth",
"processingType": "SequentialAndIterative",
"statusAndThresholdConfig":
{
"deleteLinks": true,
"statusColumn": "customproperty2",
"activeStatus": [
"true"] ,
"accountThresholdValue": 200,
"correlateInactiveAccounts": false,
"inactivateAccountsNotInFile": false,
"deleteAccEntForActiveAccounts": true
},
"call":
{
"call1":
{
"callOrder": 0,
"stageNumber": 0,
"http":
{
"url": "https://****.com/OneStreamApi/api/DataProvider/GetAdoDataSetForAdapter?api-version=5.2.0",
"httpHeaders":
{
"Authorization": "Bearer ${connection.token}",
"Accept": "application/json"
},
"httpParams": "{\"BaseWebServerUrl\": \"https://****.com/OneStreamWeb\",\"ApplicationName\": \"Dev\",\"WorkspaceName\": \"Default\",\"AdapterName\": \"REST_CALL\",\"ResultDataTableName\": \"RestAPIResults\",\"CustomSubstVarsAsCommaSeparatedPairs\": \"Method = Report, ReportName = Userlist\"}",
"httpContentType": "application/json",
"httpMethod": "POST"
},
"listField": "userList",
"keyField": "name",
"colsToPropsMap":
{
"accountID": "uniqueID~#~char",
"customproperty2": "isEnabled~#~bool",
"name": "email~#~char",
"displayname": "name~#~char",
"customproperty31": "STORE#ACC#ENT#MAPPINGINFO~#~char"
},
"successResponses":
{
"statusCode": [200, 201]
},
"unsuccessResponses":
{
"statusCode": [400, 401, 404, 500]
}
}
}
},
"entitlementParams":
{
"connection": "acctAuth",
"processingType": "SequentialAndIterative",
"entTypes":
{
"Group":
{
"call":
{
"call1":
{
"callOrder": 0,
"stageNumber": 0,
"http":
{
"url": "https://****.com/OneStreamApi/api/DataProvider/GetAdoDataSetForAdapter?api-version=5.2.0",
"httpHeaders":
{
"Authorization": "Bearer ${connection.token}",
"Accept": "application/json"
},
"httpParams": "{\"BaseWebServerUrl\": \"https://****.com/****Web\",\"ApplicationName\": \"Dev\",\"WorkspaceName\": \"Default\",\"AdapterName\": \"REST_CALL\",\"ResultDataTableName\": \"RestAPIResults\",\"CustomSubstVarsAsCommaSeparatedPairs\": \"Method = Report, ReportName = Group\"}",
"httpContentType": "application/json",
"httpMethod": "POST"
},
"listField": "groupList",
"keyField": "entitlementID",
"colsToPropsMap":
{
"entitlementID": "uniqueID~#~char",
"entitlement_value": "name~#~char",
"description": "description~#~char",
"acctEntMappingInfoColumnFromEnt": "STORE#ACC#ENT#MAPPINGINFO~#~char"
},
"disableDeletedEntitlements": true
}}}}},
"acctEntParams": {
"connection": "acctAuth",
"entTypes": {
"Group": {
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"processingType": "httpEntToAcct",
"http": {
"url": "https://****.com/****Api/api/DataProvider/GetAdoDataSetForAdapter?api-version=5.2.0",
"httpHeaders":
{
"Authorization": "Bearer ${connection.token}",
"Accept": "application/json"
},
"httpParams": "{\"BaseWebServerUrl\": \"https://****.com/****Web\",\"ApplicationName\": \"Dev\",\"WorkspaceName\": \"Default\",\"AdapterName\": \"REST_CALL\",\"ResultDataTableName\": \"RestAPIResults\",\"CustomSubstVarsAsCommaSeparatedPairs\": \"Method = Report, ReportName = GroupMembership, Groupname = ${id}\"}",
"httpContentType": "application/json",
"httpMethod": "POST"
},
"listField": "groupMembership",
"entKeyField": "entitlementID",
"acctKeyField": "name",
"acctIdPath","memberEmail"
}
}
}
}
}
}
08/05/2024 01:01 AM
Thank you for the response. I've tried that but there's no change
08/05/2024 02:17 AM
Could you kindly provide a detailed snapshot of the information extracted from the logs, encompassing errors and other pertinent functionality details encountered during the execution of this process? Your assistance in furnishing this information would greatly aid in the analysis and resolution of any issues .
‼️‼️⚠️Do not upload any attachments that contain sensitive information, such as IP Addresses, URLs, Company/Employee Names, Email Addresses, etc.⚠️‼️‼️
08/05/2024 02:51 AM
Thanks but I've got it working now. I just needed to change entKeyField from entitlementID to entitlement_value.