microsoft-graph-api

Microsoft Graph API OrganizationFromTenantGuidNotFound using MSAL

亡梦爱人 提交于 2020-07-20 16:47:05
问题 In AAD App registration has Implicit Grant Flow to true; We have delegated permissions to User.Read and User.Read.All. private static getContext(): Msal.UserAgentApplication { if (AuthenticationService.Context) return AuthenticationService.Context; const logger = new Msal.Logger((_logLevel, message, _piiEnabled) => { console.log(message); }, { level: Msal.LogLevel.Verbose, correlationId: "12345" }); AuthenticationService.Context = new Msal.UserAgentApplication( Environment().authentication

Hybrid environments, 404 with on-premise mailboxes, 200 for Exchange online

这一生的挚爱 提交于 2020-07-20 10:37:55
问题 I've written an application which is able to talk to Exchange Online accounts, I'm currently trying to test to see the steps required to get it to work with on-premise accounts running in Hybrid. I have: Windows Server 2012 R2 Exchange 2016 CU8 (with /PrepareAD run) Internet accessible paths to /api/v2.0 and /autodiscover/autodiscover.json Run the HCW AD Connect is running Active Directory is synced to Azure Active Directory Permissions look good on the application that I have registered

Hybrid environments, 404 with on-premise mailboxes, 200 for Exchange online

百般思念 提交于 2020-07-20 10:37:07
问题 I've written an application which is able to talk to Exchange Online accounts, I'm currently trying to test to see the steps required to get it to work with on-premise accounts running in Hybrid. I have: Windows Server 2012 R2 Exchange 2016 CU8 (with /PrepareAD run) Internet accessible paths to /api/v2.0 and /autodiscover/autodiscover.json Run the HCW AD Connect is running Active Directory is synced to Azure Active Directory Permissions look good on the application that I have registered

Support for beta APIs in msgraph-sdk-java

纵饮孤独 提交于 2020-07-20 03:36:33
问题 We are trying to access channels API of a team, which is in beta. API - https://graph.microsoft.com/beta/teams/{team-id}/channels and it seems that there is no support for beta API's from msgraph-sdk-java. Can someone confim whether this support is given yet or msgraph-sdk-java just supports v1.0 API's? Sample working API for v1.0 is as follows: IGraphServiceClient .groups() .buildRequest() .get() .getCurrentPage() ... // Handle failure case }); 回答1: To access the beta endpoint, you can

Is there a way to create a (Excel workbook) File using Microsoft Graph API, but not by uploading

我的梦境 提交于 2020-07-19 18:46:25
问题 I want to do something like https://graph.microsoft.com/v1.0/me/drive/items/workbook/add or similar which will create a new workbook identical to what the New -> Workbook menu does in the OneDrive Web interface. I can't create the file locally so upload is not an option. 回答1: The Microsoft Graph APIs only allow reading and modifying workbooks that already exist at this time. I realize that your question stated you were not able to create the file locally. However, a library like js-xlsx has

How to retrieve another user's MS Teams chats with the Microsoft Graph API?

孤街浪徒 提交于 2020-07-19 04:11:46
问题 As a global administrator I'm attempting to retrieve the list of MS Teams chats for a different user, however no matter which id I pass to GET /beta/users/{id}/chats the response is always the list of chats for the authenticated user. How do you get the list of chats for a different user? The API documentation (https://docs.microsoft.com/en-us/graph/api/chat-list?view=graph-rest-beta&tabs=http) suggests that I should be able to call GET /beta/me/chats to retrieve the list of my chats and GET

How to retrieve another user's MS Teams chats with the Microsoft Graph API?

一笑奈何 提交于 2020-07-19 04:11:26
问题 As a global administrator I'm attempting to retrieve the list of MS Teams chats for a different user, however no matter which id I pass to GET /beta/users/{id}/chats the response is always the list of chats for the authenticated user. How do you get the list of chats for a different user? The API documentation (https://docs.microsoft.com/en-us/graph/api/chat-list?view=graph-rest-beta&tabs=http) suggests that I should be able to call GET /beta/me/chats to retrieve the list of my chats and GET

How to open Android Outlook application from an external one

痞子三分冷 提交于 2020-07-18 05:27:17
问题 I'm currently developing an Android application in order to display home screen widgets. Those ones are related to Microsoft Outlook (Events + Messages) in order to show incoming events and unread new messages in a kind of dynamic tiles. The Msal graph library helps me a lot to authenticate and retrieve in formations which contains an identifier for each event / message results But now I want to know if the outlook application is installed on the user device and if there is a way to open

How to open Android Outlook application from an external one

可紊 提交于 2020-07-18 05:25:59
问题 I'm currently developing an Android application in order to display home screen widgets. Those ones are related to Microsoft Outlook (Events + Messages) in order to show incoming events and unread new messages in a kind of dynamic tiles. The Msal graph library helps me a lot to authenticate and retrieve in formations which contains an identifier for each event / message results But now I want to know if the outlook application is installed on the user device and if there is a way to open

Display blob image in react native (Expo)

本秂侑毒 提交于 2020-07-10 09:22:42
问题 I have the following fetch function in my react native project to return a blob image from MS Graph, the return works but i cannot seem to display the blob as an image. //Blob Picture fetch('https://graph.microsoft.com/v1.0/me/photo/$value', { headers: { 'Authorization': "Bearer " + accessToken }, }) .then((response) => { // console.log(response); this.setState({ BlobImage: response}); }) .catch((error) => { console.error(error); }); Then i wish to display the image like so: <Image source={