From 189e5c85317d1c82981380c9bc5fd67c549a9cbd Mon Sep 17 00:00:00 2001 From: Gautam Sheth Date: Fri, 18 Sep 2020 12:37:41 +0530 Subject: [PATCH] Added support for DisableCustomAppAuthentication property --- Commands/Admin/SetTenant.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Commands/Admin/SetTenant.cs b/Commands/Admin/SetTenant.cs index 20d0edebe..851fd3574 100644 --- a/Commands/Admin/SetTenant.cs +++ b/Commands/Admin/SetTenant.cs @@ -405,6 +405,8 @@ The only two characters that can be managed at this time are the # and % charact [Parameter(Mandatory = false, HelpMessage = "Boolean indicating if Azure Information Protection (AIP) should be enabled on the tenant. For more information, see https://docs.microsoft.com/microsoft-365/compliance/sensitivity-labels-sharepoint-onedrive-files#use-powershell-to-enable-support-for-sensitivity-labels")] public bool? EnableAIPIntegration; + + public bool? DisableCustomAppAuthentication; protected override void ExecuteCmdlet() { @@ -972,6 +974,11 @@ protected override void ExecuteCmdlet() Tenant.EnableAIPIntegration = EnableAIPIntegration.Value; isDirty = true; } + if (DisableCustomAppAuthentication.HasValue) + { + Tenant.DisableCustomAppAuthentication = DisableCustomAppAuthentication.Value; + isDirty = true; + } if (isDirty) { ClientContext.ExecuteQueryRetry();