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

HomeHomeUsing DNN Platf...Using DNN Platf...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 6: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/25/2008 12:36 AM
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!


esmamlin atxgeek.me
 
New Post
11/25/2008 12:36 AM
 

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
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
11/25/2008 12:46 AM
 

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...


esmamlin atxgeek.me
 
New Post
11/25/2008 6: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 DNN Platf...Using DNN Platf...Administration ...Administration ...DNN Role Groups and Roles (which one should I use)?DNN Role Groups and Roles (which one should I use)?


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