Newest 'microsoft-graph' Questions - Stack Overflow

Questions tagged [microsoft-graph]

Microsoft Graph exposes multiple APIs from Microsoft cloud services through a single REST API endpoint (https://graph.microsoft.com).

0
votes
0answers
9 views

does 'microsoft bookings api' in 'microsoft graph' support 'Resource Owner Credentials Grant' access token?

I'm going to consume bookings api to get bookingBusiness list for one specific user account which: a. account is confirmed a office 365 business premium licence user b. account is able to call ...
0
votes
1answer
10 views

HTTP 400 for graph /sites endpoint - Error authenticating with resource

I'm getting an HTTP 400 on a request for https://graph.microsoft.com/v1.0/sites?search=* but expected response is an HTTP 200 w/ data. It works successfully in multiple client environments (i.e. 100s ...
0
votes
1answer
12 views

How to send an email message in a specific conversation

The use case is programmatically sending a follow-up email to a recipient in the same conversation / thread using the Microsoft Graph API instead of creating a new email in a new conversation (similar ...
0
votes
1answer
15 views

Serve files securely from OneDrive account to webapp users via Graph API

We have a single OneDrive account with many files in it which we would like to share via a UI on our web application to our users, securely. These files are private and should not be accessed by any ...
0
votes
0answers
12 views

Microsoft Graph: NextLink…what about previous link?

Microsoft graph will provide you with “@odata.nextLink”. How can I get the “previousLink”. ?
0
votes
0answers
19 views

How to set resource URL for GraphServiceClient to fetch Groups?

I am trying to fetch AD groups from the Graph API using the groups:src1 endpoint value that I receive from _claims_sources in the JWT access token. My client is using Client Credentials and can fetch ...
0
votes
0answers
9 views

InternalServerError when accessing image/sticker and code snippet urls in chat messages returned from Graph Api

I received "InternalServerError" when accessing an image/sticker/code-snippet link in a chat message return from Microsoft Graph Api. I received the following chat message from Graph Api (not all ...
0
votes
1answer
12 views

Programatically create read-only calendar item for user

I have the following business requirement: An automated process needs to create calendar items in multiple end user's O365 calendars These calendar items have to be read-only for these users They ...
0
votes
2answers
23 views

Trying to get a list of Teams a user has ownership

Trying to get a list of Teams a specific user has ownership with Graph api. Any assistance is much appreciated. This command will provide a list of teams but you need to get the group id first: ...
1
vote
1answer
28 views

How do I fix BadRequest error “Unable to read JSON request payload” when creating a OneDrive folder?

I am creating a dialog in Google Sheets that generates and uploads a report to OneDrive. The user may need to create a folder in OneDrive through the dialog. However, when making the API request, I am ...
0
votes
1answer
24 views

Access Denied [Failure - Status Code 403]

I'm trying to do a query - https://graph.microsoft.com/v1.0/users/user.name@contoso.com/messages?$select=from,toRecipients,ccRecipients,bccRecipients on GRAPH Explorer - https://developer.microsoft....
2
votes
1answer
51 views

Authorization_RequestDenied getting Group Members

I am using the GraphServiceClient in my code to access multiple endpoints for data. I have a GraphServiceClient (with delegated permissions) with the following scope: Group.Read.All. I also have a ...
0
votes
0answers
11 views

How to get Microsoft graph access token from java spring

I tried to get graph api token from postman UI and was able to get planner data. How to achieve same in java spring I am not able to get access token for Microsoft graph api using java spring. I am ...
-1
votes
0answers
10 views

Follow individual Channels through Graph API

I have 10 channels within a TEAM and would like to follow only 5 Teams. How can I do this using Microsoft Graph API? Please let me know specific endpoint details.
0
votes
1answer
17 views

QueryOptions ignored when getting calendar events in MSGraph Dot Net

I'm trying to get the user's calendar events for today. So I added some query parameters but they're getting ignored and the graph client returns the user's events as if I didn't supply any parameters ...
0
votes
0answers
9 views

Apply seetings to a microsoft Teams through flow

I created a flow that is trigger when an element of a sharepoint list is created or updated, during this flow I create a private group, a teams and the last part is to disable the guest access. ...
1
vote
0answers
24 views

Webhook Subscription for AzureAd groups and Users not working

I have created a webhook subscription for Users and Groups by making a POST call to https://graph.microsoft.com/v1.0/subscriptions with the following as payload: { "changeType": "updated,deleted", ...
1
vote
1answer
36 views

How do I get all Teams in MS Graph C#?

I have created a Team in the group successfully, now I need to cycle through the Teams so I can get their names and IDs. I have tried the following code but without any success. ...
0
votes
1answer
14 views

What Logic Shall i Adopt If i have a requirement to Read an office 365 email item and then respond on top of the same email chain

GraphAPI Requirements: Read Email. Reply to same email chain Problem Statement: I am not able to post a reply on top of the same email chain. When I do so, a new email is sent. But my requirement ...
0
votes
1answer
23 views

“BadRequest” error while using SendMail request of Microsoft Graph API

I am writing a python script to send a mail using the Microsoft Graph API. The mail is sent to only those IDs which exists in our AAD. I wrote the code: from adal import AuthenticationContext import ...
0
votes
1answer
23 views

Invalid Request creating a subscription with @microsoft/microsoft-graph-client

I am using this javascript tutorial, and I have an error when executing the following code: const options = { authProvider, }; const client = Client.init(options); const subscription = { ...
0
votes
0answers
58 views

Microsoft Graph get sharepoint sites analytics not working

I tried to query the analytics of a SharePoint site using Microsoft Graph from Microsoft Flow. Before I do this, I tried this in Graph Explorer. The following url is used. https://graph.microsoft....
0
votes
1answer
42 views

Blocking admin user sign-in using Microsoft Graph

I am writing a Powershell script, which is leveraging the Microsoft Graph using an App Registration. The script is getting a list of admins within our tenancy and it's checking to see if they have ...
1
vote
0answers
34 views

Getting “Property 'openWith' on type 'oneDrive.item' is not a navigation property.” when trying to access workbook api

My code was working just the day before. As I was trying to work on the progress yesterday. The application was try to createSession, and it was this error. "code": "generalException", "message": "...
0
votes
1answer
30 views

How to upload existing file in text/doc format using driveitem object microsoft graph API in asp.net MVC

I am creating a web application and I want to upload the existing file from my drive to onedrive folder which I have created pro-grammatically. I have followed the upload example from the link, but I ...
-1
votes
1answer
28 views

SharePoint Column Types

I'm requesting SharePoint Columns using MS Graph and need to understand the type of each column. Unfortunately, not all column types are support in Microsoft Graph. For example, Hyperlink or Picture (...
0
votes
1answer
44 views

How to implement microsoft oauth in a react app that uses hash router

I am trying to implement microsoft oauth button in react that redirects/pop up allows the user to sign into their microsoft account then use the info to get the access token to then send to graph api ...
0
votes
1answer
43 views

Group members - orderby

I'm trying to list the group members and sort them by displayName. This URL throws an error: string.Format("https://graph.microsoft.com/v1.0/groups/{0}/members?$orderby=displayName", groupId); {...
1
vote
1answer
27 views

Microsoft Graph only returning the first 100 Users

I have the below code which returns all users based on a filter. The problem is it only returns 100 users but I know there are a lot more. private List<User> GetUsersFromGraph() { if (...
0
votes
0answers
15 views

How to convert an Office365 user mailbox to a shared mailbox using Microsoft Graph's C#.NET sdk?

I am working on a system for automatically setting up and managing user accounts in my company. Right now I am trying to find a way to automatically convert a user's mailbox to a shared mailbox and ...
1
vote
0answers
34 views

Microsoft Graph findMeetingTimes - 401 UnknownError

I have registered an application in Azure Active Directory to call findMeetingTimes from Microsoft Graph. I am able to successfully authorize, get a token, and make other Graph API calls, but receive ...
0
votes
2answers
26 views

How to configure Azure AD permissions to access Microsoft Graph from the WebJob console app (using ADAL)?

I cannot access Microsoft Graph using ADAL inside of WebJob (basically console app). I'm getting "Insufficient privileges to complete the operation" error when I try to fetch users from AD. I'm ...
2
votes
0answers
26 views

How to set primary SMTP address with Graph API?

I've some issues with the Graph API. I create a user (userPrincipalName = 001XX1234@domain.com), assign a licence, but i'm not able to add an alias or set the primary SMTP address. Tried to use ...
0
votes
1answer
11 views

How to get a single file that has been shared with me on OneDrive?

I'm building an app that uses the ms-graph v1.0 API to write data to excelsheets in my OneDrive. It works with excel files that I uploaded to my drive but doesn't work with excel files that've been ...
-1
votes
0answers
28 views

Get events for a delegated meeting room

I want to get the events from a delegated meeting room by using that room's email address. I used the Microsoft Graph SDK for Android and the following code segment but it does not provide the events ...
0
votes
1answer
27 views

No Manager when Executing `Me.Request().Expand(“Manager”).GetAsync()`

I get a null response for me.Manager when I run the following code: var me = await graphServiceClient.Me.Request().Expand("Manager").GetAsync(); But using the Graph Explorer, the following does give ...
2
votes
2answers
32 views

Cannot read full user profiles MS Graph while having the needed scopes

I am using the GraphServiceClient in my code to access multiple endpoints for data. I have a service account who logs in with Azure AD, with the following scopes: Group.Read.All, User.Read.All, Mail....
1
vote
1answer
33 views

Mail.ReadBasic equivalent Application scope

I'm trying to access email metadata via Microsoft Graph without access to the content of the emails. From the documentation, I've noticed there is a Mail.ReadBasic permission that might help but this ...
0
votes
1answer
22 views

How to get Office 365 calendar event by time and location using Graph API?

When I create a new event for a location, I need to check whether that location is busy and if it is, I need to send an email to existing event's creator that their event is going to be double booked. ...
-1
votes
2answers
28 views

Accessing shared OneDrive files via Microsoft Graph?

I have a corporate account set up with OneDrive. I have a "dummy" (proxy?) account set up that has no OneDrive of its own. (I intentionally want this account to have very little privilege - it is ...
1
vote
0answers
20 views

Android application for booking meeting rooms via Micrsoft Exchange

The bottom line is, the company uses Exhange for booking. What library can I use to create an application for booking meeting rooms? The company does not have a license for Office 365, only Exchange. ...
2
votes
1answer
43 views

Microsoft Graph Explorer returning empty businessPhones for Users

Is there a special permission necessary to read the businessPhones of a User? Calling https://graph.microsoft.com/v1.0/users/myuseridaud@mydomain.com/ works just fine from when I use the Microsoft ...
0
votes
1answer
23 views

Accessing all data in API response

I'm currently using the SDK to retrieve details on a group. Looking at the Group model, there are quite a few methods to display data. When I print_r() the group, it returns a Group object with a ...
-1
votes
0answers
29 views

Archive the MS Teams using graph API

On base of the MS article, i have created a powershell to archive the team. The API works well when we do not add request body and the same is failing if I add the request body. Could you please help ...
0
votes
1answer
16 views

Remove User from Directory Role using Graph API

I am trying to add and remove users from a directory role (Guest Inviter) based on a user's ID. My client ID has Directory.AccessAsUserAll for the Microsoft Graph application. I am using the ID for ...
0
votes
0answers
18 views

Print Excel table in XML/Jason using graph endpoint

(new to js and graph api) I am trying to print an Excel table on my html page using graph api. The excel file is saved on onedrive and it has a table (Table1). the ednpoint looks like this: https:/...
0
votes
0answers
8 views

How to update the .IPA file behind an Intune app through Microsoft Graph

I'm looking to update an Intune mobile app entirely through the Microsoft Graph API. I found a Create mobileAppContentFile endpoint at the link below. https://docs.microsoft.com/en-us/graph/api/...
0
votes
0answers
15 views

LastModifiedDate i get back from createEvent endpoint doesn't match the events LastModifiedDate

I'm setting up a planning module that syncs with Microsoft Outlook using Microsoft Graph. When i create an event i save the LastModifiedDate in my database. Later i call my resync button which has to ...
0
votes
0answers
8 views

Using MSGraph API to get OneDrive Business file info including the latest version id

I'm calling the get item API to get a file's info. In addition I would like to get its latest version's id. I can do that by issuing two requests: GET /me/drive/items/{item id} - for getting the file'...
0
votes
0answers
9 views

Odata “filter” query returns wrong results

I'm running the following Microsoft Graph API call to exclude entries with managementAgent of type eas. My query seems to do the exact opposite. Query: https://graph.microsoft.com/v1.0/...