Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Carlos 338 posts 472 karma points
    Jan 04, 2012 @ 00:31
    Carlos
    0

    Have a User belong to a member group

    Is there a way to have a user belong to a member group?  So the user can use their credentials to get into private areas of the site that are designated for certain member groups?

     

    Thanks in advance.

  • Rodion Novoselov 694 posts 859 karma points
    Jan 04, 2012 @ 01:03
    Rodion Novoselov
    0

    Hi. Afaik, umbraco uses custom mechanism of user's authentication and authorisation completely different from usual one of asp.net that members use. Probably it's possible to create some custom authentication module to perform the task you're interested in but I'm not sure about it. BTW, in what scenario do you want to do it? Perhaps it could be simpler just to create a member with the same credentials (login/password) as a user has?

  • Tim 1193 posts 2675 karma points MVP 5x c-trib
    Jan 04, 2012 @ 11:59
    Tim
    0

    Hi Carlos,

    I'm not sure you can do this out of the box, as the user and membership sections use different providers and code. You could write your own membership provider that could check admin users as well, but there's no built in way of adding a CMS user to an member group, you'd have to code up a load of extra controls for the back office to make that work (I can imagine it being quite a bit of work to do and test properly).

    I think @Rodion's idea is probably the simplest, just to create a member with the same login details as the CMS user. If you wanted to make it so that they didn't have to login twice, you could add some code to your login page that checks for a logged in CMS user, and if it finds one, it looks for a member with the same username and then logs that user in automatically?

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies