HomeHomeUsing DotNetNuk...Using DotNetNuk...Administration ...Administration ...DNN Role Groups and Roles (which one should I use)?DNN Role Groups and Roles (which one should I use)?
Previous
 
Next
New Post
11/24/2008 3:35 PM
 

I am putting together a portal with the possibility of having sub portals.

When a user begins the registration process, I would like to allow them to choose the profile type which fits their needs the best. Each profile type, I would like to have the ability to allow them access to certain resources and others to remain invisible.

Can access be controlled by Role Groups or is it only controlled by Roles?

For example: Let's say I want all those who have talent to be put in the "talent group" this groups may include actors, dancers, singers, etc. If I make a change to the talent group settings, will those changes then be propogated to the roles in that group?

thanks

 
New Post
11/24/2008 9:36 PM
Accepted Answer 

"Role Groups" simply act as containers (and sometimes as list filters) for groups of individual roles.  Security settings are still administered at the role level, not the role-group level.

...So Why Have Role Groups?
An old "ROLES roadmap" included the following:
Role Groups - In large websites the number of Roles to manage can become unwieldy.  This enhancment would allow roles to be grouped for convenience in roles and permissions management.

Without role groups you'd have to adopt naming conventions to keep track of related roles.  In your example of "talent group", you might adopt "TG" as a prefix for your various talent roles:  TG_ACTORS, TG_DANCERS, etc.  By having the role group "TALENT" you don't have to worry about sticking to a naming convention for the individual roles within the "TALENT" group.......or do you?  Unfortunately (in DNN 4.x, at least), when you use the USERS->MANAGE ROLES interface to add roles to a user account, you don't see ROLE GROUP info (nor do you get a chance to filter available roles by selecting a role group).  Rather, you see all of the individual role names in one big list.  Ugh.

All Role Names Must Be Unique
Role groups don't provide unique namespaces for the roles they encompass.  Because of this, you cannot use the same role name twice (even under different role groups).  This greatly diminishes the usefulness of role groups.  Example:  You can't create role group "SALES" and role group "IT" and then create "MANAGER" roles under both "SALES" and "IT".  To do so you'll have to resort to naming conventions for your roles such as "SALES_MANAGER" and "IT_MANAGER".


Benefit:  Filter Permissions
Fortunately there are a couple of real benefits with the current featureset:  you can assign user permissions to pages and to modules using a "filter by role group" option to filter the list of roles to a particular role group (though you'll still have to click each role you wish to assign VIEW and/or EDIT permissions to).  By default the displayed role group is the "Global Group" -- you can also display "All Roles".  This filter can be a valuable feature if you have a lot of groups and have not employed a naming convention for roles.

Benefit:  Custom Uses
You can leverage the role groups feature in the logic of your own custom modules. 

Examples:

  • Email all users of a selected role group.
  • On 1/1/2009, disable accounts of users under the "2008" role group.
  • Administer online polls/voting/contests based on role group.

Perhaps we'll start seeing more and more modules that make good use of the "role group" feature.  So far I've not knowingly used a module that was "role group"-aware.



There may be additonal uses of the DNN 4.x Role Groups feature that I've overlooked.  If so, I'd love to hear about them!

 
New Post
11/24/2008 9:36 PM
 

Role Groups are just a way to group roles together in the administration side, there is no functionality for Role Groups as it relates to the users. Basically, groups are a way to "filter" roles into smaller lists.

edit: beat to the punch


Chris Hammond

Director of Training Programs, DotNetNuke Corp.
 
New Post
11/24/2008 9:46 PM
 

Chris Hammond wrote

edit: beat to the punch

It's ok -- I still have 2849 posts to go to match Chris' contributions to the DNN forums...

 
New Post
11/25/2008 3:31 AM
 

Hey Mamlin,  just wanted to say that this is probably the most complete and well thought out answer to a question that I've seen to an internet discussion post in years......and I read a lot of discussion forums.

Well done and please keep sharing your knowledge of DNN with us.

Best regards,

Rod

 
Previous
 
Next
HomeHomeUsing DotNetNuk...Using DotNetNuk...Administration ...Administration ...DNN Role Groups and Roles (which one should I use)?DNN Role Groups and Roles (which one should I use)?


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

Attend A Webinar
Free Demo Site
Download DotNetNuke Professional Edition Trial
Have Someone Contact Me

Like Us on Facebook Join our Network on LinkedIn Follow DNN Corporate on Twitter Follow DNN on Twitter

Advertisers

DotNetNuke Scoop!

Sponsors

DotNetNuke Corporation

DotNetNuke Corp. is the steward of the DotNetNuke open source project, the most widely adopted Web Content Management Platform for building web sites and web applications on Microsoft .NET. Organizations use DotNetNuke to quickly develop and deploy interactive and dynamic web sites, intranets, extranets and web applications. The DotNetNuke platform is available in a free Community and subscription-based Professional and Enterprise Editions with an Elite Support option. DotNetNuke Corp. also operates the DotNetNuke Store where users purchase third party apps for the platform.