API REST Yammer: cant retrieve admins from a group -
I did the javascript SDK using the REST API:
yam.platform Request ({url: "users / in_group / 2490226", method: "GET",});
I have recovered users but I can not see who is an administrator
Can I withdraw an Administrator of a group using the REST API ?
If you use group / {group id} /members.json then returned users Call the list "is_group_admin" field.
Here's an example: 4767132 /members.json
Your group ID 4767132 will include a list of users in the JSN answer, where a user Looks like this:
{"type": "user", "id": 1526232831, "name": "yam5dummy", "state": "active", "fullname": "Yam5dummy", "job_title": blank, "network_id": XXXXXX, "mugshot_url": "https://mug0.assets-yammer.com/mugshot/images/ 48x48 / no_photo.png", "mugshot_url_template": "https : //mug0.assets-yammer.com/mugshot/images/ {width} x {height} /no_photo.png "," url ":" https: // www.yammer.com/api/v1/users/1526232831 "," Web_url ":" https://www.yammer.com/XXXXX.com/users/1526232831 "," activated ":" 2014/10/0 False, "statistics": {"Following": 1, "Followers": 1, "Update": 0}, "Email": "yam5.dummy@XXXXX", "1: 16: 12: 03 +0000", "auto_activated" True "," is_group_admin ": true," group_member ": {" state ":" approved "}},
See" is_group_admin ": True,
Comments
Post a Comment