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 ...Having Organizations as customers with individual user logins.Having Organizations as customers with individual user logins.
Previous
 
Next
New Post
7/18/2007 12:38 PM
 

I have customers that are companies, not individuals. How should I tie individual users to their respective organizations? I was thinking of adding a RoleGroup called customers, and then a role for each corporate customer and then add the users to that role. Or is it best to try and do this through the user profile?

The customer (aka organization) defines what the user can see and is a key value in many reports, so it has to be available in some way to the modules..

Links / docs / responses are all very welcome..

 
New Post
7/18/2007 9:17 PM
 

My current thought is to use the Role per company approach, where the role name is actually the customer name, and then use a custom table that holds the customer specific data, and then a custom form to manage the two..

i.e. a table "customer" with a foreign key to the role table (on role id). Then the "customer management" form would have a dropdown that would show the role name as the customer (from the role table) and the rest of the info would be in this customer table.

Any thoughts?

 

 

 
New Post
7/19/2007 10:39 AM
 

If you go with a role per customer, you can actually use DNN core methods to find the users in the roles without building any separate lookup tables.

If you need I can show you the code for that type of setup, I have done that type of user lookup in my Course Gradebook module..


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
7/19/2007 10:43 AM
 

That'd be fantastic.. thanks!

(I'll take a look through your site today)

 
New Post
7/19/2007 2:43 PM
 

To get a list of the users in the role you can use the following, I am showing direclty binding to a drop down list, but you can do as you desire with the collection.

DotNetNuke.Security.Roles.RoleController oRoleController = new DotNetNuke.Security.Roles.RoleController();
cboStudentSelection.DataSource = oRoleController.GetUserRolesByRoleName(PortalId, oSettings.StudentRole);
cboStudentSelection.DataValueField = "UserId";
cboStudentSelection.DataTextField = "FullName";
cboStudentSelection.DataBind();

That is a C# example, but I am sure if you are a VB user that it will make sense to you as well.

 


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Having Organizations as customers with individual user logins.Having Organizations as customers with individual user logins.


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