Click HERE to see how Saviynt Intelligence is transforming the industry. |
06/04/2024 07:02 AM - last edited on 06/09/2024 11:15 PM by Sunil
Hi Team,
We have integrated REST application and able to run the import job successfully. When we try to create account through ARS the account is getting provisioned and marked Account Status as 'Manually Provisioned' in Saviynt and account is created at Target side as well. As soon as we run the Account Import job it is creating another duplicate account with 'Active' status under Accounts section in Saviynt.
Could you please find the attached screenshot and do the needful for this issue to fix.
Thanks,
Rafi
[This message has been edited by moderator to mask sensitive information from an attached log file]
Solved! Go to Solution.
06/04/2024 07:39 AM
Validate account id for both accounts
06/07/2024 09:04 AM
Hi @rushikeshvartak ,
Yes, The account id is different for both account. While creating the account through ARS, as a response(CreateAccount Json response) ARS request is creating one id and which is storing at Target side. As soon as we run the import job which is creating another account in saviynt with the ID(which is created through ARS createAccount)
Could you please let me is there any way to fix this issue ? If you can provide any sample json would be great.
Thanks,
Rafi
06/07/2024 10:34 PM
Hi @mahammed_raffi , what are you passing as username in create account json?
06/08/2024 07:51 AM
Hi @NM - I am passing login as username in create account json. Please find the attached create account json.
Thanks,
Rafi
06/08/2024 07:55 AM
Hi @mahammed_raffi , I don't see username field been passed in create json but you are mapping username field to account id
06/08/2024 08:37 AM - edited 06/08/2024 08:38 AM
{
"accountIdPath": "response.call1.message.",
"dateFormat": "yyyy-MM-dd'T'HH:mm:ssXXX",
"call": [
{
"name": "call1",
"connection": "acctAuth",
"showResponse": false,
"url": "https://XXXXXXXX/api/3/users",
"httpMethod": "POST",
"httpParams": "{\"authentication\":{ \"id\":\"2\", \"type\":\"normal\" },\"email\":\"${user.email}\", \"enabled\":\"true\", \"login\":\"${user.username}\",\"name\":\"${user.username}\",\"password\":\"${password}\",\"passwordResetOnLogin\":\"true\",\"role\":{ \"allAssetGroups\":\"false\", \"allSites\":\"false\", \"id\":\"View Only\", \"superuser\":\"false\"}}",
"httpHeaders": {
"Authorization": "Basic XXXXXXX"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
201,
200
]
},
"unsuccessResponses": {
"statusCode": [
400,
401,
403,
404
]
}
}
]
}
06/20/2024 09:13 AM
We tried with above json and still no luck.
{
"accountIdPath": "response.call1.message.id",
"dateFormat": "yyyy-MM-dd'T'HH:mm:ssXXX",
"call": [
{
"name": "call1",
"connection": "acctAuth",
"showResponse": false,
"url": "https://XXXXXXX3780/api/3/users",
"httpMethod": "POST",
"httpParams": "{\"authentication\":{ \"id\":\"2\", \"type\":\"normal\" },\"email\":\"${user.email}\", \"enabled\":\"true\", \"login\":\"${user.username}\",\"name\":\"${user.username}\",\"password\":\"${password}\",\"passwordResetOnLogin\":\"true\",\"role\":{ \"allAssetGroups\":\"false\", \"allSites\":\"false\", \"id\":\"View Only\", \"superuser\":\"false\"}}",
"httpHeaders": {
"Authorization": "Basic XXXXXXX="
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
201,
200
]
},
"unsuccessResponses": {
"statusCode": [
400,
401,
403,
404
]
}
}
]
}
06/20/2024 09:19 PM
Provide data analyzer screenshot for both accounts - account id
06/24/2024 06:37 AM
06/24/2024 08:42 PM
Account id should be same when you are importing account and creating account.
Can you confirm 311 is ID from import and login is from saviynt user created ?
06/24/2024 06:42 AM
Hi @mahammed_raffi , accountid for both the accounts are different.. it should be same to map the data to one account.