Visual

Blog post

Tips and Tricks: Debugging access denied permissions

31 May 2011, 0 comments
When working with users and roles in Kentico CMS it is sometimes tricky to find the needed UI permissions. This post will cover a tip for debugging the permissions needed.

I usually run a test by impersonating the user and try to modify some documents and clickthrough the modules needed. Sometimes I get screens like the following:

permission_required.png

Kentico informs me that the user needs a role that is allowed to "Read" the "Web Analytics" module. In this case it is pretty straight forward what permission needs to be given to the role. In other cases, like developing custom modules, it is easier to find it out using Security debug.

To enable Security debug, add the following AppSetting to your web.config:
<add key="CMSDebugSecurity" value="true"/>
This will enable the Security debug via Site Manager --> Administration --> System --> Debug --> Security. Here you will find the security log that displays the checks and the permission the user needs fo access the WebAnalytics module.

needed_permission.png

Hope this helps!

For more information on debugging please read the post on debugging options in Kentico CMS by Martin Hejtmanek.

Comments
Blog post currently doesn't have any comments.
Leave comment



 Security code

Search

Related posts

Tips and Tricks: Macros in Widgets

Here is a quick tip that is useful if you work a lot with widgets in Kentico. You might know that macros are not... read more

Tips and Tricks: Hiding content in the content tree

Kentico CMS 6.0 brings you a great new feature that allows you to only display content to your editors if they have the... read more

Tips and Tricks: Building Highly Scalable Websites

15 tips for optimizing your websites performance A couple of weeks ago, at the Kentico Connection 2011 in Prague, I... read more

Tips and Tricks: 10 things to check before delivery of the site

This post contains 10 things (in random order) that I would advise to check before the site can go live. 1. Update... read more

Tips and Tricks: Right, Right Click

Here’s just a small tip: when you are in a context menu, right click an item to open the sub context menu (if available).... read more