开发者

Sharepoint page level security

开发者 https://www.devze.com 2022-12-31 09:55 出处:网络
Another SharePoint question from myself! I\'ve created a subsite and from within Sharepoint designer I\'ve created a new aspx page, all nice and simple so far.I can\'t seem to find where I can change

Another SharePoint question from myself!

I've created a subsite and from within Sharepoint designer I've created a new aspx page, all nice and simple so far. I can't seem to find where I can change the security on this new page, only site admins can view the page and everyone else gets access denied. It doe开发者_开发技巧sn't seem to inherit the permissions from the parent and I can't see where to change the security settings!

Please help, I'm sure it's something simple!

Thanks

Dan


You've placed your ASPX file in a 'bad' place. It doesn't sit where the normal security structures for SharePoint work so you won't be able to set its item level permissions (because it is not an 'item'). This is the danger of giving people SharePoint Designer ;)

Personally I think your page belongs in the _layouts folder somewhere since it seems to be an admin page. In there you could simply secure it by a call like:

SPUtility.EnsureSiteAdminAccess();

Either you can:

  • Put your page in a library so you can set item level permissions to it
  • Create a custom control that allows you to call the code above for any page
  • Move the page to _layouts


From SharePoint, you should be able to navigate to where you stored your new aspx page (probably in one of your Document Libraries). From that location you can either change the permission of the Document Library, or manage the permissions of an individual aspx page.

Please note that it is best practice to set permissions at the Site Collection level and allow everything under the Site Collection to inherit permissions.

0

精彩评论

暂无评论...
验证码 换一张
取 消