Microsoft Graph 401 Unauthorized with access token
问题 Unable to get data from the the Microsoft Graph API. private String getUserNamesFromGraph() throws Exception { String bearerToken = "Bearer "+getAccessToken(); String url = "https://graph.microsoft.com/v1.0/users"; String returnData = null; try { URL apiURL = new URL(url); URLConnection con = apiURL.openConnection(); con.setRequestProperty("Authorization", bearerToken); con.setRequestProperty("Content-Type", "application/json"); BufferedReader in = new BufferedReader(new InputStreamReader(con