ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Can users belong to multiple user groups?

August 03, 2007 3:06am

Subscribe [5]
  • #1 / Aug 03, 2007 3:06am

    ptflyer

    3 posts

    Hi,
    Can user’s belong to multiple user groups? I want to do a job posting site and it’s users can belong to multiple groups. For example, a job seeker and a job provider. User’s can belong to both groups simulatneously. There will be functions enabled based on the user groups. For example, in order to post a job opening, the user must first fill out the job provider profile.

  • #2 / Aug 03, 2007 3:20am

    Ingmar

    29245 posts

    No, they can’t.

  • #3 / Aug 03, 2007 3:34am

    ptflyer

    3 posts

    Thanks for the quick reply! Are there any workarounds for the scenario I described above?

  • #4 / Aug 03, 2007 3:52am

    Willem de Boer

    142 posts

    Not as far as i know. You can only make another group that have the permissions of both other groups.

  • #5 / Aug 03, 2007 4:33am

    ptflyer

    3 posts

    That would work for the permissions, but what if I wanted to store different fields about each user group. For example, if I had a site that has both buyers & sellers, like a simple auction site, and the users can be both buyers and/or sellers. There would be a different member profile page for buyers and sellers. Different types of info would be stored for buyers and sellers.

    Would it be possible implement supertype/subtype relationships in EE? The supertype would be the general user account and the subtypes would be buyer & seller. I know this probably isn’t supported out of the box, but would hacking at the main DB schema help? Is this method feasible?

  • #6 / Aug 03, 2007 12:06pm

    narration

    773 posts

    I’m hesitant to speak much on this, because the documentation doesn’t seem to make clear yet what the separations are between sites, but perhaps the Multi Site Manager add-on could be an approach to this problem?  Real-EE’ers will have to say.

    In principle, I think you want some clear separation of roles, when a person can be one or another in a system, and those roles have quite different views.

    If I understand it, MSM sites have a truly common user database among all the sites.  So that’s handy, given you can also add custom fields to the user table(s) that could be used from their appropriate roles.

    For the user with more than one role, it would matter then which apparent website they logged into, with their same identity.

    One important point among many is whether the MSM can support more than one concurrent login from a given browser: are cookies etc. kept separate?

    Again, Ellis folks will have to say whether it’s their intention that the MSM add-on should solve this kind of case.

    Kind regards, and interested too,
    Clive

  • #7 / Aug 03, 2007 1:33pm

    PXLated

    1800 posts

    You might want to check out this thread…Custom User Groups

  • #8 / Aug 05, 2007 12:28pm

    Robin Sowell

    13255 posts

    Hadn’t seen that one, PXLated.  Thanks for the ‘heads up’.  I’ll be needing something like that myself pretty soon and would prefer not to have to roll my own.

    The MSM shares custom member fields- so while you can do some tweaking because the member profile templates are separate (thus on my registration forms I’ve hard coded showing different fields on different MSM sites)- they really aren’t set up for totally different member custom fields.  You can handle login cookies seperately, though.  So different accounts on different MSM sites.  But still, even with MSM, you don’t quite achive assigning members to multiple groups in the full sense.  Depending on your needs and creativity, you can come pretty close.  (And I’m going to check out that module- might prove handy!)

  • #9 / Aug 05, 2007 10:20pm

    ptflyer

    3 posts

    Thanks to everyone for the help. It looks like EE currently isn’t designed for assigning users to multiple user groups. Will this feature be implemented anytime in the near future?

  • #10 / Aug 05, 2007 10:35pm

    PXLated

    1800 posts

    They never discuss release dates but it is a popular feature request.

  • #11 / Aug 06, 2007 3:59am

    Ingmar

    29245 posts

    One of the more difficult ones to fulfill, though, from what I hear. I wouldn’t expect it before version 2.0.

  • #12 / Aug 18, 2007 1:51pm

    Ryan M.

    1511 posts

    I just came across the need for this again today - a member in multiple groups. Seems like every other site I do needs this in some way. For now, I’ll spend the rest of my day thinking of some sort of workaround!

  • #13 / Aug 18, 2007 2:15pm

    BlackHelix

    226 posts

    I wrote a plugin that could tie custom member data to categories for weblogs… perhaps something could be done with that?  A member can have multiple custom member fields, and you can select weblog entries based on the category the entries are in.  It’s kind of what I’m doing to get around multiple member group issues… the custom member fields stand in for the groups, and the plugin allows those custom member groups to determine what category is used in a weblog entries tag.

    Yeah, this is a bit much for the presales forum, sorry.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases