02-23-2017 11:04 AM
Hi all,
I'm building a service for Yammer retrieving the user list of a company and, to reduce the network traffic, I'd like to filter out from the API results the users that are not active.
I am querying the /users.json handler of the Yammer API,
I am interested only in active users, but from the docs it states simply "users", does not mention about their state
https://developer.yammer.com/docs/usersjson
I want to filter out all the users that have a "state" != "active".
Is there a way to do that?
Attached a dump of the users gotten from the application in csv format. Notice the "state" column.
Thanks
03-06-2017 10:04 AM
@Diego Marchi- I assume you're providing that sample from the export users.csv file.
Good News for you is that https://www.yammer.com/api/v1/users.json only returns active users. I verified this when I wrote a script a while back to paginate through all the users and list their followers/following in a csv format. I ran the script again today and it is still the case.
03-08-2017 05:11 PM
Thanks Victor,
yes that csv was extracted from the exported users file.
In that case, great! I will need to doublecheck with the customer in case he has some issues with the list.
Thanks!