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

I want to grant users to see images if they know the direct link (e.g. /MyPicLib/test.jpg). However the users should not be able to open "/MyPicLib/Forms/AllItems.aspx". I tried the available permission levels like "Restricted read" and also tried to create my own custom permission but it didn't work. Any ideas?

share|improve this question
add comment

2 Answers

The problem is that if you have access to items in a folder, then you can go to that folder and see the items you have access to even though you don't have any permissions on the folder.

One solution could be to put each picture into it's own folder like /MyPicLib/Logo/Logo.jpg. If you then don't give users any rights to the list, but break inheritance on each picture and gives them read View rights, then users will be able to see the image and goto the folder /MyPicLib/Logo and see the image exists, but they will not be able to see which folders exist.

share|improve this answer
    
That would be really difficult for more than a few pictures.. However, with the "Style Library" it works somehow. A normal user can load the css/js files but cannot open the style library directly. So I thought it should be possible for my custom lib to do the same. –  marco May 16 '12 at 12:48
add comment
up vote 0 down vote accepted

Was my mistake. The restricted read is exactly doing what I want. So the solution was: Opened permissions of my picture lib, stop permission inheritance and set the group to "Restricted Read" instead of "Read". Now they can see the pictures by the direct url, but cannot open the library.

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.