SharePoint Online – Site Collection External Sharing Settings App

★★★★★★★★★★★★★★★ Summary SharePoint Online provides an ability to share contents to external users. This is a great feature for collaboration with your partners. However, the External Sharing can be enabled/disabled only in SharePoint Admin Portal or PowerShell which requires the user to be part of SharePoint Online administrators group. This creates a dependency on Tenant…

0

SharePoint Online – Change Site Collection Ownership App

★★★★★★★★★★★★★★★ Summary The Change Site Collection Owner application is used for changing the Site Owner of a site collection in SharePoint Online by the current site owner or any site collection administrator. Out of the box in SharePoint Online, the Site Owner can only be changed in SharePoint Admin Center or PowerShell which requires the…

0

SharePoint Online : Securing Add-in Principals

★★★★★★★★★★★★★★★ For the remote components of a provider-hosted SharePoint Add-in to interact with SharePoint using OAuth, the add-in must first register with the Azure ACS cloud-based service and the SharePoint App Management Service of the tenancy. The registration involves creating new Client ID/Secret and other add-in specific details. After you register your add-in, it has…

0

SPO : PowerShell to get Custom Actions in a Site Collection

★★★★★★★★★★★★★★★ [System.Reflection.Assembly]::LoadWithPartialName(“Microsoft.SharePoint.Client”) [System.Reflection.Assembly]::LoadWithPartialName(“Microsoft.SharePoint.Client.Runtime”) $siteUrl = Read-Host -Prompt “Enter sitecollection url” $username = Read-Host -Prompt “Enter user login name” $password = Read-Host -Prompt “Enter user login password” -AsSecureString $ctx = New-Object Microsoft.SharePoint.Client.ClientContext($siteUrl) # SharePoint Online $credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($username, $password) $ctx.Credentials = $credentials $rootWeb = $ctx.Site $ctx.Load($rootWeb) $ctx.ExecuteQuery() $caColl = $rootWeb.get_userCustomActions() $ctx.Load($caColl) $ctx.ExecuteQuery() Write-Host Write-Host ‘Total…

0

SPO : PowerShell Script to get report of all subsites for a given site collection

★★★★★★★★★★★★★★★ In SharePoint Online, most of the times, a Site Owner would like to get subsites report of their site collection.  Here is a sample PowerShell script which uses CSOM to get all users with Full control permission in all the subsites (recursively) under the given Site Collection and outputs in an Excel sheet.  The script…

0

SharePoint Online – Setting custom home page in Site Collection and in Sub-Sites

★★★★★★★★★★★★★★★ In SharePoint Online, using PNP’s Remote Site Provisioning approach you can request and create customized site collections.  As part of site collection creation process, one of the option could be to upload custom page and set it as default welcome page for the Site Collection.  As part of site provisioning, if you have sub-sites…

0

SharePoint Online – Securing Add-in Principals

★★★★★★★★★★★★★★★ For the remote components of a provider-hosted SharePoint Add-in to interact with SharePoint using OAuth, the add-in must first register with the Azure ACS cloud-based service and the SharePoint App Management Service of the tenancy. The registration involves creating new Client ID/Secret and other add-in specific details. After you register your add-in, it has…

0

SharePoint Online–CSOM Change Access Requests Settings

★★★★★★★★★★★★★★★ The Access Request in the Site settings > Site permissions is a feature which allows people to request access to content that they do not currently have permission to see. The setting that allows members to share the site and individual files and folders doesn’t overwrite the "Manage permissions" permission level, it works with…

3

SP 2013 – PowerShell to Modify Help Setting on Site Collection

★★★★★★★★★★★★★★★ Let’s say we want to enable/disable any of the help collection options available under Site Collection Administration settings.  This can be done using SPSiteExtension class which contains all help related extension methods for the SPSite object. Here is a simple script to disable Central Administration help [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Help") $site = Get-SPSite http://2013-SP [Microsoft.SharePoint.Help.SPSiteExtension]::DeactivateHelpCollection($site, "WSSCentralAdmin") To…

0

SharePoint 2013 : Manage Other User Profiles

★★★★★★★★★★★★★★★ SharePoint gives an option in UPSA to manage the user profiles of other users (like editing basic or contact information) in their mysite.  To edit other users profile, we need to first give “Manage Profiles” permission to a user (who wants to manage) under UPSA.     Sometimes you might get UserNotFoundException when you…

1