Questions tagged [microsoft-graph-api]
Microsoft Graph is the gateway to data and intelligence in Microsoft 365. It provides a unified programmability model that you can use to access the tremendous amount of data in Microsoft 365, Windows 10, and Enterprise Mobility + Security.
10,848
questions
0
votes
0
answers
4
views
What's the best way to get all messages for all users?
After doing some reading through the docs it seems like if you wanted to read all messages for all users in a Microsoft Exchange Online tenancy you need to do something like:
Get all users
For each ...
0
votes
1
answer
19
views
Need to send an email via Microsoft Graph API with HTML and a Table in the body
I need to send HTML emails via Microsoft Graph API in Powershell, but I also need to have a table in the email body that is created from a CSV file. I'm able to send an HTML email, but no matter how I ...
1
vote
0
answers
13
views
Read Microsoft Teams channel messages (Microsoft graph API, C#)
Our organization need to read Microsoft teams messages from customers tenant, but we cannot do this without request access to Protected API, but this is not good for all customers to write the request ...
-1
votes
0
answers
7
views
Postman Getting 400 error for Sharepoint search graph API call debug through .NET API
enter image description here
sharepoint search api working fine with graph explorer but whenI implemented through .NET API application I'm getting the 400 BAD request error in POSTMAN , I'm using ...
0
votes
0
answers
13
views
MS Graph API returns 401
I am setting up an Azure function to send out emails using MS Graph API in python.
I have registered the app and have been granted the Mail.Send application permission.
My function for sending emails ...
0
votes
0
answers
13
views
Unable to Export All Channels Conversations from a Team using Graph-PowerShell
I'm using the below script to export channel conversations. It works fine per channel. But I want to be able to export all channel conversations in a Team. I tried using ForEach ($Channel in $Channels)...
0
votes
0
answers
14
views
Office365 graph task push notifications issue
We are using this graph API to create a subscription. For the task delete event we are not receiving any notification from Microsoft. We are receiving notifications for creating and updating the same ...
0
votes
1
answer
27
views
Error "invalid_grant" AADSTS65001 when trying to exchange access token
I am trying to get an access token by exchanging it using this https://login.microsoftonline.com/common/oauth2/v2.0/token
These are the parameters which are valid:
And when I add another permission ...
0
votes
1
answer
17
views
Azure AD Scopes with different audiences
I've adapted the Azure Mobile Apps example (https://github.com/Azure/azure-mobile-apps) and got it to work with the DataSyncClient (for offline sync). However I would like to reuse the token I get ...
0
votes
1
answer
17
views
Downloading Usage Reports From Graph API
As part of a C# application I'm working on, I need to include an option to download Teams usage reports for the last 7 days. I've written the following code to try and get the data from Graph:
...
0
votes
0
answers
9
views
Not able to add the bot to a channel through microsoft graph API
While adding the bot to a channel through microsoft graph API, getting the below error
"error": {
"code": "BadGateway",
"message": "...
-1
votes
0
answers
24
views
How to make a custom booking system with MS Agenda [closed]
I want to make a custom PHP booking system, but I want to use Microsoft Agenda to actually book appointments and let customers only pick dates where there isn't an appointment already.
Basically MS ...
3
votes
1
answer
17
views
Issue in migrating outlook task api (getAllTasks) to graph To-do task api
We are in the process of Migrating from Outlook APIs to Graph Microsoft APIs.
We are unable to migrate task API as we don't find any graph API documentation relating to getAllTasks.
Please help us to ...
0
votes
1
answer
29
views
Getting Failed to authenticate error on smtp when trying to send mail using swiftmailer with office 365 oauth2 accesstoken
I am trying to send mails using swiftmailer and office 365 which failed to authenticate. I have purchased an office 365 account, azure subscription. My environment is php.
Steps I did:
Created office ...
0
votes
1
answer
15
views
Endpoint ip range for login.microsoftonline.com and graph.microsoft.com
I got whìtelisted below URL to connect office 365 within my organization server but still cannot connect to office 365 using microsoft graph API. Later I found that login.microaoftonline.com unable to ...
0
votes
0
answers
15
views
How to refresh token for GraphServiceClient
I have the following code:
builder.Services.AddAuthentication(OpenIdConnectDefaults.AuthenticationScheme)
.AddMicrosoftIdentityWebApp(config.GetSection("AzureAd"))
....
0
votes
1
answer
25
views
MS-Excel Graph Api how to check if an excel sheet is empty
I have been using the get range api link(https://docs.microsoft.com/en-us/graph/api/range-get?view=graph-rest-1.0&tabs=http) to check if an excel sheet is empty. Below is the api
https://graph....
0
votes
1
answer
30
views
Microsoft Graph API - 401 Unauthorized While Creating Chat
I using the graph API v1.0 to create the one-to-One chat,but I found some account get 401 results.I check the Permission from the Api '/me/oauth2PermissionGrants',and I can find the 'Chat.Create' ...
0
votes
0
answers
11
views
MS graph Api limit access to specific onedrive folder
I have a node console program that should be able to upload a file to my OneDrive folder. I registered an application in Azure Portal but have a few queries:
Is it possible to restrict application ...
0
votes
0
answers
28
views
Sending mail using GraphServiceClient
I wrote a dll using .NET C# that was supposed to send emails using graph API.
When I'm using the dll from a console application - everything works as expected: if the user is logged in the mail is ...
0
votes
1
answer
25
views
How can I differentiate between an App Registration and Enterprise Application in Microsoft Graph API?
I'm wondering if there is a way to tell whether a given application retrieved via command Get-MgApplication is an App Registration or an Enterprise App.
0
votes
0
answers
20
views
Howto track teams online meeting start and end time?
I am using Graph API to create teams online meeting but I am unable to track the time when the meeting started and meeting ended. I need the start and end time of the meeting.
Below is the code for ...
0
votes
2
answers
49
views
Microsoft Graph - GraphServiceClient read email with another account
I need to read a certain email but a different account.
The first example works
string applicationClientID = "aaaaaaaaaaaaaaaaaaaa";
string directoryTenantID = "...
0
votes
1
answer
15
views
How to access Microsoft Graph API with a SharePoint App-Only registration
Is there a way to use the Bearer token provided by a SharePoint App-Only¹ registration, to get access for Microsoft Graph features² like Drive list, Excel Create TableRow³, etc?
I was able to get a ...
0
votes
0
answers
10
views
How to use MS graph api to access emails of private orphan group
How to use MS graph api to access emails of private orphan group.
Currently, using EWS we can access mails of group mailboxes. But for this, I need to connect to member user mailbox. And this entity ...
0
votes
0
answers
16
views
Graph API - can one retrieve MIME/EML for an Event?
I am creating Events using the Microsoft Graph API (actually using the C# SDK).
I would like to download the raw 'eml' of the invitation messages.
This seems trivial with Messages:
Download .eml file ...
0
votes
0
answers
20
views
MS Graph API 403 error when calling users even access is granted
I am generating access token by the following route in my node.js
https://login.microsoftonline.com/{tenant-id}/oauth2/v2.0/token
After that I get access_token but no scope parameter.
When i try to ...
0
votes
0
answers
31
views
Azure AD Custom Security Attributes & Dynamic Groups
I am attempting to build dynamic groups that would be populated by a rule checking customSecurityAttributes. I can add the attribute to a user, I can see the attribute in the GUI in Azure AD, but I am ...
0
votes
1
answer
30
views
MS Graph API message move - 415 unsupported media type
I have followed proper documentation and examples. Also other methods are working fine, but message move is not working properly. Please look at below and suggest what I should change:
PS C:\> $...
1
vote
0
answers
101
views
Explanation for error "Incoming request was redirected to the wrong geo! Current geo: EUDB, Target geo: EMEA" in Bot Framework Teams Bots?
Starting May 13th, 2022 around 3 PM UTC, we are seeing several of our previously functional Teams bots built on the bot framework failing to send messages to users.
The following error appears in the ...
0
votes
1
answer
23
views
How i cant iterate a json object in power apps without use power automate
I have a custom connector with microsoft graph api in my power apps and i have a request and a response with graph explorer, now my problem is they i can't iterate the object in my power apps table.
...
0
votes
0
answers
13
views
Can I call a custom function in an excel spreadsheet from the microsoft graph?
In the Microsoft graph REST API docs, it shows how to call a function from an excel sheet.
https://graph.microsoft.com/v1.0/me/drive/root:/book1.xlsx:/workbook/functions/pmt
content-type: Application/...
0
votes
0
answers
26
views
Trying to create team with owner using principal name, gives error "Failed to find users with user principal name" but user is owner of 365 account
Request URL
https://graph.microsoft.com/v1.0/teams
Request Body
{
"template@odata.bind": "https://graph.microsoft.com/v1.0/teamsTemplates('standard')",
"displayName&...
0
votes
1
answer
51
views
How to filter Microsoft Graph API JSON response using Power Query language?
My request is
GET https://graph.microsoft.com/v1.0/applications?$select=appRoles
Because of this I have a problem in PowerApps, I can't show the objects.
0
votes
0
answers
17
views
How can i get all Sharepoint folders using Graph API?
Currently I am creating a site in Sharepoint and associating it with Teams and then when i access the Sharepoint folders I call.
https://graph.microsoft.com/v1.0/me/joinedteams
or can i access ...
0
votes
1
answer
26
views
Microsoft OAuth parsing state parameter as string, but return a hash
I'm using the Microsoft identity platform and OAuth 2.0 authorization code flow to authorize user information from Microsoft Azure. In my Ruby code I parse the state parameter to microsoft:
config....
-1
votes
0
answers
21
views
Online Meetings GET calls do not contain all data anymore
We have been using the graph API /onlineMeetings get calls to retrieve the meeting data successfully for the past few months. Unfortunately, since about two days, we now get incomplete information ...
0
votes
0
answers
23
views
Is there any way to get delta of child group members in a group using Microsoft Graph delta APIs?
I'm using Groups delta API provided by Microsoft Graph API to track changes in the members of my group as follows:
https://graph.microsoft.com/v1.0/groups/delta?$select=id, mail, members&$filter=...
0
votes
1
answer
37
views
Azure active directory assign roles to users within groups
I am making an application where users can join multiple azure groups. This works fine. But a user should be able to have a role only within that specific group. So a user can have different roles in ...
0
votes
0
answers
16
views
Problem in creating HyperlinkOrPicture columns in SharePoint using the Graph API
I am building an application consisting of Azure functions, working with the Graph API. A part of the code is creating columns in a SharePoint document library, just like described in the sample here:
...
1
vote
1
answer
18
views
Getting passwordPolicies as null always in Microsoft graph API 1.0
I'm Using Microsoft Graph API Version 1.0
I need to fetch the password expiry time configured in the Azure Active Directory for users using the graph API.
I'm used the https://developer.microsoft.com/...
0
votes
0
answers
23
views
Everytime I change my Microsoft Teams Tab's code the content of the tab does not change
I am making a teams channel tab and everytime I update the code, the content loaded in the tab stays the same. I tried deleting the app and installing it again, rebuilding the manifest, nothing works.
...
0
votes
1
answer
53
views
How to get all guest users count in M365 groups with Microsoft graph api
I tried to get all guest users count in all M365 groups in single Microsoft graph api call I have written below query for that.
https://graph.microsoft.com/v1.0/users?$expand=memberOf($filter=...
-1
votes
0
answers
24
views
will app registration in azure allow my app to access data in users power BI accounts?
I'm creating a Flask + Angular web application that needs to get user permission to access data (reports and dashboards) in Microsoft power BI by granting me an access token (Maybe..), so I was ...
0
votes
0
answers
30
views
Using microsoft graph api to send email from a react application - 401 error
I have a react application that grants access to a user's outlook account. The azure app has delegated permissions for Mail.Send, Mail.ReadWrite and User.Read and when I go through the authorization ...
0
votes
1
answer
21
views
How to tell the difference between a SP Online drive and a Teams channel-drive?
Using the MSFT Graph API, is there a way to differentiate Drives (which are documentLibraries) that are used for Team-Channels versus those that are "simply" documentLibraries created WRT a ...
0
votes
1
answer
22
views
Python MSAL REST Graph: is it possible to get all files in folder, not just 200, in one request?
I need to delete all files from a OneDrive folder. When I issue a request like the one shown under # Listing children(all files and folders) within General here, I only get 200 items, which seems to ...
0
votes
1
answer
40
views
0 Byte file when uploading an Excel document to SharePoint online using the Microsoft Graph API
I am attempting to upload an Excel document created using the NPOI library to a SharePoint Online site using the Microsoft Graph API.
When I write the Excel file to my local machines user directory, I'...
1
vote
1
answer
29
views
Cannot get installed apps for user | Microsoft Graph API
My application should retrieve all installed apps for every user in the AAD.
According to this docs the application permissions are:
TeamsAppInstallation.ReadForUser.All,
TeamsAppInstallation....
0
votes
1
answer
14
views
PackageReference Aliases are ignored on parent projects
Actually I'm trying to use the two libraries Microsoft.Graph and Microsoft.Graph.Beta in parallel within my solution.
To get this to work, you can use aliases within references. For this purpose you ...