<PackageReference Include="Microsoft.Identity.Client" Version="4.87.0" />

Microsoft.Identity.Client.IntuneAppProtectionPolicyRequiredException

This exception is thrown when Intune requires app protection policy. The information in this exception can be used by app to obtain the required enrollment ID from Mobile App Management (MAM) SDK. See https://aka.ms/msal-net-trueMAM
namespace Microsoft.Identity.Client { public class IntuneAppProtectionPolicyRequiredException : MsalServiceException { public string Upn { get; set; } public string AccountUserId { get; set; } public string TenantId { get; set; } public string AuthorityUrl { get; set; } public IntuneAppProtectionPolicyRequiredException(string errorCode, string errorMessage); } }