Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Issue in updateuser API from postman

saimeghana
Regular Contributor II
Regular Contributor II

Hi Team,

We are trying to update the username in saviynt by using the sav4savrest connector and we utilize the update user json.

Tried to run the updateuser API in postman but we are not getting the response, response status is 200 but no updates are pushed.

Below screenshot for reference.

saimeghana_0-1715591949953.png

Thanks,

Sai Meghana

10 REPLIES 10

PremMahadikar
Valued Contributor
Valued Contributor

Hi @saimeghana ,

Can you share the screenshot of the payload you passing in postman?

 

saimeghana
Regular Contributor II
Regular Contributor II

Hi Prem Mahadikar,

 
1)
{
    "propertytosearch":"employeeid",
    "firstname":"BCONT",
    "lastname":"BCHG0001",
    "employeeid":"20019",
    "statuskey":"1"
}
 
 2)
{
"updatedusername":"test1",
"propertytosearch":"20019"
}
 
Thanks,
Sai Meghana

@saimeghana ,

Can you try passing below: 

{
"propertytosearch":"employeeid",
"employeeid":"20019",
"firstname":"BCONT",
"lastname":"BCHG0001",
"statuskey":"1",
"updatedusername":"test1"
}

saimeghana
Regular Contributor II
Regular Contributor II

Hi Prem Mahadikar,

Tried with above payload same issue.

Thanks,

Sai Meghana

@saimeghana ,

The same body is working for me.

Please verify the URL you are passing:

PremMahadikar_1-1715600305530.png

 

If this helps your question, please consider selecting Accept As Solution and hit Kudos

saimeghana
Regular Contributor II
Regular Contributor II

Hi Prem Mahadikar,

Tried with same URL by changing the Domain still same issue.

Thanks,

Sai Meghana


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

Hi Rushikesh,
 
Please find the curl code snippet.
 
--header 'Authorization: Bearer xxxxxxxx' \
--header 'Content-Type: application/json' \
--header 'Cookie: JSESSIONID=xxxxxxxx; CCSRF-TOKEN=xxxxxxxx; INGRESSCOOKIE=xxxxxxxx; access_token=xxxxxxxx; token_type=Bearer; user_name=SVC_UAT.SAV4SAVREST' \
--data '{
    "propertytosearch":"employeeid",
    "firstname":"BCONT",
    "lastname":"BCHG0001",
    "employeeid":"20019",
    "updatedusername":"test1"
}'
 
Thanks,
Sai Meghana
[This post has been edited by a Moderator to remove sensitive information.]

Hi Team,

Issue resolved, Solution: we set the security question for the service account and tried in postman it worked.

Thanks,

Sai Meghana

  • Validate http method and url

Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.