Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / December 2007

Tip: Looking for answers? Try searching our database.

Hierarchical Membership Implementation

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
rwoodruf - 27 Dec 2007 15:06 GMT
Hello,

I am attempting to utilize the membership provider to do the following:

Boss > Manager > Employee

which means that Boss has all the rights of the Manager, the Manager has all
the rights of the Employee (which means the Boss has all the rights of the
Employee) and both the Boss and Manager have individual rights in addition to
the same rights of their underlings.

Is this something that anyone has had success doing with the default
membership provider or will I have to roll my own?

Thanks in advance for all your help.

-- Rodney
Adlai Maschiach - 27 Dec 2007 15:31 GMT
Hi

I haven't done this , But I know you can extend existing
"ROLES" table and add an SQL Trigger which on each insert or update
would look at the updated / inserted row and make the required changes

that's how I would do it
---------


Adlai Maschiach
http://blogs.microsoft.co.il/blogs/adlaim/

> Hello,
>
[quoted text clipped - 13 lines]
>
> -- Rodney
Mark Stevens - 28 Dec 2007 08:42 GMT
>Hello,
>
[quoted text clipped - 9 lines]
>Is this something that anyone has had success doing with the default
>membership provider or will I have to roll my own?

I do not have a strict hierarchy as such but we do have a similar
situation (multiple roles needing access to the same pages but not
others).  I simply use

<allow roles="role1, role2, role3">

in the web config for the pages in question.

Hope this helps,
Mark
Signature

      |\      _,,,---,,_          A picture used to be worth a
ZZZzzz /,`.-'`'    -.  ;-;;,       thousand words - then along
     |,4-  ) )-,_. ,\ (  `'-'     came television!
    '---''(_/--'  `-'\_)          

Mark Stevens  (mark at thepcsite fullstop co fullstop uk)

This message is provided "as is".


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.