Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0IS there any limit on the No of Roles a user can Have ? DNN 4.5.2IS there any limit on the No of Roles a user can Have ? DNN 4.5.2
Previous
 
Next
New Post
12/15/2008 3:44 AM
 

Don,

IMHO for your scenario, where it can be assumed, that there is a limited number of persons, who shall be in a group, it would be preferable to have a buddies table (ID, owner, buddy, bRole) with bRolee = (Partner, Family, Friend, Business Associate, ...) where grantees are stored. Your application need to provide an option to add users to those predefined roles and evaluation can either be done in your app directly against this table or e.g. page permissions are copies as user (not role!) permissions for each role member. Especially for those fairly populated associations, bitfields are not efficient in regard of storage.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
12/15/2008 9:27 AM
 

 Hi Sebastian,

Thanks for taking the time to help me think through this and for documenting the approach you would recommend.  If I were to take this approach, would I be able to allow users to add a DNN gallery control into their page and let only Business Associates see the images in that gallery?  I probably misunderstood your approach, but it seems on initial read that any member of the Business Associate role would have access to the images in the gallery, not just the members of my personal Business Associates role.  My concern is that I have an approach I can use that will allow users to manage access to their resources based on groups they create, an approach that permits me to use the built in DNN role based security which the DNN and third party modules use for access control.

Thanks,

Don



Don Worthley
Software Architect
Element Eleven

 
New Post
12/15/2008 2:46 PM
 

Don,

in my approach, there is NO DotNetNuke role called "Business associates". Instead, roles are personalized by author ("my buddies") and access to controls is verified against both users records, the owner and the visitor to get the correct permission. Only, if you need to use DotNetNuke security (e.g. for tab access), you are replacing the personalized roles by individual user permission.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
12/15/2008 5:33 PM
 

 Hi Sebastian,

So, if I used this approach, I wouldn't be able to add a gallery to a user profile page and make it visible only to a personal buddy group using the built in DNN security infrastructure.  If this is true, wouldn't this eliminate the use of DNN and third party modules?  It seems to me that I would have to have modules that understood the custom permission infrastructure.  

Thanks for your patience and your thoughts,

Don



Don Worthley
Software Architect
Element Eleven

 
New Post
12/17/2008 10:51 PM
 

Okay...  This seems like such an obvious thing to me, but nobody else has mentioned it so I'm probably missing something obvious...

Why not store role information in the session?  If you're talking about 4k, even if you have 10,000 users in a 20 minute period of time, you're only talking about 40megs of ram on the server for role information...  but most users wouldn't be anywhere near 4k of roles, and this is only relevant for users who have logged in! 

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0IS there any limit on the No of Roles a user can Have ? DNN 4.5.2IS there any limit on the No of Roles a user can Have ? DNN 4.5.2


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out