Grant Site Admin Privileges

Grant User Site Admin Privileges

The following PowerShell code can be used to promote a user to be a site administrator for a site collection. This should be run in the context of an account that has permission for this change.

$Web = Get-SPWeb http://webapp.com/sites/users-site 
$User – Get-SPUser -Web $Web -identity “i:05.t|saml provider|username@webapp.com” 
$User.IsSiteAdmin=$true 
$User.update()

Here are few other checks that can be run to assist the process –

After getting the web object with Get-SPWeb, check the claim string by using $Web.SiteUser with a filter, as shown here:

$Web.SiteUsers | ?{$_.UserLogin -like “*username*”} | ft -a

The results of that query shows the string which can be used in the Get-SPUser cmdlet. (Copy and paste saves some typing and can be more accurate.)

It is also possible to confirm that the user is a site admin by using this line in the appropriate location:

$User.IsSIteAdmin

(Results will be true of false.)

Posted in Uncategorized

How to check a user’s permissions on a list.

Go to the list that needs to be checked.



In the list ribbon go to the list tab, then click on the icon “List Settings”



Once in list settings, click on “Permissions for this list”



Again from the ribbon, go to the permissions tab and click on the icon “Check Permissions”



A window will open that can be used to enter the user name that you want to check permissions for.

Once the name is entered in click on “Check Now” and the results will display in an additional window.



 

Posted in Misc.

SharePoint in 2016

Don’t be lazy. Open the ULS log!

First troubleshooting tip for 2016…

Posted in Misc.

Correlation ID – Now What?

SharePoint will on occasion throw an error which is displayed in the browser session if the error is severe enough to cause the page not to render correctly, or the request is not completed correctly. An example would be a search that ends in an error.

 
 


 A correlation ID is an identifer for an error or error(s) that are logged in the “Unified Logging System”. Use ULS viewer to best parse through the log file to determine what the cause of the situation may be.

Posted in Misc.

Hello world!

I am a huge fan of One Note and I have been using it since One Note 2003. Yes, it’s not for everyone. There is a small learning curve as with any office product. It is a fantastic tool for doing what the name says, taking notes. It is also very easy to upload a One Note page to a blog page. Therefore the name, SharePoint OneNote! This blog is mainly for me and people I want to share information with, but if anyone else benefits from this blog too, that’s cool.

Remember, have fun, because IT is!

Posted in Misc.