Groups only mapping to one role when a user belongs to many
| Project: | Organic Groups - Multiple Mandatory Groups by Role |
| Version: | 5.x-1.0 |
| Component: | Miscellaneous |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
I have roles which we are pulling from Active Directory using the LDAP Integration module. We filter so certain security groups or distribution lists that a user belongs to are mapped to Drupal roles. When a user logs into the system with their AD credentials, they automatically are assigned the Drupal role that was created based on AD group names. So, if an artist logs in, they are automatically made a member of the Drupal 'artist' role. If a producer logs in, they are automatically made a member of the 'producer' role. Both artists and producers belong to the 'all users' role so each one also belongs to the 'all users' Drupal role. I am using the multiple mandatory groups by role to also create groups by these role names. So, with organic groups I create a groups called 'Artists', 'Producer', and 'All Users' (there are many more groups and these are just samples). With the Multiple Mandatory Groups By Role admin page, I then assign go to the 'Assign Groups' tab for the Role 'artist' and select 'Artist' and I go on and do the same for every other group role mapping. When a new artist logs in to Drupal, they are assigned their proper roles, both 'artist' and 'all users', however, they are only subscribed to the 'all users' group. If for the 'artists' group I select both 'Artists' and 'All Users' then click 'Update Subscriptions Retroactively' anyone who already belongs to a group is dropped from that group and added to the one they are not currently a member of. I have to manually assign them to 'artists' as well. Is there a way around this, or does one have to manually set each user with multiple groups?

#1
Look for a dev release on the project page soon. I ran into this issue myself and it should be fixed. It was a bug.
#2
Upgraded but am still having the issue, though it is not as terribly bad since I discovered the "admin/og/og_multiple_mandatory_groups_by_role/admin" page. The Administer > Organic Groups > Multiple mandatory groups by role link takes one to "admin/og/og_multiple_mandatory_groups_by_role" which is quite a different page. Now that I see I can expand each group and select a roles that apply for all groups, rather than one at a time (which simply unsubscribed those who belong to that specific group but also another one that was not common to all multi group subscribers) I can select each group, assign the one single role for that group then check the 'update subscriptions retroactively' box and have all groups applied correctly.
But, I am still having the problem that if a new user logs in, they are automatically assigned to specific roles, one being common amongst all users so it is attached to the 'All users' role (I even tried it with the 'require one additional group' selection checked), but they are only being assigned to the one group checked off in the 'All users' role. So, to sum up, in the 'All users' role, I have one group selected and every user is a member of that group. All other roles have one group selected that has limited selective users. The users are mapped to their roles based on the account that is created for them when they log in.
Thanks
#3
Sorry, it just registered that you wrote to "look for the dev release soon... I just quickly scanned the response and focused in on 'bug' and 'dev release' so when and grabbed it... but it obviously has not been posted yet.
Thanks
#4
Uh, there is now a dev dated the 16th of this month. Is that the one you tried? Or did you try an earlier one?
#5
Ok, yes, the 16th is the dev release I am using... and still have same issue.
Thanks
#6
This is very strange. In my installations, I have a 'Help' group assigned to "All users" and a bunch of groups assigned to "Homeowners". I do not duplicate the 'Help' group in the "Homeowners" role. New users select between "Homeowner" and "Non-resident". Those selecting "Homeowner" are in fact getting all groups for both their role and the "All users" role. This was not happening before I fixed it.
So, try this: go to this page admin/og/og_multiple_mandatory_groups_by_role/admin and check the retroactive box and then save. Let me know if this works.You may want to do it when the site isn't so busy, or take it off line, depending on the number of users and groups you have.
Additionally, verify for me that you do see the "Unsubscribe unchecked boxes" boxes. This was included with the fix.
#7