tl;dr Can you enable SharePoint site features with Microsoft Graph?
Hi!
My main goal is to make sure OpenInClient is enabled on all SharePoint sites in my tenant (so the default behavior is to open in the desktop applications rather than web apps).
I have previously done this via a PowerShell script I've put together:
$tenant = "myTenant"
$site = "https://$tenant-admin.sharepoint.com"
$userCredentials = Get-Credential
Connect-SPOService -Url $site -Credential $userCredentials
$sites = Get-SPOSite -Limit All
ForEach($s in $sites){
Connect-PnPOnline -Url $s.Url -Credentials $userCredentials
Enable-PnPFeature -Identity 8A4B8DE2-6FD8-41e9-923C-C7C3C00F8295 -Scope Site
}
However, there are new groups created each and every day which makes it necessary for me to automate the script. Of course, the preferred option would be to set OpenInClient as default behaviour for all sites but this is not possible to my knowledge.
So, the option then is to automate this. Either I will have to make a Azure Function that runs this PowerShell-script but I would prefer to use Microsoft Graph so I can run it with LogicApps instead. So, is there a way to enable SP site features with Microsoft
Graph?
Thanks!