How can I create a view listing all groups that a user belong to?

Created on 22 November 2016, about 8 years ago
Updated 2 April 2024, 8 months ago

I want to create a block view in the user page, listing all groups that user belong to.
So, I want to use the UID in the URL as contextual filter.

Also, I have two group types: public groups and private groups.

If the actual user is viewing his own profile, list all groups the user belongs
If is another user viewing the profile, list all public groups the user belongs

I tried to make a relationship in a View of Groups, but the only option is the Group Creator

Can anyone help me create other relationships for groups view?

💬 Support request
Status

Fixed

Version

1.0

Component

Code

Created by

🇧🇷Brazil victorcpereira

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • i'm looking for a way to do this with the new Group 3 module, anybody else have a solution?

  • 🇮🇳India naveenvalecha New Delhi

    Following, I'm seeking for the same in how to achieve it with Group 3

  • 🇬🇧United Kingdom 8bitplateau

    Hi, here is a working views block for group 3 that can be placed on a user page.
    It shows group relationships, and does some contextual filtering from there.
    The end result is a list of links to groups the user belongs to.
    It is wise to add a further filter on the type of relationship with the specific group type but that will make this export case-specific.

Production build 0.71.5 2024