bannerColor WARNING_YELLOW templateName stackForums

How to get a list of group names that a member is of

9 posts / 0 new
Last post
Joined: 2011-11-10
Jan 5, 2012
How to get a list of group names that a member is of

hi, guys

I have a trouble in getting a list of group names that another member is of.
Of course, I can get the list that I am a member is of.
But not about another member.

By Linkedin API, is there a any way to get the list regarding another member.
Please help me get it.

Best

Joined: 2011-11-10
Jan 5, 2012

PS: as the base info, I have another member's public profile url.
By Linkedin API including Profile, Group, and so on, is it possible to get a list of group names that another member is of ?

- harry

Kirsten Hunter's picture
Joined: 2011-06-30
Jan 5, 2012

This is not possible. You can only get information on groups for the currently logged-in user.

SivaKumar AVKD's picture
Joined: 2011-01-20
Feb 8, 2012

what is the order in which the API gives us the list of groups ? Is it the order in which the user has set the groups in LinkedIn ?? or is it based on the joined date ? or is it random ?

Steven Citron-Pousty's picture
Joined: 2011-08-02
Feb 9, 2012

Hey SivaKumar:
There is no guaranteed sort order so you should consider it to be random.
Thanks
Steve

SivaKumar AVKD's picture
Joined: 2011-01-20
Feb 9, 2012

Thanks for the reply Steve. Can you please take time to answer the below followup question ?

From your documentation, to get the 15 groups, here is the API call:
https://api.linkedin.com/v1/people/~/group-memberships:(group:(id,name,site-group-url,small-logo-url,relation-to-viewer:(membership-state)),allow-messages-from-members)?count=15&start=0

Now, lets say that a member is part of 35 groups. Are we sure that for each API call, the same set of groups will be returned ? or is there a chance that a mutually exclusive set can be returned ?

Is there a chance to modify the API to return the groups, in the same order as in the LinkedIn UI ??

Thanks, Siva Kumar

Jeremy Johnstone's picture
Joined: 2011-04-17
Feb 10, 2012

Hi Siva,

No, there is no guarantee that the set will be consistent like that. I can pass along your request to the product manager, but I wouldn't expect this to happen in the near future so please plan accordingly.

-Jeremy

nishant jain's picture
Joined: 2011-08-29
Oct 2, 2012

please show the code for show the list of groups in php please.

Kamyar Mohager's picture
LinkedIn Employee
Joined: 2012-04-04
Oct 3, 2012

Nishant,

The call to retrieve your group membership would be:

GET http://api.linkedin.com/v1/people/~/group-memberships

Just use the same PHP syntax you use for any other GET API call.

Kamyar