Forum Discussion
Svetlana Mazur
May 21, 2018Copper Contributor
SharePoint Online - Picture library permissions
Hi, I need to setup a document library with a folder structure where students (about 150) upload and share a photo a day.
Students need to upload photos to their own folder and have the ability to view chronologically other students photos using a mobile phone or a laptop. I am not sure if I need to create a picture library for each student or use a default Document library and create folders for each student, creating folders is less time consuming. It looks like I have to break inheritance and assign individual student permissions to a library/folder and give View permissions to all other students. Is there a powershell command that can create folders, break inheritance and assign permissions from the input .csv file?
Any help appreciated. Thank you!
- Deleted
So if you wanted to get advanced with flow you could take care of this using it. Here is an older video using HTTP calls direct to ShrePoint, but this was before the new HTTP Request SharePoint action so some of it might be able to be trimmed down, but it's a really good step by step that could possibly get you desired results to automatically assign edit permissions to the creators and read for everyone else.
https://youtu.be/_-vvlPXv8rcOne thing you have to watch for, it takes one person not paying attention to "inherit" permissions on the root level and all your custom permissions go poof. So keep that in mind when messing heavily with custom permissions on individual items and folders in libraries!
- Svetlana MazurCopper Contributor
Thank you Christopher, will check the video and try to use Flow functionality.
- DeletedI would recommend not using folders or permissions. There is a setting on libraries that allow students to edit their own entries only. What you should do is create views, if you want it by student you can group by created by, or date. You could have a default view ordering the photos by create date descending. Adding folders kind of just complicates it.
You could also have default view called "My photos" and filter it by created by = [Me] that way they just see their own, but then supply another page or instruct how to change views to see other photos.- Svetlana MazurCopper Contributor
Hi Christopher, I don't think I can enable Item- Level permissions on Document library, this option is unavailable in Document Library - Advanced Settings.
Thank you,
Svetlana
- DeletedHmmm, seems to be list items only. I thought you could do it with documents as well sorry about that.