Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

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)

21 REPLIES 21

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,

If you find the above response useful, Kindly Mark it as "Accept As Solution".

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


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

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.

If you find the above response useful, Kindly Mark it as "Accept As Solution".

asharma
Regular Contributor II
Regular Contributor II

not working

asharma_0-1689594781906.png

 

what is ask here and which job are you running ?


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

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


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

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

If you find the above response useful, Kindly Mark it as "Accept As Solution".

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.

If you find the above response useful, Kindly Mark it as "Accept As Solution".

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.

If you find the above response useful, Kindly Mark it as "Accept As Solution".

Please help for the above @sudeshjaiswal 

kolipakularavi
New Contributor
New Contributor

Hi Team,

we are also getting the same error as below - 

No content to map due to end-of-input at [Source: ; line: 1, column: 0]

{
  "accountParams": {
    "connection": "userAuth",
    "createUsers": false,
    "adminName": "admin",
    "processingType": "SequentialAndIterative",
    "statusAndThresholdConfig": {
      "deleteLinks": false,
      "accountThresholdValue": 30,
      "correlateInactiveAccounts": false,
      "inactivateAccountsNotInFile": false
    },
    "successResponses": {
      "statusCode": [200]
    },
    "unsuccessResponses": {
      "statusCode": [502]
    },
    "doNotChangeIfFailed": true,
    "call": {
      "call1": {
        "callOrder": 0,
        "stageNumber": 0,
        "http": {
          "url": "https://**************/scim2/Users?startIndex=1&count=10",
          "httpHeaders": {
             "Authorization": "removed",
"Accept": "application/json"
          },
          "httpParams": "{}",
          "httpContentType": "application/json",
          "httpMethod": "GET"
        },
        "listField": "Resources",
        "keyField": "accountID",
        "colsToPropsMap": {
          "accountID": "id~#~char",
          "NAME": "userName~#~char",
          "customproperty1": "emails[0]~#~char"
        }
      }
    }
  },
"entitlementParams": {
"connection": "userAuth",
"processingType": "SequentialAndIterative",
"successResponses": {
      "statusCode": [200]
    },
    "unsuccessResponses": {
      "statusCode": [502]
    },
"entTypes": {
"Role": {
"entTypeOrder": 0,
"call": {
"call1": {
"connection": "userAuth",
"callOrder": 0,
"stageNumber": 0,
"http": {
"httpHeaders": {
"Authorization": "removed",
"Accept": "application/json"
},
"url": "https://****************/scim2/Groups",
"httpContentType": "application/json",
"httpMethod": "GET"
},
"listField": "Resources",
"keyField": "entitlementID",
"colsToPropsMap": {
"entitlementID": "id~#~char",
"entitlement_value": "displayName~#~char",
"displayname": "displayName~#~char",
"description": "displayName~#~char",
"entitlement_glossary": "displayName~#~char"
}
}
}
}
}
},
"acctEntParams": {}
 
}
Above is the xml import xml and it is failing which is REST API

 

 

sudeshjaiswal
Saviynt Employee
Saviynt Employee

Hello @kolipakularavi,

Could you please share the postman response mapping, and also what attibutes you are passing the url?


Thanks.

If you find the above response useful, Kindly Mark it as "Accept As Solution".