About 5135 results found
question
Sruthi-1846 asked Givary-MSFT edited

Graph API GET /v1.0/users returns 401

i am using graph api call to get the user info of our organisation. it returns 401 error code. we are using microsoft.identity.client that uses msal library. can you please help me in understanding why is it returning 401 http response?

0 Votes

1Answer

0 Comments

question
AgrouAbdelkrime-0375 asked AgrouAbdelkrime-0375 commented

Grant_type=client_credentials doesn't work for exchange 2016 on premise (error 401 Unauthorized)

hello, grant_type=client_credentials doesn't work for exchange 2016 on premise, for exchange online works perfect but for on promise i got 401 error 401 unauthorized unknownerror. https://graph.microsoft.com/v1.0/users/xxxx@xxx.com/calendar could you please help to solve this issue?

0 Votes

1Answer

0 Comments

question
MariyaSonina-1215 asked MariyaSonina-1215 commented

New access token stops working with 401 status code for URL: https://graph.windows.net

ut if i get the new token 5 minutes or less before the first one expires, the new token will only work until the expiration of the first one and plus 5 minutes after it. if i understand correctly, the token is created with a scope for a separate application and this token is used for requests to the web api based on spring boot. this spring boot uses a token to get a list of user groups from the azure graph api and now, 5 minutes after the expiration, the api graph starts responding with a 401 error. interaction with graph api occurs without the participation of the frontend side. i thought i found the solution by adding “offline_access” permition in the graph settings so that a user without authorization can get a new token. it started working better, but sometimes i have the same problem randomly and i can't figure out why it's happening. and the worst thing is that when i get such a situation, nothing helps even a re-log until the new token expires. server error which i get:

0 Votes

1Answer

0 Comments

question
JacobMathews-8592 asked bgervin edited

Microsoft graph Error : 401 client error

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?

0 Votes

0Answers

2 Comments

question
Shogo-5932 asked CRISTIANHERNANDEZ-5116 edited

Graph API "List places" give 401 error

describe the bug graph api "list places" give 401 error to reploduce in order to reproduce ,i executed the http request described in the following link with graph explorer. https://docs.microsoft.com/en-us/graph/api/place-list?

This question has an accepted answer. Accepted

0 Votes

4Answers

0 Comments

question
Steffen-0727 asked Steffen-0727 commented

Listing business central companies results in 401 unathorized

(with no body) the response is 401 unauthorized, with json body: {"error":{"code":"authentication_invalidcredentials","message":"the server has rejected the client credentials. correlationid: 1c60c7bc-8b89-4a14-bc6e-3926cde7b261."

0 Votes

0Answers

2 Comments

question
BB-2396 asked BB-2396 answered

Access to calendar - 401 with message: Unauthorized or 403 with message: Forbidden

hi, i have created a application on azure ad. with a sample daemon-application i've got the users list. i'm trying to get access to users calendar but getting 401 with message: unauthorized or 403 with message: forbidden api url: 1. https://graph.microsoft.com/v1.0/me/calendars 2. https://graph.microsoft.com/v1.0/me/events?

0 Votes

2Answers

0 Comments

question
KhajamiyaPutnala-6163 asked KhajamiyaPutnala-6163 commented

Graph API - On-Prem Exchange read user calendar fails with 401 Unauthorised

we are having hybrid exchange setup. we are trying to read the user calendar using the microsoft graph api and when trying to fetch the user calendar of an on-prem exchange, graph api returning a 401 unauthorised error. the same works fine with an exchange online user calendar. the application has all necessary permissions (calendars. read, calendars.readwrite). we are able to fetch on-prem user calendar by login into microsoft graph explorer (https://developer.microsoft.com/en-us/graph/graph-explorer) ,but the same not working if we are using graph api. please help us with the resolution.

0 Votes

1Answer

4 Comments

question
KuoIan-7987 asked KuoIan-7987 edited

Send chatMessage in channel endpoint returns 401 Unauthorized even though the token is valid

the send chatmessage in channel endpoint returns 401 unauthorized even though the token is valid. in addition, list chats has the same issue. send chatmessage in channel api ref: https://docs.microsoft.com/en-us/graph/api/channel-post-messages?

0 Votes

4Answers

0 Comments

question
JonathanSHrang-1557 asked bgervin edited

Graph explore saying Unauthorized 401 for eDiscovery

i login using my work email and i'm trying to access my company ediscovery but not sure why i'm getting unathorized- 401. it also said approval required and i already submit approval request but not sure who in my organization can give me the permission. ][1]

0 Votes

1Answer

0 Comments

question
ian-2771 asked ZehuiYaoMSFT-7151 commented

Msgraph Client request hangs or returns 401 error after obtianing token and send request

i'm trying to make a basic authentication flow that logs the user in and make an http request to the microsoft graph api. i have obtained the token from the msal library helper functions, and granted the right permissions for my application on admin console in azure active directory, but i always see the 401 error "missing valid authentication token" upon making an http request to the graph api, like "/me/onenote/notebook" here's my code: const express = require("express"); const msal = require('@azure/msal-node'); const graph = require('@microsoft/microsoft-graph-client'); require('isomorphic-fetch'); require('dotenv').config(); const session = require('express-session') const server_port = process.env.port || 3000; const redirect_uri = process.env.oauth_redirect_uri; // create express app and routes const app = express(); app.use(session({ secret:'sec-key', resave: false, saveuninitialized: false, unset: 'destroy' })); // before running the sample, you will need to replace the

0 Votes

0Answers

4 Comments

question
NareshKumarVemula-7947 asked KaelYao-MSFT edited

Fail to fetch OAuth access token, status code: 401

ews request failed - ews call has failed - fail to fetch oauth access token, status code: 401 unable to integrate office365 calendar free/busy with google workspace. error..

0 Votes

0Answers

1 Comment

question
AgrouAbdelkrime-0375 asked MindaugasV-4116 commented

Graph Api can't reach on-premise exchange server on hybrid environment (Cloud user OK) Error 401 Unauthorized

hello, we have created an app on azure and we provided the required permission to read and write users' calendars, but this work only for online users, for on-premise users it doesn't work, we receive the error 401 unauthorized unknownerror, in the iis logs for on-premise exchange, we didn't found any logs related to autodiscover.json or /api request, like the graph api could not read users information to reach the on-premise server even we provide all permission in app registration. could you please help?

0 Votes

1Answer

0 Comments

question
HKG-7714 asked HKG-7714 commented

unable to make api call to azure registered app with invoke-webrequest - remote server returned an error 401

i have been using the following code to make graph api call on azure registered app. it was working for awhile but it stopped working all of a sudden couple days ago. the error was "the remote server returned an error: ( 401) unauthorized". i don't think there was any change and the script is pretty simple. i used the same parameters on postman and it works fine for me. so i am not sure what is happening and are hoping someone can help with this. thank you. obtain access token $tenantid = "my-tenant-id" $clientid = "my-client-id" $clientsecret = "my-client-secret" $requestaccesstokenuri = "https://login.microsoftonline.com/$tenantid/oauth2/token" $body = @{ client_id = $clientid scope = 'https://graph.microsoft.com/.default' client_secret = $clientsecret grant_type = 'client_credentials' } $params = @{ uri = $requestaccesstokenuri method = 'post' body = $body contenttype = 'application/x-www-form-urlencoded' } $response = invoke-webrequest @params -usebasicparsing | convertfrom-j

This question has an accepted answer. Accepted

0 Votes

1Answer

0 Comments

question
NCSDDeveloper asked Zoehui-MSFT commented

Report Builder 401 Unauthorized Error

hello, i've looked online for answers to this question, but it's been difficult to find a related question/answer. i've recently installed windows 10 pro and have updated to the "2004" version. i've also recently installed report builder version 15.0.19210.0. when i open report builder and try to connect to a remote report server, i get the following error message: "the request failed with http status 401: unauthorized." i have even tried adding my username/password credentials for the remote report server to the windows credential manager under the windows credentials section at the advice of someone from a nearby work organization. i've double-checked the internet address for the remote report server and my username/password credentials. still, i get the 401 unauthorized error from earlier when i try to connect to the remote report server. is there something more i need to do in order to connect to the remote report server?

This question has an accepted answer. Accepted

0 Votes

2Answers

0 Comments

Refine Your Search

Of Types