Interface MAMUserInfo
-
- All Implemented Interfaces:
public interface MAMUserInfoInformation about the managed user, if any.
-
-
Method Summary
Modifier and Type Method Description abstract StringgetPrimaryUser()Use of this method is discouraged for all apps. abstract StringgetPrimaryUserOID()Use of this method is discouraged for all apps. -
-
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.
-
-
-
-