Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Restricting user creation to admin user sub-groups

Vote:
0

Is it possible to restrict user creation to admin user sub-groups in EPiServer 5 CMS?

Richard.

#37037
Feb 17, 2010 21:52
Vote:
0

A "hacky" solution could be with location path, like this in web.config:

  <location path="epiui/admin/EditUser.aspx"> 

    <system.web> 

        <authorization> 

             <allow roles="WebAdmins, Administrators" /> 

             <deny users="*" /> 

        </authorization> 

     </system.web> 

  </location>

<location path="epiui/admin">
<system.web>
<authorization>
<allow roles="WebAdmins, Administrators" />
<deny users="*" />
</authorization>
</system.web>
</location>

Or you could inherit from the MembershipProvider, override CreateUser() and add some checks there.

(edited because the code editor messed up a little)

#37038
Edited, Feb 17, 2010 22:08
Vote:
0

Thanks Magnus, those look pretty good solutions. :-)

But, just to be clear in my own mind, there is no standard functionality in CMS 5 to do this?

#37040
Feb 17, 2010 23:50
Vote:
0

No problem.

I don't think there is any functionality like that in EPiServer. But there are lots of support for handling authorization, user rights etc. in ASP.Net anyway... I think EPiServer wants to leave as much as possible to the standard framework, which I wholeheartedly approve. :)

#37047
Feb 18, 2010 10:48
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.