How to use SharePoint Pages and WebParts in your OneDrive

As we anticipate the next generation of OneDrive, it’s essential to remember that the current version also boasts a variety of hidden features that can be activated with just a few clicks. Have you considered creating your own personal intranet within OneDrive by incorporating SharePoint pages and web parts? Explore the possibilities!

Weiterlesen „How to use SharePoint Pages and WebParts in your OneDrive“

Filter SharePoint Recycle bin programmatically using SharePoint REST API

Since there is not yet a Microsoft Graph API endpoint to query the recycle bin of a SharePoint Site we can use the SharePoint REST API to filter for items with specifc values (e.g. deletion date).

Weiterlesen „Filter SharePoint Recycle bin programmatically using SharePoint REST API“

CSOM: Set primary set collection admin

When creating modern site collections (e.g. sites with STS#3 Base Template) in SharePoint Online using CSOM the creator of the site will be automatically set as site owner and afterwards becomes site collection administrator afterwards.

To prevent this you have to change to primary site admin, remove old admin user from the site collection admins. This can be done in CSOM using the following logic.
Weiterlesen „CSOM: Set primary set collection admin“