I have seen the config settings for controlling who can see *posts* in a group. But how do I make the list of members and the recent members only viewable by group members?

there is the access setting in the og_members_block view, but that would let me select certain roles that can view the view. which is kind of cool, because if I limit the view to just group members, I might want to also let certain administrators/staff still see the lists.. but I'd like the group members to be able to see the list of members still.

Comments

YesCT’s picture

YesCT’s picture

Maybe I dont understand them, but the people discussing this here:
http://drupal.org/node/362540

seem to be confused...

I can have an anon user if they type in the url of the view directly like:
http://example/og/users/54/list

see the list of members of that group and I dont want them to.
And, it's not that I dont want just anon users to see it, I'd like only members of group 54 to see the list.

Thanks.

inkprov’s picture

Same question: How do you make the list of group members visible *only* to the members of that group?
This seems like a fundamental capability of OG yet I can't seem to find how to set it.
Any help would be appreciated.

clearwaternazarene’s picture

Version: 6.x-2.x-dev » 7.x-2.x-dev

We are about to cancel the entire idea of using groups at our new sites because it seems impossible to find basic instructions on how to list or not list members.
Why is something so fundamental totally hidden from the documentation?
I have been searching for days on the web trying to find how to limit the list of members to no avail.
At least let us know if this is possible.
I found one answer here but can not understand how the answer works. Any help would be greatly appreciated.
http://drupal.stackexchange.com/questions/20116/how-to-make-a-og-private...

ontological’s picture

clearwaternazarene,

I usually try this kind of stuff on a copy of the site until I get it right. It is sometimes hard to locate where in the admin links you should go. I cannot try it out for you because I'm not using views, but I think this is what the posting you link to suggests that you do:

1. On the modules page you check the "Organic Groups Access Control" item in the Organic Groups section, to turn that on and then click Save at the bottom of the page.

2. Navigate to the Admin / Configuration menu item and select Organic Groups. The second item is "Organic groups field settings". Go to that screen. When you created your groups you did that by creating a group content type. There are two drop downs on this display. On the top drop down "Bundles", select under the nodes item the content type that holds your groups. On the second drop down "Fields", select under the Group item "Group Visibility" and then click the Add button at the bottom of the page. You can click on items in the table under the drop downs to see what you have done and to delete an item if you made a mistake. It might not be obvious that those are links to more detail.

3. Then go to the Admin / Structure section and edit your content type. On the manage fields screen you should now see a Group Visibility item. On the right click on edit, scroll down and you can adjust the defaults.

4. On the edit content screen, edit your groups and select the option for visible only to group members.

If I don't quite have it right hopefully I've given enough clues that you can make progress or someone else can jump in and provide a correction.

Good luck!

amitaibu’s picture

Version: 7.x-2.x-dev » 7.x-1.x-dev
clearwaternazarene’s picture

Ontological
Thank you so much for the quick and clear reply - very much appreciated!
Your instructions worked well to allow us to set a group to private or public.

I have one more question that will get us all set for using groups.

Is there a way to make the list of members of a public group only visible to people who are members of the group? In other words people can see content for a group but not the member unless they are approved members of the group?

Thanks again!
CN

ontological’s picture

Clearwaternazarene,

That isn't something that I've had to do before. There are lots of ways to accomplish things and what comes to my mind might not be the best way.

Are you trying to restrict access to the view that lists group members? If so and you have someone with a little PHP knowledge on your team, disable the view and create a simple module that checks group membership and outputs the member list as appropriate.

clearwaternazarene’s picture

Thanks again for your help. We might have to give up on that capability.

Again seems like a basic capability for groups that is hidden. Many people are asking about this capability in other Drupal post but none of the post seem to have answers on how to limit a list of members to members only.

Energyblazar’s picture

Energyblazar’s picture

Energyblazar’s picture

sorry had posted wrong comments...in the wrong post.....so erased them...

Also i found when we go in Views Under Block Settings > Access > there OG Persmissions ....try it out ....and hope it works out for you guys... :)

liquidcms’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev

yes, seems to obviously be missing the most useful option of "is member of": http://screencast.com/t/AQAnDrH1mxEr

liquidcms’s picture

Category: support » bug

and since it is obviously missing; let's change this to a bug.

liquidcms’s picture

still a bug as it should be in the list; but using a PHP access with this worked:

return og_is_member('node', arg(1));

amitaibu’s picture

Category: bug » feature

If you are using Panels you already have this access plugin.
For view, if it doesn't exist, then it's a feature.

liquidcms’s picture

yes, Views.