Microsoft graph Error : 401 client error

Jacob Mathews 1 Reputation point
2021-03-18T11:42:04.8+00:00

Dear Team, We are not able to get logs from Microsoft Graph. The following are the logs for your reference. ##----------------## 03/18/2021 11:26:49 AM INFO: AZURE Azure Graph starting. 03/18/2021 11:26:49 AM INFO: AZURE Graph: Getting authentication token. 03/18/2021 11:26:49 AM DEBUG: AZURE Starting new HTTPS connection (1): login.microsoftonline.com:443 03/18/2021 11:26:49 AM DEBUG: AZURE https://login.microsoftonline.com:443 "POST /xxxx.onmicrosoft.com/oauth2/token?api-version=1.0 HTTP/1.1" 200 1482 03/18/2021 11:26:49 AM INFO: AZURE Graph: Getting data. 03/18/2021 11:26:49 AM INFO: AZURE Graph: The search starts from the date: 2021-03-16T11:26:49.1615894009Z for query: 'activities/audit?api-version=beta' 03/18/2021 11:26:49 AM DEBUG: AZURE Starting new HTTPS connection (1): graph.windows.net:443 03/18/2021 11:26:50 AM DEBUG: AZURE https://graph.windows.net:443 "GET /xxxxx.onmicrosoft.com/activities/audit?api-version=beta&$filter=activityDate+ge+2021-03-16T11:26:49.1615894009Z HTTP/1.1" 401 168 03/18/2021 11:26:50 AM INFO: AZURE Graph: Request status: 401 03/18/2021 11:26:50 AM ERROR: AZURE Error: The request for the query could not be made: '401 Client Error: Unauthorized for url: https://graph.windows.net/xxxx.onmicrosoft.com/activities/audit?api-version=beta&$filter=activityDate+ge+2021-03-16T11:26:49.1615894009Z'. 03/18/2021 11:26:50 AM INFO: AZURE Graph: End ##---------------## The error received is 401 client error: Unauthorized for url Can somebody help me with error details and solution.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,723 questions
{count} votes