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.0Delegated user creation and support role in DNNDelegated user creation and support role in DNN
Previous
 
Next
New Post
11/26/2007 10:50 PM
 

Hi,

 I have two specific requirements for an application that I am building using DNN.

1) The Site Administrator creates an Account administrator user (a customer) and the account administrator creates and manages additional users for that account

2) I need to provide the functionality of a customer support role who can perform actions on behalf of an actual user. The audit trails need to reflect the customer support user as the person who carried out the task.

 I will appreciate if anyone could guide me to the right resources and/or provide any direction on how to proceed on these requirements.

 

 
New Post
11/26/2007 11:44 PM
 

#1

I would do this by creating a new child site for each customer and then just setting up the user as the adminstrator for the site (which would be able to add users for the site).  If you do not want to do that then the only way I can think of doing this is for you to write your own module used to maintain users that has the additional functionality of limiting what users can be seen by different cusotmers.  You would probably need to use a custom profile field to indicate which customer the user if for and automatically populate that when the user is added based on who it is being added by.

 

#2

You can create custom permissions that the module(s) you create an use.  To do this add as many custom permissions as your module(s) need to the permissions table.

PermissionCode: Module_{ModuleName)

ModuleDefID: ModuleID or I think you can enter -1 to make this so all your modules can use these permissions.  I have not tried this though.  If setting this to -1 does not work then you would have to create the customer permission for each module that required it.

PermissionKey: The unique key used to lookup the permission.

PermissionName: What shows on the permision grid header for this customer permission.

You can then use the following code to check the permissions in your module for the user who is logged in.

Public Class {MyModuleName}Permissions
        Inherits Entities.Modules.PortalModuleBase

        Public Const PermissionCode As String = "MODULE_{MyModuleName}
        Public Const EditScriptsKey As String = "Permission1"
        Public Const EditScriptName As String = "Permission #1"
        Public Const EditResultsKey As String = "Permission2"
        Public Const EditResultsName As String = "Permission #2"


        Public Sub New(ByVal modInfo As Entities.Modules.ModuleInfo)
            Dim permCollection As ModulePermissionCollection

            permCollection = modInfo.ModulePermissions
            _CanPermission1 = ModulePermissionController.HasModulePermission(permCollection, EditScriptsKey)
            _CanPermission2 = ModulePermissionController.HasModulePermission(permCollection, EditResultsKey)
        End Sub

        Private _CanPermission1 As Boolean
        Public Property CanPermission1() As Boolean
            Get
                Return _CanPermission1
            End Get
            Set(ByVal value As Boolean)
                _CanPermission1 = value
            End Set
        End Property

        Private _CanPermission2 As Boolean
        Public Property CanPermission2() As Boolean
            Get
                Return _CanPermission2
            End Get
            Set(ByVal value As Boolean)
                _CanPermission2 = value
            End Set
        End Property
End Class

Dim tcPermissions As New {MyModuleName}Permissions(Me.ModuleConfiguration)
if(tcPermissions.CanPermission1)
{

    //Your code goes here.

}

 

 

 

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Delegated user creation and support role in DNNDelegated user creation and support role in DNN


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