07/12/2023 10:29 AM
Hi Team,
I am trying to store some of the attribute values in custom properties using SavforSavrest connector by updateuserjson. Please find my json as below:
{
"actions": {
"Update User": {
"call": [{
"name": "call1",
"connection": "userAuth",
"url": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"httpMethod": "POST",
"httpParams": "{\"customproperty50\":\"${user.email}\",\"customproperty51\":\"${user.manager}\",\"customproperty52\":\"${user.email}\",\"customproperty53\":\"${user.costcenter}\",\"customproperty54\":\"${user.jobcode}\",\"customproperty55\":\"${user.location}\"}",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpContentType": "application/json",
"successResponses": [{
"message": "User Updated Successfully"
}]
}]
}
}
}
However, when i am running below job after successful conection it is throwing me error "No content to map due to end-of-input at [Source: (String)""; line: 1, column: 0]"
Job - User Import via a Connection (UserImportJob)
07/13/2023 02:38 AM
Hello @asharma,
Please use UpdateAccount Json for your use case.
Please refer below document:-
https://docs.saviyntcloud.com/bundle/REST-v2022x/page/Content/Developers-Handbook.htm
Thanks,
07/13/2023 06:17 AM
I just want to update the user object custom property not any account object.
Also, kindly check if my JSON syntax is fine.
07/13/2023 08:40 PM
This will be called from WSRETRY job where security system is blank
07/13/2023 09:29 PM
@rushikeshvartak please elaborate your statement and confirm if above JSON is correct or not.
07/13/2023 09:44 PM
@rushikeshvartak @sudeshjaiswal i tried with WSRETRY Job as well but no change. Issue is still same.
Let me know if you need any more info and it's urgent so help me asap please.
07/16/2023 11:32 PM
Hi Team, nay update on my issue. waiting for your solution.
07/17/2023 02:03 AM
Hello @asharma,
As you are using SAVFORSAV using REST, Where Saviynt is an application.
You need to use the Update Account JSON for your use-case, please find the sample below.
Sample JSON
```````````````
{
"dateFormat": "yyyy-MM-dd'T'HH:mm:ssXXX",
"responseColsToPropsMap": {},
"call": [
{
"name": "call1",
"connection": "acctAuth",
"url": "https://SaviyntURL/ECM/api/v5/updateUser",
"httpMethod": "POST",
"httpParams": "{\"username\": \"${user.username}\",\"firstname\": \"${user.firstname}\",\"Email\": \"${user.email}\",\"lastname\": \"${user.lastname}\"}",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
200,
201
]
}
}
]
}
```````````````````
Thanks,
Thanks.
07/17/2023 04:53 AM
not working
07/17/2023 08:47 PM
what is ask here and which job are you running ?
07/18/2023 12:49 AM
Ask - we want to get some user attribute values from saviynt database and that should get store in custom properties.
we are using updateaccountjson as per above suggestions from @sudeshjaiswal
Job - we have tried with database import user, User Import via a Connection (UserImportJob)
none of them are working.
07/18/2023 10:15 PM
07/17/2023 07:51 AM
@sudeshjaiswal @rushikeshvartak can you help me now?
07/18/2023 09:59 PM
Hello @asharma,
Is it working in Postman?
Thanks
07/19/2023 12:30 AM
Yes, it is working in postman
07/19/2023 07:56 AM
As per my troubleshooting, I can't see the configuration for SaviyntforSaviynt under global configurations > preferences in version 23.1
Also, I am using my individual username and password to make the connection.
Please advise on above so that we can narrow down the issue.
07/21/2023 02:06 AM
Hello @asharma,
Could you consider using SAVFORSAV DB connections for your specific use case?
Thanks.
08/07/2023 05:30 AM
I didn't get the DB credential as per below response from saviynt.
"I was not able to use Sav for Sav DB Connector and it wont work anymore for any of the customers as well. As a result, we won't be able to utilize Sav DB Connector for any future integrations."
Do you have any other suggestion.
09/10/2023 09:58 PM
Hello @asharma ,
That correct you need to use the SAVFORSAV rest connector from going forward.
Thanks.