Click HERE to see how Saviynt Intelligence is transforming the industry. |
08/01/2024 08:42 AM
Hi Team,
We are adding users to savroles (ROLE_ADMIN & ROLE_MANAGER) manually and then we ran account import job using Sav4Sav. But we observe only ROLE_ADMIN is getting mapped to account and not the other savrole.
When we add savroles to users using ARS process and we ran import. Then we see association.
Is there any configuration i am missing here.
Solved! Go to Solution.
08/01/2024 08:49 AM
Hi @VijayMaram , can you share your accountimportjson
08/01/2024 08:57 AM
Hi @NM
Thanks for your quick response.
Below is the JSON we are using.
{
"accountParams": {
"connection": "userAuth",
"processingType": "SequentialAndIterative",
"statusAndThresholdConfig": {
"statusColumn": "customproperty11",
"activeStatus": [
1
],
"deleteLinks": false,
"accountThresholdValue": 100,
"correlateInactiveAccounts": false,
"inactivateAccountsNotInFile": true,
"deleteAccEntForActiveAccounts": true
},
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"http": {
"url": "https://*********-dev.saviyntcloud.com/ECM/api/v5/user?q=accountExpired:0&fields=username,email,displayname,statuskey&sort=username&order=desc",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json"
},
"httpContentType": "application/json",
"httpMethod": "GET"
},
"listField": "results",
"keyField": "accountID",
"colsToPropsMap": {
"accountID": "username~#~char",
"name": "username~#~char",
"displayName": "displayname~#~char",
"customproperty2": "email~#~char",
"customproperty11": "statuskey~#~char",
"status": "active~#~char"
},
"pagination": {
"offset": {
"offsetParam": "offset",
"batchParam": "max",
"batchSize": 500,
"totalCountPath": 999999999
}
}
}
}
},
"entitlementParams": {
"connection": "userAuth",
"processingType": "SequentialAndIterative",
"entTypes": {
"SAVRoles": {
"entTypeOrder": 0,
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"http": {
"url": "https://*********-dev.saviyntcloud.com/ECMv6/api/userms/savroles",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json"
},
"httpContentType": "application/json",
"httpMethod": "GET",
"successResponses": {
"statusCode": [
200,
201
]
}
},
"listField": "savroles",
"keyField": "entitlementID",
"colsToPropsMap": {
"entitlementID": "ROLENAME~#~char",
"entitlement_value": "ROLENAME~#~char"
}
}
}
}
}
},
"acctEntParams": {
"entTypes": {
"SAVRoles": {
"call": {
"call1": {
"connection": "userAuth",
"acctKeyField": "accountID",
"processingType": "httpEntToAcct",
"listField": "users",
"http": {
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpMethod": "GET",
"url": "https://*********-dev.saviyntcloud.com/ECMv6/api/userms/savroles/${id}/users?limit=1000&offset=0",
"httpContentType": "application/json"
},
"entKeyField": "entitlementID",
"acctIdPath": "username",
"pagination": {
"offset": {
"offsetParam": "startIndex",
"batchParam": "limit",
"batchSize": 1000,
"totalCountPath": "completeResponseMap.totalResults"
}
}
}
}
}
}
}
}
08/01/2024 09:19 AM
Hi @VijayMaram , do you see the the user coming in via postman??
08/01/2024 09:29 AM
Hi @NM
Yes, as i mentioned above if i add user to savrole manually then i don't see data.
But when i add SAVROLE to users using ARS then we were able to see the data.
08/01/2024 11:37 AM
Does running api from postman shows data?
08/05/2024 01:34 PM
Hi @rushikeshvartak and @NM
Yes, we are using SOAPUI and we were able to see the data. But we observe only 500 records are coming and it looks like pagination issue.
Can you please review below JSON, any changes can help here?
I have tried multiple combination here. but every time i am getting only 500 records.
"pagination": {
"offset": {
"offsetParam": "offset",
"batchParam": "max",
"batchSize": 500,
"totalCountPath": "completeResponseMap.total"
}
}
---------------------------------------------
{
"accountParams": {
"connection": "userAuth",
"processingType": "SequentialAndIterative",
"statusAndThresholdConfig": {
"statusColumn": "customproperty11",
"activeStatus": [
1
],
"deleteLinks": false,
"accountThresholdValue": 100,
"correlateInactiveAccounts": false,
"inactivateAccountsNotInFile": true,
"deleteAccEntForActiveAccounts": true
},
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"http": {
"url": "https://*********n-dev.saviyntcloud.com/ECM/api/v5/user?q=accountExpired:0&fields=username,email,displayname,statuskey&sort=username&order=desc",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json"
},
"httpContentType": "application/json",
"httpMethod": "GET"
},
"listField": "results",
"keyField": "accountID",
"colsToPropsMap": {
"accountID": "username~#~char",
"name": "username~#~char",
"displayName": "displayname~#~char",
"customproperty2": "email~#~char",
"customproperty11": "statuskey~#~char",
"status": "active~#~char"
},
"pagination": {
"offset": {
"offsetParam": "offset",
"batchParam": "max",
"batchSize": 500,
"totalCountPath": 999999999
}
}
}
}
},
"entitlementParams": {
"connection": "userAuth",
"processingType": "SequentialAndIterative",
"entTypes": {
"SAVRoles": {
"entTypeOrder": 0,
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"http": {
"url": "https://*********n-dev.saviyntcloud.com/ECMv6/api/userms/savroles",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json"
},
"httpContentType": "application/json",
"httpMethod": "GET",
"successResponses": {
"statusCode": [
200,
201
]
}
},
"listField": "savroles",
"keyField": "entitlementID",
"colsToPropsMap": {
"entitlementID": "ROLENAME~#~char",
"entitlement_value": "ROLENAME~#~char"
}
}
}
}
}
},
"acctEntParams": {
"entTypes": {
"SAVRoles": {
"processingType": "httpEntToAcct",
"call": {
"call1": {
"connection": "userAuth",
"acctKeyField": "accountID",
"processingType": "httpEntToAcct",
"listField": "users",
"http": {
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpMethod": "GET",
"url": "https://*********n-dev.saviyntcloud.com/ECMv6/api/userms/savroles/${id}/users?limit=1000",
"httpContentType": "application/json"
},
"entKeyField": "entitlementID",
"acctIdPath": "username",
"pagination": {
"offset": {
"offsetParam": "offset",
"batchParam": "max",
"batchSize": 500,
"totalCountPath": "completeResponseMap.total"
}
}
}
}
}
}
}
}
08/05/2024 05:15 PM
Try below
"pagination": {
"offset": {
"offsetParam": "offset",
"batchParam": "max",
"batchSize": 500,
"totalCountPath": 99999
}
}