-
Notifications
You must be signed in to change notification settings - Fork 399
Description
Is your feature request related to a problem? Please describe.
Limited functionality
Describe the solution you'd like
I can use PnP to set the Request files at a tenant level for sites and OneDrive, e.g. Set-PnPTenant -CoreRequestFIlesLinkEnabled $True -CoreRequestFilesLinkExpirationInDays 14 -OneDriveRequestFIlesLinkEnabled $True -OneDriveRequestFilesLinkExpirationInDays 7
and also at the site level, e.g. Set-PnPSite -Identity $SiteURL -RequestFIlesLinkEnabled $True -RequestFilesLinkExpirationInDays 30
However, Get-PnPTenant and Get-PnPSite do not return the current values, so I must revert to SharePoint Online PowerShell.
Describe alternatives you've considered
You can use SharePoint Online PowerShell as described https://learn.microsoft.com/en-us/sharepoint/enable-file-requests
Get-SPOTenant | Format-List CoreRequestFIlesLinkEnabled, CoreRequestFilesLinkExpirationInDays, OneDriveRequestFIlesLinkEnabled, OneDriveRequestFilesLinkExpirationInDays
Get-SPOSite -Identity $SiteURL | Select-object url, RequestFIlesLinkEnabled, RequestFilesLinkExpirationInDays
Additional context
Screenshot of sunning Get-PnPSite and Get-SPO site
