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.

0
votes
1answer
9 views

MSGraph with spfx WebPart does not propt user for permission

I am expermimenting with people in MSGraph. I am attempting the "/me/people" graph call and getting a 403 forbidden. The People.Read permission states it does not need Admin Consent. People ...
0
votes
0answers
17 views

List people picker graph

I am pulling a list via the graph api. I would like to be able to filter on a people picker field. However I do I use the lookup field id to equate to a user/member i.e the id 18 person joe blogs.
0
votes
0answers
12 views

Graph lookup column id filter

I am using graph and I can filter using the lookup column id. The field is set from a people picker. Just wondering how don I work out the column id value and it's corresponding value. I.e id is 18 ...
2
votes
1answer
37 views

MSGraph Permissions

I am trying to allow an app to get a user's manager. According to the documentation I need User.Read.All permission: So in my SPFx, I added the request: "webApiPermissionRequests": [ { "...
0
votes
1answer
32 views

Calling MS Graph API: An error as soon as declaring the MSGraphClient

I have imported the MSGraphClient in my project using the following statement: import { MSGraphClient } from '@microsoft/sp-client-preview'; I have also added those two import statements, as I will ...
0
votes
2answers
49 views

Microsoft Graph API for SharePoint Online App Registration

I have some confusion after reading Microsoft Docs for App registration for Microsoft Graph API. I will explain you my tenant structure We have E5 Account Tenant is conditional MFA enable. That ...
0
votes
1answer
42 views

Itemanalytics api throws error - the expression is not valid

I am working in SharePoint Online. I want to get modern page view count. I am searching for this on google and I fount this link. In that if you scroll in the end of page, you will see that says ...
2
votes
0answers
30 views

MS Graph API - Problems on SPO Mobile-App

The Background: I am developing Sharepoint Online Webparts on-demand. Sometimes the functionality of these Webparts include the use of Microsoft's "Graph-API" to access Data regarding Office 365 ...
1
vote
1answer
63 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
179 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
49 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
23 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
30 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
60 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
198 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,...
1
vote
1answer
156 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
23 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
55 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
131 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,...
3
votes
2answers
96 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
75 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
107 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
58 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
165 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
194 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
28 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
317 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
633 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
665 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
165 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
47 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
321 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
387 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
435 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
32 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
161 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
58 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
36 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
318 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
47 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
527 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
81 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
27 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
1k 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
191 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
175 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
350 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
136 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
136 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 ...