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

Created on 30 September 2022, over 1 year ago
Updated 25 April 2024, about 2 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.69.0 2024