You can set SharePoint group as Target Audience for webpart. This way webpart will appear only to people who are members of a particular group or audience.
To do this,
For SharePoint 2010, 2013, and 2016, click the down arrow Web Part edit down arrow on the right of the web part, and then click Edit Web Part.
In web part properties, under Advanced, add ...
I would follow your stated procedure of removing yourself from the library. Then advise them to password protect the word/excel files that contain sensitive information. Lastly encourage them to review the web analytics weekly to ensure you did not visit the site. Agree on strict and swift ramification if your name or admin account is found in the top ...
If you are looking for the possible value of Permissions, visit this page
Usually the security trimming falls into these 2 types:
Default is hidden, show the control for users with XXX permission.
Default is shown, hide the control for users with XXX permission.
Which one fits your environment?
SPSecurity.RunWithElevatedPrivileges always executes the code under Application Pool Identity. So you must ensure that Application Pool Identity has proper permissions over site, otherwise you will get access denied error.
SPSecurity.RunWithElevatedPrivileges reverts to the identity of the application pool (among other things). So, the code runs under the new identity you specified.
Also, if you did change the app pool's identity property (i.e. from the Central Administration Tool, so SharePoint sets correct permissions on the content DB + propagate changes to all servers in ...
This is not an easy task due to the way security options in SharePoint. most of the options we are seeing in this scenario are after the damage has been done.
Here are couple of things you can do:
Remove Everybody from that site collection and make your Boss as primary site collection admin, Enable the auditing on the site collection. Get the permission ...
He can use onedrive if yall are using office 365. That should be his own personal space. If he wants to share it with HR, he should be able to do so per document.
Also I strongly recommend using Excel and password protecting Excel documents. That's a surefire way of restricting viewing of content that is only given out by the password holder.