First of all, I want to say that I much much prefer using Group over OG. So keep up the good work.
Right now, I'm testing group for drupal 8 and I noticed something about the membership. When a user creates a group, he isn't automatically a member of this group.
In my usecase, I want a user with less rights than an administrator (roles in drupal core) be able to create groups and act as an administrator for that group. But when this user has created the group, I have to login as admin and manually join the user to the group.
Maybe, I didn't see it, but is there a way to make the creator automatically a member with admin rights of the group he created? Other than installing Rules and setting up a rule for this, I mean.
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | group-2692715-11.patch | 3.02 KB | kristiaanvandeneynde |
| #6 | group-owner_default_membership-2692715-1-8.patch | 1.06 KB | bramtenhove |
Comments
Comment #2
Pierre.Vriens commentedI'm not sure if this is a "bug". IMO it's rather a feature request, no? If so, please update the category accordingly
Comment #3
kristiaanvandeneyndeYup, this is an oversight :D Added to #2693167: [meta] D8 release roadmap
Comment #4
Karin Tempelaar commentedI thought that this feature is available in the D7-version, so it felt more like a bug than a feature request :) Thank you for adding it to the roadmap.
I'm not a programmer, just building and configuring sites. Is there any way I can help out towards a rc-release? Except testing new alpha and beta releases of course.
Comment #5
kristiaanvandeneyndeNot really, just try out every little feature in the D8 release and report anything that seems like bad UX, buggy behavior and the like.
Comment #6
bramtenhove commentedI just created a patch that on postSave of a new group adds a group membership for the owner.
Comment #7
zerolab commentedTested this locally.
Works nicely, thank you!
Comment #8
kristiaanvandeneyndePatch looks great, excellent usage of the API too! I'm impressed.
In the D7 version, we allowed site builders to configure which roles a group "owner" would get. Do you think you're up for adding that as well? If not, I'll do it but it may take some time before I get around to it.
It should be configurable on the group type. Perhaps something like a checkbox saying "Create a membership for the group creator" which when checked shows a list of checkboxes for role selection.
If you're up for the task, feel free to set this to "needs work" and assign it to yourself. If not, no worries. I'm happy with the work you've provided so far :)
Edit: Also, we should have a Group::addMember() like in D7.
Comment #9
bramtenhove commentedThanks Kristiaan!
That would indeed be a nice addition, I will try to spend some time this week to add your suggestions.
If I don't get to it, then it might also be useful to get this patch in as a MVP solution and add a new ticket for the full solution. How do you think about that?
Comment #10
bramtenhove commentedComment #11
kristiaanvandeneyndeFair enough, let's get the basic functionality in right now and go for the extras in a follow-up patch.
Please review the attached patch for the MVP to start working from.
Comment #12
kristiaanvandeneyndeAlso, I'm contemplating whether we want to have just a configuration option for "creator roles" or a wizard where a group creator has to fill out his member profile on step 2. The latter will assure that even group creators have complete member profiles, even though we would need to figure out what to do with:
I'm thinking creations through code will need to go the extra mile themselves, I'm just stuck on the admin creations. It would make sense to have them fill out a profile and transfer ownership as soon as there are more members. On the other hand, it would suck UX-wise to have to fill out a profile every time you create a group.
What if we make the "creator becomes a member" optional as well (see #8)? Then we can have memberless groups should someone have a use case for that and admins would not need to fill out step 2 when creating groups of that type.
Comment #13
bramtenhove commentedPatch from #11 works just fine.
Comment #15
Karin Tempelaar commentedCompliments for Bram and Kristiaan. It is wonderful to see this is already working on such short notice. The group creator is now automatically a member. Cool!
There is but one small suggestion I would propose before releasing this. After a group is created, you are redirected to the page with a list of all groups (/admin/groups). To me it makes more sense that you are being redirected to the 'homepage' of the group (/group/[group-ID]). Otherwise the creator of the group won't see the group he/she just created.
However, for my usecase it is necessary that the creator is not 'just a member' but an admin for the group. So I have thought about the solutions proposed by Kristiaan.
I'm not really into the 2nd option (fill out member profile after create group). Yes, it would be a lot of trouble to have to fill out the profile every time you create a group. Moreover, this option would require that group creators are aware of the consequences of not ticking the box for the right role. In my usecase, this would cause a lot of trouble. My intended group admins are not developpers, nor experienced community managers/website maintainers; they are facilitating collaboration and conversation and don't want to have a ton of technical stuff to do first. It would scare them off, most probably.
So, if groups can be created and managed by non-technical people, this module could also work in a broad range of community websites, such as interestgroups, discussion platforms and online collaboration.
Therefor, I would go with option 1. Also, I would think that the user creating a group should have group admin role. In the group type settings, you could define which role is considered group admin. IMO this should not be configurable by group admins at the creation of the group; for them it should be as easy as give a name and start a group. A group admin might manage membership (after the creation) and thus make others admin and transfer group management. Website admins or other roles with the right to administer group settings (on /admin/people/permissions) should be able to overwrite these settings.
I'm not sure I'm making myself clear, so I'll try it this way. I think there should be permissions related to groups on (at least) three levels:
I would like group managers (level 2) be able to create a group and start managing it right away without having to call on an admin of level 1 to get the group management permissions or having to think about checkboxes to get the right permissions. Of course, one user can have all three roles. But what if they don't.... I think this makes sense, not only for my use case but in many situations where people are collaborating online and sharing information without being a programmer themselves. Drupal with the group module could play a nice part in that, I believe.
Feel free to contact me, if you would like to know additional things. Or to tell me I make suggestions for things that are impossible :)
Also, I would love to contribute by completing the Dutch translation. Can anyone give me directions on that?
Comment #16
kristiaanvandeneynde@bram, see #2702743: Group creator: Improve the options regarding this membership if you still feel like contributing to this flow.
Comment #20
kristiaanvandeneyndeBad testbot! :)