Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [microsoft-graph]

Questions that relate to the Microsoft Graph developer platform.

1
vote
1answer
45 views

Get “lastModifiedDateTime” with MS Graph or REST

I want to extract the "lastModifiedDateTime" from a list. I don't want to search the list by ID, but rather from its name. I know you can do it by MS graph, but the examples needs site ID as well as ...
2
votes
1answer
46 views

spfx context undefined

in my react component i use msgraph but i get the message "cannot read property 'context' of undefined" My code: this.context.msGraphClientFactory .getClient() .then((client: ...
1
vote
1answer
29 views

How to get Site Owner Via Graph

I'm attempting to get site owners via graph. Documentation indicates this should be possible via /sites/{site-id} via /sites/{site-id}. I'm using beta. The problem is I'm not even getting a blank ...
2
votes
1answer
22 views

Extract sub site logo with MS Graph (or any other way)

I need to extract sub sites logo and show it in a list. This is something I thought could be made with MS Graph, but in MS explorer I can't find the picture element. Only site ID, members, etc. ...
0
votes
0answers
24 views

How to create a new SharePoint add-in for Office Store (so no SPFX) that can use using Graph API

I am trying to develop a new SharePoint add-in (SharePoint hosted), that needs to use JavaScript to connect to Microsoft Graph API. Since it is use for Office Store, it should not use SharePoint ...
1
vote
0answers
24 views

microsoft graph api: ability to find the attachment link of a list item

is it possible to get the link of the attachment that is attached to a list item? there is a attachment field but that only gives if there is an attachment or not. It does not give the url of the ...
1
vote
1answer
51 views

sharepoint graph api filtering based on a list column value

my query https://graph.microsoft.com/beta/sites/mytenant.sharepoint.com:/sites/mysite:/lists/OEC_Docs?select=id,name,lastModifiedDateTime&expand=items(expand=fields(select=Title,Attachments,...
0
votes
0answers
25 views

microsoft graph api for sharepoint to access list item attachment web url [duplicate]

i am using ms graph beta APIS to access sharepoint online. The current GET to get a list with its list items is like below https://graph.microsoft.com/beta/sites/mytenant.sharepoint.com:/sites/mysite:...
0
votes
0answers
17 views

microsoft graph api for sharepoint list takes a long time to return new data

i am creating a new list item like: const httpOptions = { headers: new HttpHeaders({ 'Content-Type': 'application/json' ,'Authorization' : "Bearer " + token }) ...
1
vote
1answer
68 views

microsoft graph api for share point to get attachment

I made a call like https://graph.microsoft.com/beta/sites/4development106.sharepoint.com:/sites/DBSchenker:/lists/OEC_Docs?select=id,name,lastModifiedDateTime&expand=items(expand=fields(select=...
1
vote
0answers
17 views

Microsoft Graph call requesting Company Administrator

In the context of automating A-AD invitations via a dedicated Azure hosted web application, one of our calls is making the call below to the Graph API (leveraging Microsoft.Graph & Microsoft.Graph....
0
votes
1answer
51 views

spfx MSGraphClientt

I need to write a webpart, which shows data from the MS Graph. I wrote this example code import { Version } from '@microsoft/sp-core-library'; import { BaseClientSideWebPart, ...
0
votes
1answer
76 views

Use @odata.nextLink from Ms graph Api

I'm using the following code const users: MSGraphClient = this.context.serviceScope.consume(MSGraphClient.serviceKey); users .api("/users") .select("displayName,mobilePhone,mail,photo,department,...
0
votes
0answers
34 views

Microsoft Graph API for Trending Documents throwing 500 internal server error

We have been using the Graph API to fetch the data for trending documents with the following query - https://graph.microsoft.com/v1.0/me/insights/trending. To fetch the data of each documents author ...
3
votes
2answers
62 views

SPFx: Can you use WebPartContext in components different than the main one?

I am trying to call Microsoft Graph from a component, different than the main one. As a first step I am declaring a variable for the MSGraphClient's serviceKey like this: const graphClient: ...
0
votes
2answers
55 views

How to retrieve LinkingUri of a file in Sharepoint using Graph API

I have been able to use the Graph API to query the list of items in a Sharepoint Item https://graph.microsoft.com/v1.0/sites/root/lists/d7689e2b-941a-4cd3-bb24-55cddee54294/items However I would ...
1
vote
1answer
68 views

Add multiple members to Office 365 groups

Currently I am able to add member to the Office 365 groups using the following Graph API. POST https://graph.microsoft.com/v1.0/groups/{id}/members/$ref Content-type: application/json Content-length: ...
2
votes
1answer
47 views

Populate User/People field in CSOM using Azure AD user ID

Ok so i've got access to MS Graph app that retrieves users. I already tested it and i can get back a lot of user info from which i have email, ID and others. Does anyone know of a way to populate a ...
0
votes
1answer
116 views

Expand Multiple Lookup field whit Microsoft Graph

How can I Expand a Multiple Lookup field whit Microsoft Graph. I need to get all fields from a multiple lookup field. Thanks.
1
vote
0answers
107 views

Search for documents in SharePoint via Graph API

Is it possible to query for documents in SharePoint via Graph API? The query should consider the document names or the complete document content (fulltext query). I could not found any search ...
0
votes
0answers
20 views

Get members of a Distribution List using REST?

I tried using Graph API/Explorer and was able to get all the members of a distribution list but I could not figure out how I could use this within SharePoint Designer to populate a field with the DL's ...
2
votes
2answers
206 views

Frequent sites on SharePoint Online Home Page

Is there a way I can have "Frequent sites" on my website? Is this a webpart or SpFx component that I can add to any of my existing site? I would like below into my own site page. Digging bit more I ...
4
votes
1answer
436 views

How can I get the office 365 group id for a modern site I've just provisioned?

I'm provisioning SPO sites based on a request workflow. One of the requirements is to add the workflow author to the O365 group which is provisioned automatically when the site is created. I'm using ...
2
votes
2answers
430 views

How to avoid credential popup, to connect with graph API in the powershell script?

I have written graph API to fetch user detail from the Sharepoint Online Connect-PnPOnline -Url $SPSiteURL -Credentials $PnPSPOCreds -Scopes "Group.Read.All", "User.Read.All" $apiUrl = "https://graph....
0
votes
1answer
138 views

Where can I find a list of working Microsoft Graph endpoints for Sharepoint Online?

Where can I find a list of working REST API endpoints for Sharepoint Online? To my understanding, once things changed from 'Beta' to 'v1.0', it negated a lot of things including the '/_api/' path. ...
0
votes
0answers
26 views

How to filter lookup Field using lookup value instead of lookup id using Graph API [duplicate]

Is there any way to filter lookup field using lookup value instead of lookup id using graph API
0
votes
1answer
45 views

Which “recently used documents” API should I use?

I need to get the recently used documents of the user, focus being on SharePoint and OneDrive documents and the Microsoft Graph. There are two potential endpoints: https://developer.microsoft.com/en-...
0
votes
1answer
211 views

Where is the “Service Principal Permissions Management Page”?

I'm prototyping a new web part using MSGraphClient and the new webApiPermissionRequests section in the package-solution.json. When deploying the SharePoint Framework Client Side solution to the app ...
1
vote
2answers
285 views

How to filter listitems with user name or email when using Graph Api?

When I query graph API with URL like https://graph.microsoft.com/v1.0/sites/{site-id}/lists/{list-id}/items?expand=fields it returns data like "@odata.context": "https://graph.microsoft.com/v1.0/$...
1
vote
1answer
356 views

How to create SharePoint list item with Microsoft Graph API?

I am trying to create list items with Microsoft Graph API to a SharePoint endpoint. My URL is as follows: https://graph.microsoft.com/v1.0/sites/{id}.sharepoint.com:/sites/{name of the site}:/lists/{...
0
votes
0answers
23 views

SharePoint Online Flow - Access required Graph API data elements

I have created a basic SharePoint Online flow that looks like this; TRIGGER - When a file is created (properties only) - configured against a specific folder CONDITION - When the file has a given ...
1
vote
0answers
123 views

Creating MS Planner Plan using Graph fails (403 error)

I am trying to create an MS Planner Plan, using a Post call to MS Graph, as described under https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/planner_post_plans The sequence I ...
0
votes
1answer
51 views

Azure AD + Graph API + Sharepoint

I am not able to get the list of all sites from sharepoint by using app id and key from azure app registration and using the graph api https://graph.microsoft.com/v1.0/sites?search=* It just returns ...
0
votes
0answers
28 views

Error accessing “Office365ActivationsUserDetail” endpoints in MS Graph - Unknown Tenant

When accessing "Office365ActivationsUserDetail" endpoints in MS Graph (in a trial account), I am getting "We do not recognize this tenant ID" error. All other endpoints are working fine. API Calls - ...
1
vote
1answer
257 views

SharePoint Rest API : Recent SharePoint Sites

I am currently using the following endpoints to access user specific sites (followed, frequent and suggested) /_vti_bin/homeapi.ashx/sites/followed /_vti_bin/homeapi.ashx/sites/recent /_vti_bin/...
0
votes
1answer
40 views

Batching MSGraph: how to use data from previous requests in JSON

I would like to make three consequential POST requests using MS Graph: (1. Create an Office 365 group; 2. Add the requester as a member of the group; 3. Create an MS Planner Plan, and set the Group ...
2
votes
2answers
445 views

How to make a POST call to Microsoft Graph in SPFx (using MSGraphClient)?

I have difficulties to find code samples of POST calls, using the MSGraphClient. The only one I find is using the already deprecated graphHTTPClient ( https://docs.microsoft.com/en-us/sharepoint/dev/...
0
votes
1answer
65 views

Azure app is asking for authentication all the time

I have created azure app with by taking reference from MS Samples. When i run this sample it is working fine. I have created new solution with by refering some of the points in this solution. When I ...
0
votes
0answers
26 views

How to get the Office 365 group picture along with group properties

I am able to retrieve all the required properties for all the group. To get the group image I have created another method. I am calling this method inside above all groups loop. Of course I am getting ...
2
votes
1answer
923 views

How to do Microsoft Graph API Filter on Lookup Column in SharePoint List Items?

I am tried to apply Filter on Lookup column using Microsoft graph API filter. But it didn't filter. I have used below api to filter. https://graph.microsoft.com/v1.0/sites/{sites}/lists/{listname}/...
3
votes
0answers
177 views

Accessing Graph API from a SharePoint web part without an additional authentication

I am creating a webpart for SharePoint Online which accesse the user's calendar through the Microsoft Graph API. In order to get the access_token, my webpart needs to open a new browser window where ...
1
vote
0answers
146 views

Should I trust X-SharePointHealthScore to predict a rate limit at Microsoft Graph API? [closed]

I want to execute all my requests concurrently and configure a synchronizer that will reduce the frequency of concurrent requests before it could exceed a rate limit at Microsoft Graph API. The ...
1
vote
1answer
298 views

How could I get all root level sites (excluding sub site) using Microsoft Graph API?

I could get all site (including root level site as well as sub site) by using the following url : https://graph.microsoft.com/v1.0/sites?search=* Is there a better way to get all the root level sites ...
0
votes
1answer
89 views

How could I get items present inside Site Asset of a Team Site?

Through the following url : https://graph.microsoft.com/v1.0/sites/{siteId}/drives I could get all user created document libraries and Documents (a system created document library), but I could not ...
0
votes
0answers
130 views

GraphAPI ADAL authentication and direct SharePoint URLs

We have some jquery code using GraphAPI through an AAD registered App to access a SharePoint Online library. We are able to load file names into an html dropdown select and trying to display spo ...
2
votes
0answers
100 views

How to access a file given the absolute url of a SharePoint document via Microsoft Graph

Is there any way to access a file given the absolute url of a SharePoint document via Graph (or rest)? For example, how would I download a file with the absolute url "https://microsoft.sharepoint.com/...
0
votes
0answers
95 views

How to get favorite office 365 groups using MS Graph

We can list of methods in MS Developer Documents for MS Graph API. This is too good. But I didn't find any method saying getFavorite groups or something similar to this. When I can my groups from the ...
4
votes
2answers
970 views

Microsoft Graph API - SharePoint List Items not returning

I have created several lists in SharePoint Online within a subsite each of which have a number of rows of data and I am now trying to access this list and it's row data (items) via the Graph API. I ...
0
votes
0answers
34 views

Login to Azure AD for graph API within SharePoint

I'm trying to query the graph api from within SharePoint. I'm using MSAL to authenticate against the azure AD, but I'm already logged into SharePoint - why do I have to that again? In other words, is ...
1
vote
1answer
171 views

How to get the onedrive files that were Shared with me using JSOM or REST or in SPFx

Is there any api available in REST or JSOM to bring the shared documents to me in SharePoint using SPFx framework. I came to know that we can get details with Graph API. But I am more interested in ...