SharePoint files permission management - sharepoint

I have a task where I have around 300 files and for those files, I need to assign a certain level of permission based on the person. For example, I have files A, B, C, and D, and only person X can view those files. How can I do this in bulk and not one by one? sharepoint files SP lets you change access by clicking on the file and then by clicking on "i" on the right side of the SharePoint where you will find "manage access", however this only works for one file and you cannot do this with many files.

For this situation, there is no direct way, you can put the files A, B, C, D that only X users can view into the same folder, then right-click this folder or click 3 dots after this folder, select manage access, enter the folder permission settings page. First Stop Inheriting Permissions, then remove the user who is not allowed to see this folder, and add the appropriate permissions for the X user.

Related

How to get power apps to handle folders in a list properly

I have a SharePoint Online list that uses folders with unique permissions. Each user can only see their own personal folder and the items inside. I set the default view to show content inside of folders rather than flat. In SharePoint, the user first sees their personal folder at the top level of the list. They click on the folder and add items inside of it in order to keep them private. Seems to be really tricky for a power apps beginner like myself to create that in power apps and I'm looking for some ideas on where to start.
I know I can make the start screen gallery be filtered by only showing things that have a content type of folder. Hopefully, this would respect permissions and show each user only their own folder like in SharePoint Then, when you click on the folder, it would take you to a gallery on another screen. But this screen would have to be filtered to only show items that relate to the folder clicked on. SharePoint does this naturally. So the second gallery would have to somehow be filtered by knowing what was clicked on to get to that screen. I don't want to make a screen or even a gallery for every user case.
Also, I need to make sure that any entries on the second screen are being entered into the person's folder rather than the top root. SharePoint seems to record it as being under that folder, but will power apps do the same?
Can anybody get me started or give me some ideas as to how to approach this? Maybe an article that solves a similar problem? I couldn't find one yet. Thanks.
If users don't have directly access to share point is the best way for build your app, you may put all file in the same folder and filtered by a column with user informatcion, for example: column isFolder with values ["Yes", "No"] yo can filter and show in gallery only folders and column userEmail you can filter folders for a especific app user.
In case users have access to sharepoint you must create a connection for each user folder to collect files inside and show it in second screen and populate gallery with condictional (switch or if), for example: Gallery Property:Items = If(User().Email = FirstGallery.Selected.userEmail, colForThisUserName)

Automatically create Subfolders on SharePoint Document Library

I have been trying to accomplish this for weeks now and end up hitting a wall.
I have a document library on SharePoint Online with the following (close enough) structure.
Clients
-> Schools
-->Client Name
--->Communications
--->Documentation
--->Projects
---->Project Name 1
---->Project Name 2
->Retail
-->Client Name
--->Communications
--->Documentation
--->Projects
---->Project Name 1
---->Project Name 2
... and so on.
Inside the "Projects" folder there is a set of folders as well.
Right now we have a Project template folder that we used to just copy/paste and rename when we had our file server, but now on SharePoint, the copy to process is way too many clicks to get it to that location.
What I am trying to accomplish is be able to create a new project folder and automatically create all the folders under it.
Appreciate the guidance on this.
I was able to figure this out.
My challenge was when creating the folder, it always wanted to create it inside the root of the document library and not the subfolder.
So I created 2 Content types for folders, one for clients and one for projects.
Used SharePoint Designer to create the workflow, but the trick here was to extract the URL from the current item, which is the folder being created, and remove the first x amount of characters from it which equals the SharePoint document library location. The remaining part of the string was the exact location where I wanted the subfolders to be created.
After that, I used that variable to create all other subfolders.

sharepoint workflow to move files of a content type to new folder (after creating it if needed)

I have multiple SP document libraries for different meetings. I want to keep the libraries organized by meeting day. So each meeting would have it's own folder and all the files for that day would go in that folder.
To make it easy I wanted to make it so you can upload a file and then a SP workflow will create a folder for that meeting, if needed, and move the file.
So I created a "meeting file" content type that also gets meeting date and file type (minutes, presentation, misc, etc...)...
What I need to do next is check if a folder for that meeting date exists and create it if it does not. Then move the file over to that folder.
Any ideas how I could do this?
I could also try it without using content types but then the workflow starts automatically for every file added and then I cannot create a new folder with that workflow (because it would start a new instance of that workflow).
I was hoping to keep it reusable so I could just use one workflow for all the document libraries. I thought the workflow could find the path of the list it is being run on, and create the folders and do the other work within that list.
Any ideas are appreciated.
For creating folder via workflows:
Creating folders and sub-folders using SharePoint 2010 Designer Workflow
and for checking folder name:
Create a string workflow variable.
Now create a lookup for your folder and set the variable to the folder's title. Take a look here for some helpful information and usage guidelines when it comes to list folders.
The actions dependent of the existence of the folder have to be placed inside an if-statement
E.g. the if-statement should be like "if [variable] not equals [folder name]" if you want the actions only to be run when the folder does not exist
and here the whole tutorial that I found:
Create folders using a SPD workflow

Add menu item in XAMPP

I want to add a menu item in my xampp home page, right in the Demos category. I can see in here there are multiple items like CD Collection, Biorhythm, Guest Book etc..., I want to add my folder "Courses01" right before CD Collection.
How can I do that?
Here's where I want to place it
I forgot to mention, I saw this option in WAMP, I had a directory in /www folder and I could browse my directory from the browser, just click on the links. I want something similar.
In order to display the folders where you code, all you need to do is:
Stop the servers (Apache, MySql etc..)
Go to your XAMPP directory (where you've installed it)
Rename the file htdocs to *htdocs_default* (that's so you know which one's the original one...)
Create a new folder called htdocs
Store your PHP scripts here or folders and have fun!
NOTE: To access your workpath in the browser, you just type localhost (as usually).
May be it is too late but ...
You can add your menu item by modifying 2 files :
First add your items in the file name [your_langage].php. You will find this file into the directory [xampp_dir]/htdocs/lang/
Into the file (en.php for example), add the navi component you want.
For example, in your case :
$TEXT['navi-course01'] = "Course01";
after the line " $TEXT['navi-phpswitch'] = "PHP Switch";"
Save your file
Secondly, you have to modify the file phpexamples.php into the directory :
[xampp_dir]/htdocs/xampp/navilinks
Add your menu item for example :
<a class="n" target="content" onclick="h(this);" href="external/mycourse01dir/index.php"><?php echo $TEXT['navi-course01']; ?></a><br>
Save the file, restart your menu eg. http://localhost
If you want this modification in all the languages of your xampp installation, please, you have to modify all the files in the dir lang.
The menu items are shown in the same order they are ordered in the phpexample.php file
Regards

How to edit a list template in SharePoint 2010?

I have made a number of lists using custom list template in SharePoint 2010. I would like to add a column to each of these lists. Microsoft offers the following super helpful instructions
Edit the list template properties
On the Site Actions menu , click Site Settings.
NOTE On a site for which the Site Actions menu is customized, point
to Site Settings, and then click the settings that you want to view.
In the Galleries column, click List templates.
NOTE This option
appears only to users who have the Manage Lists permission. Site
owners have this permission by default.
The List Template Gallery page appears.
In the Edit column, click Edit Document Properties for the list
template that you want to edit.
Edit the information that you want to
change, and then click OK.
What they neglect to mention is that this gives you access to exactly 3 things
the template file ( eg: myTemplate.stp )
the template name
the template description
My question is, how do you ACTUALLY EDIT THE TEMPLATE? ie: change columns
I van crack open the file itself by downloading the .stp renaming it to a .cab extracting the .xml and making changes there. But without some testing I have no idea what will happen if I try re-compressing that file and replacing an existing template with it.
Has anyone done this themselves? Does anyone know of an alternative method to add a column to a list template?
You can create a List using the template, make the edits, then create a new template from the List you just created.
If you need the template to carry the same name, you can deactivate and delete the original, then save the new template with the proper name.
In SP2003 I used to download the STP file, rename it to CAB, edit the inner XML manually, repackage with Makecab and upload the new STP file back to the template gallery.
However I must say that in SP2010 I can't seem to get what I want (a custom URL column calculated from other columns) without SP throwing fits, so I wish you luck.

Resources