Hi i have written a java application using the Azure ARM Rest API where in it first creates token using the TenantID,ClientID,Username,Password and then gets all the subscription for that account and we try to monitor the same. The issue is when i try this with owner account details it works fine but with reader account it says
java.util.concurrent.ExecutionException: com.microsoft.aad.adal4j.AuthenticationException: {"error_description":"AADSTS65001: The user or administrator has not consented to use the application with ID '979aca5c-0be5-4727-aa08-07b3f59deb07'. Send an interactive authorization request for this user and resource.\r\nTrace ID: 92315ce1-58df-4024-a571-d255d9254900\r\nCorrelation ID: 35f1870a-c994-47c0-a53f-b709272a9cac\r\nTimestamp: 2017-06-28 10:12:50Z","error":"invalid_grant"}
While generating token.