Create view that shows only those users that are in the same group as logged in person

Created on 30 September 2022, about 2 years ago
Updated 25 April 2024, 8 months ago

Problem/Motivation

I am trying to create a view of users that when viewed on the front end will only show those users that are part of the same civicrm group that the logged in user looking at this page is a part of.
I have the view all set up but am missing the contexual filter that will do the magic.
Currently the view is set up as copy of PEOPLE view.
Relationship set the CiviCRM Contact ->
Relationship set to Contact ID -> Relate each CiviCRM Group Contact with a contact_id set to the civicrm contact.
Relationship set to CiviCRM Group.

This show everyone and in fields I add in the group title and I see what groups they belong to.

I just need to show this to the logged in user so they only see their own group members.

Can that be done through contextual filters?

I appreciate your help.

πŸ’¬ Support request
Status

Closed: works as designed

Version

3.3

Component

Documentation

Created by

πŸ‡¨πŸ‡¦Canada avo webworks Ottawa, Ontario, Canada

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.

Production build 0.71.5 2024