Skip to content

The operation failed because the Intune MAM SDK failed received a nil value for the user\'s account UPN. #59

Description

@redPanda0147

I am getting error while adding upn to intune sdk.

IntuneMAMEnrollmentManager.instance().registerAndEnrollAccount(upn)

print(status.statusCode.rawValue)
207

print(status.didSucceed)
false

print(status.errorString)
The operation failed because the Intune MAM SDK failed received a nil value for the user's account UPN.

print((status.error as? NSError)?.localizedDescription)
Invalid identity. Could not find AAD object id for account: xxxxxxx@xxxxxxx.onmicrosoft.com

print("userInfo: ", (status.error as? NSError)?.userInfo)
["NSLocalizedDescription": Invalid identity. Could not find AAD object id for account: xxxxxxx@xxxxxxx.onmicrosoft.com]

MOST IMPORTANT
One user is able to enroll but all the other user is not able to enroll themself.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions