using SavforSavREST connector to update user attributes in custom properties

asharma
Regular Contributor II
Regular Contributor II

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)

18 REPLIES 18

sudeshjaiswal
Saviynt Employee
Saviynt Employee

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,

asharma
Regular Contributor II
Regular Contributor II

I just want to update the user object custom property not any account object.
Also, kindly check if my JSON syntax is fine.

rushikeshvartak
All-Star
All-Star

This will be called from WSRETRY job where security system is blank

asharma
Regular Contributor II
Regular Contributor II

@rushikeshvartak please elaborate your statement and confirm if above JSON is correct or not. 

asharma
Regular Contributor II
Regular Contributor II

@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.

asharma
Regular Contributor II
Regular Contributor II

Hi Team, nay update on my issue. waiting for your solution.

sudeshjaiswal
Saviynt Employee
Saviynt Employee

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.

asharma
Regular Contributor II
Regular Contributor II

not working

asharma_0-1689594781906.png

 

what is ask here and which job are you running ?

asharma
Regular Contributor II
Regular Contributor II

Hi @rushikeshvartak 

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.

 

  • User import job to update users properties 

share xml user

asharma
Regular Contributor II
Regular Contributor II

@sudeshjaiswal @rushikeshvartak  can you help me now?

sudeshjaiswal
Saviynt Employee
Saviynt Employee

Hello @asharma,

Is it working in Postman?

Thanks

asharma
Regular Contributor II
Regular Contributor II

Yes, it is working in postman

 

asharma
Regular Contributor II
Regular Contributor II

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.

sudeshjaiswal
Saviynt Employee
Saviynt Employee

Hello @asharma,

Could you consider using SAVFORSAV DB connections for your specific use case?

Thanks.

asharma
Regular Contributor II
Regular Contributor II

Hi @sudeshjaiswal 

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.

sudeshjaiswal
Saviynt Employee
Saviynt Employee

Hello @asharma ,

That correct you need to use the SAVFORSAV rest connector from going forward.

Thanks.