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" }
No description
8 Replies
Sandeep
Sandeep10mo ago
@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
Sandeep
Sandeep10mo ago
No description
shikharTS
shikharTS10mo ago
@Ansh Jaiswal can you also post the whole API response. Maybe the message will help us.
Ansh Jaiswal
Ansh JaiswalOP10mo ago
No description
shikharTS
shikharTS10mo ago
And you are getting different responses in v1 and v2 APIs?
Sandeep
Sandeep10mo ago
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
No description
Sandeep
Sandeep10mo ago
If you experience the same from Playground, please share the domain name so that we can validate and check what could be wrong here
Ansh Jaiswal
Ansh JaiswalOP10mo ago
yes with v1 api i am getting correct response

Did you find this page helpful?