Organic Groups Memberships

Written Steps

In this video we will explore the way Organic Groups handles group memberships.

(Before we begin, I’ll create a new user named Chelsea.)

Requesting Group Membership

Let's have Chelsea join Group #2

  • Login as Chelsea
  • Click on the menu item for Group #2
  • Under Group Membership, click on Request group membership

At this point, Chelsea could enter an additional message for the group administrator explaining why she would like to be in the group. However, this isn't being used right now, so, I'm just going to leave it blank and click "join".

  • (Join)

Now, you'll notice that the "request membership" link has changed to "unsubscribe from group." This shows that her request has been sent.

Administering Memberships

While logged in as the administrator, I’ll go to the people section of Group #2.

  • Click on the "Group #2" tab
  • Click the "Group" tab
  • Click on "People"

Here we see that my membership is active and that Chelsea's membership is "Pending."
NOTE: If she were to change her mind before a group manager could approve her membership, she could click "unsubscribe from group" and her name would be removed from the member's list.

To change the status of a user's membership, select the box next to their name (you can also select multiple people) choose one of the update options, and click update.
There are three update options:

  1. Approve membership of the selected users (This will do what it says. The selected users will become members of the group)
  2. Deny membership from the selected users (This will temporarily deny membership to the user, and they must re-apply if they would like to be reconsidered for membership. This will also remove a user from the group.)
  3. Block membership from the selected users (This will permanently deny membership to the user, and they cannot re-apply)

This is also where we will assign members to roles. Group roles are covered in the video “Customize Organic Groups Global Roles” as well as the video “Group Specific Roles”.
Let's look at each of these update options in turn.

Denying Memberships

First we will deny Chelsea's membership

  • Select Chelsea
  • Select Deny membership from the selected users
  • (Update)

If we flip over to Safari and refresh, we see that under Group Membership, it says "Request group membership" again.

Blocking Memberships

Let's have Chelsea request group membership again.

  • Request group membership
  • (Join)

Now, back in Firefox, let's block membership from Chelsea

  • Select Chelsea
  • Select Block membership from the selected users
  • (Update)

Now when we go back to Safari and refresh, we see that she no longer has the “Request group membership” link, or the “Unsubscribe from group” link.
(In order to allow her to request membership again, we need to use "deny membership" to remove her from the list)

Approving Memberships

Let's have Chelsea request group membership one more time

  • Request group membership
  • (Join)

Now we will flip back to firefox and approve Chelsea's membership

  • Select Chelsea
  • Select Approve membership of the selected users
  • (Update)

Now that Chelsea's membership is active we can flip back to Safari and refresh. And we see that under Group Membership, it now says "Unsubscribe from group". She can also see the post "Private Article #2" because she is now a member.

Comments

Hello.
At 32nd second of Part 5: Organic Groups Memberships you are talk about textfield Request message. Tell me plese where admin can to see this text and what need for this. Sorry fo my english :) Thanks

Brian's picture

As I said in the video and in the text, this isn't used right now. According to Amitai, it will be implemented once Views Bulk Operations has better integration.

At this point, Chelsea could enter an additional message for the group administrator explaining why she would like to be in the group. However, this isn't being used right now, so, I'm just going to leave it blank and click "join".

I'm having a major problem. If a user is a member of MORE than one group, they can't unsubscribe from any of them (The link appears and seems to function without errors, but upon returning to the panel for that group it says they're still a member). If they're a member of only one group they can unsubscribe successfully. Any idea what the problem might be?

Brian's picture

I haven't come across that. If I were you, I'd report that to the OG issue queue. That way, if it's a bug that was introduced with a module update, and others will run into it, it can be resolved quickly.

http://drupal.org/node/1203466

I think this is probably what's happening. Earlier I went in and set the groups audience to unlimited (http://drupal.org/node/1203466#comment-4907924) which might be why it's working now. I'll clear out my groups and give it another shot and see if it happens again.

Yep, it was the groups audience setting. Changed to unlimited seems to have fixed the problem.

Brian's picture

Thanks for looking that up! Much appreciated!

Can admin of the group #2 manually put user Chelsea into group #2?(Without her membership request). Sorry for my english.

Brian's picture

The group admin can manually add any site user to their group. In Part 8 there is a set of permissions that allows this. Any user with both "Administer Groups" (#2 in the list) and "Add User" (#7 in the list) will be able to add any site user to the group.

Note: Whoever created the group will automatically have ALL permissions. So if you have users creating groups, they will be able to add ANYONE they want, to their group. To prevent this watch Part 13 where I show you the check box that controls this setting.

Happy Drupaling! :)

Hi Brian. Thanks for these great videos. Very helpful. I followed part 3 precisely in creating the layout for a group's page. So I should see the "Request Group Membership" link under the Group Membership panel, but it doesn't show. Do you have any idea why that link would not be displayed?

I forgot to mention that the group description only shows up when an administrator views the group's page. If a "default" user who is a member of the group accesses the page, only the title is shown. Maybe these issues are related.

Sorry for cluttering your comments section. I found that both of the issues I described above were related to permissions (or lack thereof). I went to Organic Groups -> Organic Groups global permissions and then checked "View Group Field" for authenticated user. That allowed the subscribe link to appear properly. Then I checked "View Body Field" for authenticated user and that allowed a group member to see the body of the Group's page. There are other view permissions that I will check as well (polls, images, etc). I'm not sure why these weren't enabled by default.

I'm struggling with users not being able to see private groups so that they can request a subscription. I've followed your videos (very helpful - thanks!). I have a Groups List page in my Main Menu - but because the two groups I've created are private, nothing shows in the list. How can a user request a subscription to a private group? I enabled the OG field access module and gave permission to Non-members to View Group field, but my Group list is still empty for users other than Admin. I've Googled and searched and can't find the answer...

Currently, on my website the "Join Link" automatically changes to "Leave Group" when a member has joined the group. I want to remove this ability and not show the "Leave Group" Link. How can I do achieve this functionality?

Thanks!!

Brian's picture

I haven't come across a case where I wanted to do that. I'm not even sure it's possible... As far as I know the join/leave links are closely tied together, and if you have one, you have the other.

Search form

Add comment

Comments

  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
By submitting this form, you accept the Mollom privacy policy.