+1-888-365-2779
Try Now
More in this section

Forums / Security / Page Permissions not working with Active Directory

Page Permissions not working with Active Directory

8 posts, 0 answered
  1. Eric Wallace
    Eric Wallace avatar
    66 posts
    Registered:
    08 Oct 2009
    07 Jul 2010
    Link to this post
    I have given CMS access to the AD role I'm working in, and denied permissions on all pages (except for view) to that role and every other role I am in (for good measure). However, I can still edit pages that I should not be able to. Just wondering if anyone else has experienced this and also if there is a way to reset all permissions for all roles on all pages?

    Thanks,
    Eric
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    07 Jul 2010
    Link to this post
    Hello Eric Wallace,

    1. Check whether you there is permissions inheritance.
    2. When you are logged in go to Permissions tab of this page and change what is set by PermissionSet control.
    3. Make sure that the user you use does not belong to administrators role or role with permission="Unrestricted"

    To set permissions for a given role you need to cast the page to ISecured object and then call SetPermissions method

    sample

    ISecured secured = page as ISecured;          
    secured.SetPermissions(val1, val2, "myRole");


    Regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Eric Wallace
    Eric Wallace avatar
    66 posts
    Registered:
    08 Oct 2009
    07 Jul 2010
    Link to this post
    It's because I am the page owner. Once I changed the sf_CmsPageProps.Owner DB field I was denied access.Any way to restrict this access even to the page owner?
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    07 Jul 2010
    Link to this post
    Hello Eric Wallace,

    There is a built-in role called "owner" which permissions you can modify from the backend UI. The role is listed in Roles DropDown together with "administrators", "everyone" and all other roles. So, you can easily change the permissions for the owner.

    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Eric Wallace
    Eric Wallace avatar
    66 posts
    Registered:
    08 Oct 2009
    07 Jul 2010
    Link to this post
    Greetings Ivan,

    I cleared the permissions for "owner" and it had no effect. The only way I am able to prevent editing the page is by changing the owner manually through the DB.

    Eric
  6. Eric Wallace
    Eric Wallace avatar
    66 posts
    Registered:
    08 Oct 2009
    07 Jul 2010
    Link to this post
    I should also mention that I am not able to explicitly deny permissions for the "owner" role. The checkbox is gray'd out.
  7. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    07 Jul 2010
    Link to this post
    Hi Eric Wallace,

    When Allow is not checked this means that "Deny" is set by default.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  8. Eric Wallace
    Eric Wallace avatar
    66 posts
    Registered:
    08 Oct 2009
    07 Jul 2010
    Link to this post
    I should also mention that when I click the "All Pages" node and choose permissions, the "owner" role does not appear in the dropdown...only for individual pages. This could be a problem when all other pages inherit from the root node.
Register for webinar
8 posts, 0 answered