Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

Commit

Permalink
Added support for DisableCustomAppAuthentication property
Browse files Browse the repository at this point in the history
  • Loading branch information
gautamdsheth committed Sep 18, 2020
1 parent 19b7998 commit 189e5c8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Commands/Admin/SetTenant.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 189e5c8

Please sign in to comment.