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 Pro 7 -  How do enable a custom role to editing another user's profile?DNN Pro 7 - How do enable a custom role to editing another user's profile?
Previous
 
Next
New Post
1/9/2013 10:30 AM
 

We have created a custom role and would like that role to be able to edit other user profiles.  We would like to use the built-in user profile editor rather than developing a custom module.  We attempted to create a link using this format:http://localhost/Admin/UserAccounts/tabid/109/ctl/Edit/mid/564/UserId/10/filter/All/currentpage/0/Default.aspx?popUp=true

The message we receive is: "You are not authorized to edit this user."

We've tried granting our custom role full permissions for the site admin profile editor - but that doesn't seem to do the trick

Suggestions? Hints?  Is this a limitation of DNN 7 Pro?

 
New Post
2/20/2013 10:38 AM
 

I'm having this same issue.... I don't want to use the "Administrator" Role to manage accounts.

 
New Post
2/20/2013 11:17 AM
 
Hello,

This related closely to a discussion in another forum so I just created a community voice entry for this feature:

http://www.dotnetnuke.com/Community/C...

Mike
 
New Post
5/31/2013 5:25 PM
 

I never did find a good answer to this question. But through a lot of poking around, I found a way to do this. Though it might be a little shunned upon since it requires editing the core module code, so use with caution:

The easy part (which you appear to have already done) is to get the user to the form, either create a link/button somewhere to either User Profile or the Manage Users interface. You also might need to grant access for the custom role to Admin -> User Accounts in Page Management. 

The tricky part is to go into DesktopModules/Admin/Security/ManageUsers.ascx.cs   and edit lines 383-388 to allow the custom role in addition to the Admin role. I wrapped the current check with my own custom check:

//Check if user has admin rights 
DotNetNuke.Security.Roles.RoleController cRole = new DotNetNuke.Security.Roles.RoleController();
DotNetNuke.Security.Roles.RoleInfo iRole = cRole.GetRoleByName(0, "Admin - Users");
if (!UserInfo.IsInRole(iRole.RoleName)) 

... {original code which can throw NotAuthorized error} ...
}

 
New Post
6/11/2013 7:40 AM
 

Lance, did you ever get this working?

I am not opposed to modifying the source and have been able to get your solution to kind of work.  By kind of, I mean I no longer get the error, when I press edit :)  My problem now is if I press add or edit it looks like there may be another place blocking me on the save, as the changes never save and the window never closes.  Any tips on how you resolved this would be greatly appreciated.

Brian English

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...DNN Pro 7 -  How do enable a custom role to editing another user's profile?DNN Pro 7 - How do enable a custom role to editing another user's profile?


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