Change Primary Administrator of SharePoint Online Site using PnP PowerShell

Changing the Primary Administrator First connect to SharePoint Online admin center $connection = Connect-PnPOnline -Url https://YourTenant-admin.sharepoint.com -Credentials (Get-Credential) -ReturnConnection Then get the Site $site = Get-PnPTenantSite -Url https://YourTenant.sharepoint.com/sites/SiteAlias -Connection $connection Then update the Owner (same as Primary Administrator) using the new Primary Administrators Email/UserPrincipalName. $site.Owner = “user@domain.com” $site.Update() $site.Context.ExecuteQuery() Verifying the Primary Administrator Connect to […]

Creating a List Item via the SharePoint REST API results in Error (500) Internal Server Error

The below is done in PowerShell, but I imagine other languages supports the same features as well. When utilizing the SharePoint REST API to create a new List Item which contains characters such as æ, ø, or å you might get a response of Error (500) Internal Server Error. The reponse might also include the […]