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: [email protected]
print("userInfo: ", (status.error as? NSError)?.userInfo)
["NSLocalizedDescription": Invalid identity. Could not find AAD object id for account: [email protected]]
MOST IMPORTANT
One user is able to enroll but all the other user is not able to enroll themself.