Hey,I need help regarding get users in
Hey,I need help regarding get users in thoughspot api v2.
I want to retrieve thoughspot user based on their name.
endpoint:api/rest/2.0/users/search
req body:{
"record_offset": 0,
"record_size": -1,
"include_favorite_metadata": false,
"user_identifier": "testUser12"
}
Even though I am giving user_identifier it is giving multiple records and my user is not even present in that.
I tried v1 api.It is working but the to get session id and client id,it is accepting body in x-www-form-urlencoded.I want to do it in json because I am working with okta workflows in which we have to give body in json.But when I try giving it in json,postman says 415Unsupported Media Type.
Header v1:given in the image
body:
{
"name": "xyz",
"password": "2vhUMTL"
}
8 Replies
@Ansh Jaiswal : It appears to be some problem with sending the body
We have tried the same via postman and it appears to be working as expected
@Ansh Jaiswal can you also post the whole API response. Maybe the message will help us.
And you are getting different responses in v1 and v2 APIs?
Looks like it is not reading anything from the Body. What you can try is by navigating to Develop -> REST Playground v2.0-> Search Users API and try the same from there. You can import the same CURL Command and import in Postman to see if there any differences. Example snapshot from playground
If you experience the same from Playground, please share the domain name so that we can validate and check what could be wrong here
yes with v1 api i am getting correct response