Interface MAMUserInfo

  • All Implemented Interfaces:

    
    public interface MAMUserInfo
    
                        

    Information about the managed user, if any.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract String getPrimaryUser() Use of this method is discouraged for all apps.
      abstract String getPrimaryUserOID() Use of this method is discouraged for all apps.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • getPrimaryUser

        @Nullable() 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.

      • getPrimaryUserOID

        @Nullable() 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.