Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Is there a way to restrict the out of the box document libraries like "Document Library" "Picture Library" etc and just have custom document libraries being shown in the pop-up below?

enter image description here

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

Is your requirement to hide the action or prevent users from creating new lists in the SharePoint site? You could prevent users from creating lists by making them a contributer or create a custom permission level.

You can use the SPRoleDefinition class to programmatically create a permission level. Take a look at

http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.sproledefinition.aspx

Edit: There is another option. That is to unregister the document library list template from the site. You can do that by disabling the feature:

 Disable-SPFeature 00BFEA71-E717-4E80-AA17-D0C71B360101 -Url http://sharepoint/example
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.