Skip to content

Commit

Permalink
Adding to retrieval of current properties
Browse files Browse the repository at this point in the history
  • Loading branch information
KoenZomers committed Nov 4, 2024
1 parent c85f907 commit 5889523
Showing 1 changed file with 4 additions and 20 deletions.
24 changes: 4 additions & 20 deletions src/Commands/Model/SPOTenant.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -739,26 +740,8 @@ public SPOTenant(Tenant tenant, ClientContext clientContext)
{
}

try
{
AppBypassInformationBarriers = tenant.AppBypassInformationBarriers;
}
catch
{
}

try
{
if (tenant.DefaultODBMode != null)
{
DefaultOneDriveInformationBarrierMode = Enum.Parse<InformationBarriersMode>(tenant.DefaultODBMode);
}
}
catch
{
}


try { AppBypassInformationBarriers = tenant.AppBypassInformationBarriers; } catch { }
try { if (tenant.DefaultODBMode != null) DefaultOneDriveInformationBarrierMode = Enum.Parse<InformationBarriersMode>(tenant.DefaultODBMode); } catch { }
try { CoreSharingCapability = tenant.CoreSharingCapability; } catch { }
try { EnableVersionExpirationSetting = tenant.EnableVersionExpirationSetting; } catch { }
try { BlockUserInfoVisibilityInOneDrive = tenant.BlockUserInfoVisibilityInOneDrive; } catch { }
Expand Down Expand Up @@ -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 { }
}
}
}

0 comments on commit 5889523

Please sign in to comment.