Hello.
Set up Graph SDK for Android as per instructions.
Added SAML - user is authorized and token is present.
Code that calls API:
mClient.me().contacts().buildRequest().async
.thenAccept {
Log.d("TEST", "collection=$it")
}
.exceptionally {
Log.d("TEST", "error=${it.message}")
null
}
Logcat:
E/global: CoreHttpProvider[processResponse] - 493Graph service exception Error code: ErrorAccessDenied
E/global: CoreHttpProvider[processResponse] - 493Error message: Access is denied. Check credentials and try again.
E/global: CoreHttpProvider[processResponse] - 493
E/global: CoreHttpProvider[processResponse] - 493GET https://graph.microsoft.com/v1.0/me/contacts
E/global: CoreHttpProvider[processResponse] - 493SdkVersion : graph-java/v5.15.0
E/global: CoreHttpProvider[processResponse] - 493
E/global: CoreHttpProvider[processResponse] - 493
E/global: CoreHttpProvider[processResponse] - 493403 : Forbidden
E/global: CoreHttpProvider[processResponse] - 493[...]
E/global: CoreHttpProvider[processResponse] - 493
E/global: CoreHttpProvider[processResponse] - 493[Some information was truncated for brevity, enable debug logging for more details]
E/global: Throwable detail: com.microsoft.graph.http.GraphServiceException: Error code: ErrorAccessDenied
Error message: Access is denied. Check credentials and try again.
GET https://graph.microsoft.com/v1.0/me/contacts
SdkVersion : graph-java/v5.15.0
403 : Forbidden
[...]
[Some information was truncated for brevity, enable debug logging for more details]
Permissions for Application on Azure:

Thank you.










