470,641 Members | 1,472 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,641 developers. It's quick & easy.

Membership question - Using a 'sub-user'

I am using the built in ASP.NET membership provider.

All files in the 'members' subfolder is only accessible by those in role
'member'.

I want a user to be able to create 'sub-user' accounts. The sub-user would
be able to do things 'on behalf' of the primary user.

My relational db is setup to cascade delete all related data records
whenever a user is deleted. But, for sub-users, I don't want to enforce
this (because sub-users (ie employees) can come and go.)

SCENARIO
- Employer user 'Bob' can create projects, using the webform in the
'members' subfolder
- Employer creates 3 sub-users (temporary employees) - They can create
projects on behalf of 'Bob' (using the same webform in the 'members'
subfolder)
- Employer can delete sub-user #2 if he wants to, but the proejcts do not
get deleted

QUESTION
Is there a way to create a seperate table altogether for these sub-user
logins? Then sign them in with a 'member' permissions? Any suggestions on
how to implement an idea like this?

Hope that makes sense.

Thanks.
Nov 14 '08 #1
1 1634

"Bobby Edward" <bo***@nobody.comwrote in message
news:Ol**************@TK2MSFTNGP04.phx.gbl...
>
QUESTION
Is there a way to create a seperate table altogether for these sub-user
logins? Then sign them in with a 'member' permissions? Any suggestions
on how to implement an idea like this?
Your best bet is a custom membership provider:
http://www.devx.com/asp/Article/29256
--
Gregory A. Beamer
MVP: MCP: +I, SE, SD, DBA

Blog:
http://feeds.feedburner.com/GregoryBeamer

********************************************
| Think Outside the Box! |
********************************************

Nov 15 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Vishal Gupta | last post: by
3 posts views Thread by jan82 | last post: by
4 posts views Thread by Scatir | last post: by
4 posts views Thread by thomas | last post: by
reply views Thread by PinkBishop | last post: by
2 posts views Thread by Brandon Holliday | last post: by
1 post views Thread by =?Utf-8?B?ZVByaW50?= | last post: by
1 post views Thread by =?Utf-8?B?ZVByaW50?= | last post: by
1 post views Thread by Korara | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.