and more in a single search tool across platforms. Read the announcement here. |
04/05/2023 04:22 PM
Hi. We are getting User updates pushed to us via SAP BTP from our HRIS and are getting an error updating the User startdate. The documentation says
It says "2023-04-05T20:06:30.89581394Z stdout F - Field error in object 'com.saviynt.ecm.identitywarehouse.domain.Users' on field 'startdate': rejected value [03-22-2023]; codes at com.saviynt.ecm.services.changeaction.UserChangeActionService.updateUser(UserChangeActionService.groovy:5255)"
I've attached the log. Note, we are actually on 23.3
Solved! Go to Solution.
04/05/2023 04:39 PM
Hi @rhawes ,
Can you please confirm if you're creating an update user request through API. Are you able to see any error on the postman??
Thanks,
04/05/2023 04:44 PM
Hi, Pruthvi
We are getting this pushed to us and the send is successful from SAP side. The error is in Saviynt, but the same startdate field and format is not a problem in a separate push that creates the User record. It is only occurring on the update.
04/06/2023 08:21 AM
Hey, Pruthvi
I misunderstood your question. Here is the error we re getting when we try to execute this from Postman.
04/06/2023 09:29 AM
@rhawes You need to use https://abc.saviynt.com/ECM/api/v5/updateUser api in order to push updates from postman. The path value is api/v5
https://documenter.getpostman.com/view/1797923/RWaLwo21#intro
04/06/2023 10:30 AM
Hey, Sahil
Thanks. Now we get this error
So the startdate cannot be less than today; is that it?
Thanks,
Richard
04/06/2023 10:34 AM
@rhawes ,
If you're not updating the start date , you can remove it from the payload as it is not a mandatory parameter. But if you're including it, you cannot keep it less than the current date.
Thanks,
04/06/2023 10:36 AM
@rhawes ,
to allow the start date to be in past you can use below optional parameter "allowpastdate".
allowpastdate: Set Values to be true or false. The default value is false. Set the value to be true, to allow start date to be less than current date.
Thanks,
04/10/2023 05:47 AM
Hey, Pruthvi
That was it. Thanks a lot for your help.
Richard
04/10/2023 08:00 AM
Hi, Pruthvi
I spoke too soon. My developer just tried this again and and got the following error.
Any further suggestions?
Thanks,
Richard
04/10/2023 02:31 PM
Hi @rhawes ,
I have validated the payload in my internal instance and I'm able to update the user successfully.
Please refer to below screenshots.
Kindly validate your payload once and see if the URL path is given as 'api/v5'.
example: https://xxxxxx.saviyntcloud.com/ECM/api/v5/updateUser
Thanks,