How do I get active users only through the API | XM Community
Question

How do I get active users only through the API

  • 11 September 2020
  • 1 reply
  • 49 views

Userlevel 1
Badge +2

Hi, newbie question but I can't find an answer in the forums so hope someone can point me in the right direction.
I simply want a list of users where accountStatus=active.
Using the List Users call gives me all users, and adding accountStatus=active as a parameter gives me a string https://fra1.qualtrics.com/API/v3/users?accountStatus=active , but it still returns all users, both active and disabled. Maybe I'm mistaken in thinking using a parameter in this way acts like a filter.
I'm new to working with API's (I use Postman) and don't know json or python, although just beginning to familiarise with json.
Ultimately, I want a list of emails of active uses. So if there's a way I can exclude the other elements of the body, like id, username, etc, that would save me some cleaning up (which I do in Note++).
Thanks!


1 reply

Badge +8

Newbie here as well and I have a similar experience. I tried to search just for users with a specific last name and it still returns all users.

Leave a Reply