MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

Create Administrator to with control over ONLY User Management part of Admin Portal  (Mono Support )

Viewed 9376 time(s), 6 post(s) 1/27/2012 4:31:32 PMby erin0201
erin0201

erin0201

1/27/2012 4:31:32 PM
Hello,

I am just getting into the MonoX CMS. I am wondering how to lock down an administrative role so that it only has access to edit some content in the site, such as the calendars, and to also participate in user management, but that's it.

I don't want them messing around with the site layout, adding pages, etc, but I want to give someone management over user creation, password resets, user deletion, etc. I created a role called UserManager, but I'm not sure how to give it access to just the user management part of the administrator portal.

Is there a simple way to do this in the monoX system currently?

Thanks!
This content has not been rated yet. 
453 Reputation 61 Total posts
denis

denis

1/27/2012 11:46:36 PM
You should open a separate role for such "limited" admin users. You can than set the CustomAccessRoles property for the admin pages such users can access to the name of that limited role. If you don't want ot use this code-based approach, you can altenatively go the the Page management section of the backend, check the "Show admin pages" checkbox (it can be accessed by clicking on the Search link in the SiteMap header of that panel), choose the admin page that should be accessible, and select appropriate View roles.
Note that view and edit roles can also be set on a Web part level, just click Web part properties verb and choose appropriate roles from the administrative toolbar.
This content has not been rated yet. 
7207 Reputation 956 Total posts
erin0201

erin0201

1/30/2012 1:18:15 PM
I'm not well versed on the code part of it yet, but the show admin pages checkbox and allowing this group access to only the user management page looks like it will work just fine for what I need! I did notice the web part level, but are the things on the Default admin pages actually web parts? Or are they considered widgets or..? When I tried to admin the web parts of the default admin page, it said there were no web parts to personalize.

I will test and let you know for sure.

Thanks!
Erin
This content has not been rated yet. 
453 Reputation 61 Total posts
erin0201

erin0201

1/30/2012 1:40:46 PM
Hi Denis!

I have tried this out and it works great! However, once on the user management page, all of the links across the top (Home, Files, Pages, etc) are deactivated for use except for "Home" itself. It still lets the user click on the Home link and the page just errors out in the application and throws you into an asp.net error security page. Is there a way to make it so that the Home link is not able to be selected either and only the Users link is?
Is that row of links a navigation bar of some sort that could be hidden from the user altogether since for this role they aren't allow to edit anything else?

Thanks!
Erin
This content has not been rated yet. 
453 Reputation 61 Total posts
erin0201

erin0201

1/30/2012 2:04:55 PM
Also, is there a way to edit the CMS mdf file manually using the credentials initially setup during the install so that in case, for instance, a user like admin is accidentally or even intentionally deleted, it can be re-added via the database itself?

Would I need to connect via a certain SQL Server management tool? I haven't worked with SQL Server (only MySQL and Oracle) from the command line or manually yet so I'm not sure what the best way is to connect to the database without harming something in the MonoX system. I am assuming there is a user table where I could manually add a user with a password so that it could login to the MonoX system, but would this mess something up in the monox functionality?

Thanks!
Erin
This content has not been rated yet. 
453 Reputation 61 Total posts
denis

denis

2/1/2012 12:26:13 PM
Hi Erin,
I will see how to avoid the "Home" link issue. It is behaving as expected, but I agree that in your scenario (only a single panel should be displayed) it does not make too much sense.
As for the editing users via SQL - yes, it can be done. In fact, the whole MonoX database is created on your machine during the install process this way. You will not be able to mess things up this way, but you need to know which tables should be populated. For example, user's data is held in multiple tables (aspnet_Users, aspnet_Membership and UserProfile).
This content has not been rated yet. 
7207 Reputation 956 Total posts