Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPOTenantSettings: Missing support for property TenantDefaultTimezone #4189

Open
salbeck-sit opened this issue Jan 19, 2024 · 2 comments
Open
Labels
Enhancement New feature or request SharePoint Online

Comments

@salbeck-sit
Copy link
Contributor

Description of the issue

The resource returns information that is available through Get-PnPTenant. The corresponding Graph-cmdlet Get-MgAdminSharepointSetting returns quite a number of the same properties and additionally TenantDefaultTimezone. The latter would be very nice to set first thing in order to not having to do it from every SPO-site being created.
I'm not sure if any other resources mix permissions/cmdlets like this - ie calling New-M365DSCConnection twice with different workloads - but I'd think that this would be the easy way. The PNP-module could be used to provide validation for the timezone via 'Get-PnpWeb -Includes RegionalSettings.TimeZones' (see https://www.sharepointdiary.com/2017/06/sharepoint-online-change-time-zone-using-powershell.html) - but another option is to just let the Update-cmdlet throw an error (and log it).

Microsoft 365 DSC Version

DEV

Which workloads are affected

SharePoint Online

The DSC configuration

No response

Verbose logs showing the problem

No response

Environment Information + PowerShell Version

No response

@andikrueger andikrueger added Enhancement New feature or request SharePoint Online labels Jan 19, 2024
@andikrueger
Copy link
Collaborator

Are all current properties part of the MSGraph cmdLet? Changing to the graph cmdLet would also allow for a better permission management in regards to access rights for SPO. https://learn.microsoft.com/en-us/graph/api/sharepointsettings-update?view=graph-rest-1.0&tabs=http

@salbeck-sit
Copy link
Contributor Author

Unfortunately not. There is some overlap but nowhere near enough for a direct replacement

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request SharePoint Online
Projects
None yet
Development

No branches or pull requests

2 participants