public interface

MAMUserInfo

com.microsoft.intune.mam.policy.MAMUserInfo

Class Overview

Information about the managed user, if any.

Summary

Public Methods
abstract String getPrimaryUser()
Use of this method is discouraged for all apps.
abstract String getPrimaryUserOID()
Use of this method is discouraged for all apps.

Public Methods

public abstract String getPrimaryUser ()

Use of this method is discouraged for all apps. Prefer using MAMPolicyManager's getIsIdentityManaged/getIsIdentityOIDManaged. If you have scenarios for which this is insufficient, please contact the MAM team. This method will throw an UnsupportedOperationException if called when multiple managed identities is enabled.

Returns
  • the primary user's UPN (managed user) or null if there is no managed user.

public abstract String getPrimaryUserOID ()

Use of this method is discouraged for all apps. Prefer using MAMPolicyManager's getIsIdentityOIDManaged. If you have scenarios for which this is insufficient, please contact the MAM team. This method will throw an UnsupportedOperationException if called when multiple managed identities is enabled.

Returns
  • the primary user's AAD OID or null if there is no managed user.