<PackageReference Include="Microsoft.Identity.Client" Version="4.84.1-preview" />

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
public string AccountUserId { get; set; }

Local account id

public string AuthorityUrl { get; set; }

Authority URL

public string TenantId { get; set; }

Tenant ID of the App

public string Upn { get; set; }

UPN of the user

public IntuneAppProtectionPolicyRequiredException(string errorCode, string errorMessage)

Initializes a new instance of the exception class with a specified error code and error message.