From 5889523cb6a4587bf74da94781c128d8561e0126 Mon Sep 17 00:00:00 2001 From: Koen Zomers Date: Mon, 4 Nov 2024 12:34:29 +0100 Subject: [PATCH] Adding to retrieval of current properties --- src/Commands/Model/SPOTenant.cs | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/src/Commands/Model/SPOTenant.cs b/src/Commands/Model/SPOTenant.cs index 0bac35231..c5e5c3b7e 100644 --- a/src/Commands/Model/SPOTenant.cs +++ b/src/Commands/Model/SPOTenant.cs @@ -250,6 +250,7 @@ public class SPOTenant public bool? SharePointAddInsDisabled { private set; get; } public SharingCapabilities? OneDriveSharingCapability { private set; get; } public string[] GuestSharingGroupAllowListInTenantByPrincipalIdentity { private set; get; } + public bool? AllowWebPropertyBagUpdateWhenDenyAddAndCustomizePagesIsEnabled { private set; get; } #endregion public SPOTenant(Tenant tenant, ClientContext clientContext) @@ -739,26 +740,8 @@ public SPOTenant(Tenant tenant, ClientContext clientContext) { } - try - { - AppBypassInformationBarriers = tenant.AppBypassInformationBarriers; - } - catch - { - } - - try - { - if (tenant.DefaultODBMode != null) - { - DefaultOneDriveInformationBarrierMode = Enum.Parse(tenant.DefaultODBMode); - } - } - catch - { - } - - + try { AppBypassInformationBarriers = tenant.AppBypassInformationBarriers; } catch { } + try { if (tenant.DefaultODBMode != null) DefaultOneDriveInformationBarrierMode = Enum.Parse(tenant.DefaultODBMode); } catch { } try { CoreSharingCapability = tenant.CoreSharingCapability; } catch { } try { EnableVersionExpirationSetting = tenant.EnableVersionExpirationSetting; } catch { } try { BlockUserInfoVisibilityInOneDrive = tenant.BlockUserInfoVisibilityInOneDrive; } catch { } @@ -789,6 +772,7 @@ public SPOTenant(Tenant tenant, ClientContext clientContext) try { SharePointAddInsDisabled = tenant.SharePointAddInsDisabled; } catch { } try { OneDriveSharingCapability = tenant.ODBSharingCapability; } catch { } try { GuestSharingGroupAllowListInTenantByPrincipalIdentity = tenant.GuestSharingGroupAllowListInTenantByPrincipalIdentity?.ToArray(); } catch { } + try { AllowWebPropertyBagUpdateWhenDenyAddAndCustomizePagesIsEnabled = tenant.AllowWebPropertyBagUpdateWhenDenyAddAndCustomizePagesIsEnabled; } catch { } } } }