DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Creating roles for Users

 10 Replies
 2 Subscribed to this topic
 40 Subscribed to this forum
Sort:
Page 1 of 212 > >>
Author
Messages
New Around Here
Posts: 19
New Around Here

New guy on the block, I found where i can add roles but where do i go to allow new users to be placed in that role during registration? Example would be like whats your profession Artist, Teacher, Bus Driver. Artist would get different access to areas of the website then the Bus Driver and vise versa.

Veteran Member
Posts: 1246
Veteran Member
MVP
MVP
You're an MVP!
For that, you'll need a registration module that has it as a feature.

My recommendation would be Action Forms or Live Forms. I don't recall if there is an open source module that has that function, but I'm sure that we'll soon have other suggestions here!
New Around Here
Posts: 5
New Around Here

The way I do it for my English language testing site is as follows (without any third-party modules):
- as you mentioned you have all required roles in place (MANAGE --> Roles -- Drivers, Artists, etc.)
- go to SETTINGS --> Site Settings -- Site Behavior --> USER PROFILES --> USER PROFILE FIELDS --> Add Field (in your case "Profession")
- make it DATA TYPE = List; DEFAULT VISIBILITY = All Users; Required = checked; Visible = checked; click "Next;
- next you'll see the table with the roles. You can modify it as well; click "Next";
- fill the text boxes per your requirement and click "Save"
- you'll be back on the USER PROFILES tab were you can change the order of the user profile fields to your liking by clicking the stacked short lines on the extreme right of the fields and dragging them around;

From then on the field of Proffession should be visible on the registration page of your website.

Should you have any followup questions do not hesitate to come back here.

New Around Here
Posts: 19
New Around Here
Thank you Greg that did work but what would i put in the values to have the person be assigned to that role. I did find you can have RSVP codes for assigning roles and tried entering that into the values with no luck. I also will be getting action forms as i will need it for other sections of my site.
New Around Here
Posts: 5
New Around Here

1. A person during registration should choose the role.
2. RSVP codes have always been capricious for me and they required quite a lot explaining submitted to the users beforehand.

New Around Here
Posts: 19
New Around Here
i still do not understand what i need to put in the value section under List Entries. There is Text which would be the name then value which is required.
New Around Here
Posts: 5
New Around Here

Why don't you give it a try and experiment with it? For one, I had to cut through the bush without anyone helping. You might also want to search for docs which in case of DNN are quite hard to find.

1. Value in your case will be the sequence number for the professions that you want ordered in the dropdown list, e.g. Painters - Value = 1; Drivers - Value = 2, etc.
2. Text in your case will obviously be a profession.

Check a screenshot of my settings below:

In my case the text names (ASG ..., Petit ..., etc.) are companies names in Polish plus some extra info for persons wanting to register.
In your case they would be the professions.

Sorry for late answer but our time zones differ. :)

New Around Here
Posts: 19
New Around Here

Everything is looking exactly how i want it the only issue now is that when a new user signs up it doesn't automatically put them in the role they picked does put them in registered users due to automatic being on. Thanks for helping get me this far!  

New Around Here
Posts: 5
New Around Here

There's an option in dnn to assign users automatically upon registration but only to a chosen role. That's what I understood from your initial post.
It could be activated in MANAGE --> Roles --> Click Edit pencil next to a role name --> Auto Assignment at bottom right.

I guess it's not what your after.
 Joe is right then - grab  a registration module.

Or as Sebestian explains in https://www.dnnsoftware.c...nd-assign-user-roles

you would need to create a trigger in your database or create a job for DNN scheduler.

Growing Member
Posts: 80
Growing Member

Justin, I recommend Action Forms. You can assign roles automatically or your new user could pick roles from a list of roles that you create. Plus the module is very useful to have on your site.

Page 1 of 212 > >>

These Forums are for the discussion of the open source CMS DNN platform and ecosystem.

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

  1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
  2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
  3. 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.
  4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  5. No Flaming or Trolling.
  6. No Profanity, Racism, or Prejudice.
  7. Site Moderators have the final word on approving / removing a thread or post or comment.
  8. English language posting only, please.

Would you like to help us?

Awesome! Simply post in the forums using the link below and we'll get you started.

Get Involved