microsoftconnect / ms-intune-app-sdk-android

Intune App SDK for Android enables data protection features and mobile app management via Microsoft Intune
41 stars 17 forks source link

NOT_LICENSED Error After SignIn Using registerAccountForMAM #228

Open AmitShilo4 opened 2 months ago

AmitShilo4 commented 2 months ago

Summary

I am experiencing a "NOT_LICENSED" error when attempting to integrate the Microsoft Intune App SDK into my Android application. This occurs after successfully signing in with a Microsoft account and calling registerAccountForMAM.

Details

Intune Android App SDK Version: 10.2.1 Gradle Version: 17.0.9 AGP Version: 7.4.2 Operating System (Mac, Linux, Windows) and Version: macOS 14.4 (23E214) Android Studio Version: Android Studio Iguana | 2023.2.1 Patch 2 - Build #AI-232.10300.40.2321.11668458, built on April 4, 2024

Logs

APP_LOG-Google-Pixel-6a-Android-14_2024-04-16_174048.txt

Additional Information

Through my research and troubleshooting, I've found potential causes related to:

mukeshk-ms commented 2 months ago

Can you check the following please -

  1. user has license for Intune as mentioned in the doc
  2. Your app has relevant permission for Intune
mukeshk-ms commented 2 months ago

@AmitShilo4 did you get a chance to look at above recommendation ?

amitshilo11 commented 2 months ago
  1. Yes, the user has a license for Intune. I am able to connect and enroll on the iOS SDK with the same user.
  2. Yes have the permission you maintained, you can see the img below: image

i still get NOT_LICENSED status, what else can i do?

Saileek5594 commented 4 weeks ago

@AmitShilo4 @mukeshk-ms @msintuneappsdk Even I am facing the same issue and still not able to figure out what's going wrong. (As said above, its working with iOS SDK with same user!)

Can any one please look into this?

Saileek5594 commented 2 weeks ago

@amitshilo11 did you get any fix for the above issue?