473,396 Members | 2,002 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Hierarchical Membership Implementation

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
Dec 27 '07 #1
2 1284

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/
"rwoodruf" wrote:
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
Dec 27 '07 #2
On Thu, 27 Dec 2007 07:06:01 -0800, rwoodruf
<rw******@discussions.microsoft.comwrote:
>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?
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
--
|\ _,,,---,,_ 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".
Dec 28 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: jayson_13 | last post by:
Hi, I want to retrieve the hierarchical structure which is store inside the database and then display it using treeview control. But now I got a design issue which I hope that you guys can help...
4
by: techsupport | last post by:
I have some experience with .NET Remoting, as well as ASP.NET 2.0, and have been wanting to remote a custom membership and profile provider. I want to take advantage of the new controls in ASP.NET...
4
by: Congero | last post by:
I'm trying to find a way to bind hierarchical data to a gridview control. I've been able to do this with some third party controls and was wondering if this functionality is available with the...
1
by: Jarod | last post by:
hey I need to implement membership on oracle please tell me where I can download any implementation of it ? I hope it exist ;) Jarod
5
by: Coder | last post by:
I am not sure if I should use the new membership and roles feature in ASP.NET 2.0. My user information is large, and does not fit in the default implementation tables. I don't know if it is worth...
1
by: mazdotnet | last post by:
Hi all, I just found out that ASP.NET membership does not have a method to lock accounts (only Unlock user) See http://forums.asp.net/p/825946/825946.aspx Question was 'I understand that...
1
by: =?Utf-8?B?WmhlbmcgQ2hlbg==?= | last post by:
I have an aspnetdb database sitting in different domain with the web server. To authenticate a user and populate membership provider, WCF is used. However, I have no idea how to pass the membership...
6
by: Jonathan Wood | last post by:
Although this will be a challenge at my level of ASP.NET knowledge, I'm thinking I should implement my own membership provider class. Looking over the methods I must implement, a number of...
2
by: gnewsgroup | last post by:
I am working on a membership web application, The logic is like this: 1. All logged-in users can visit Folder1, Folder2, Folder3, but only administrators can access the Admin folder. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.