Stack Exchange Network

Stack Exchange network consists of 175 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
0answers
10 views

Does the Microsoft Graph support driveItem change notifications for SharePoint Online?

In the documentation Use the Microsoft Graph API to get change notifications, it says: Using the Microsoft Graph API, an app can subscribe to changes on the following resources: ... ...
0
votes
1answer
18 views

SharePoint App Graph calls not working

I've built a spfx webpart that creates a list item in a list by using the following const client = await this.props.context.msGraphClientFactory.getClient(); await client ...
0
votes
0answers
14 views

Trying to get a File from OneDrive as PDF causes CORS error on redirect

I'm trying to get the content of a file as a pdf from Onedrive, however when getting the File via MSGraphClient, it just returns an error in the browser. MSGraphClient call:client.api(`/me/drive/...
0
votes
0answers
13 views

Microsoft Graph limit “Maximum size supported for each extension is : 2 KB” when sending long GUIDs

I use Microsoft Graph to store news tags (term store) that the user is following. However, when the user selects more tags than a certain amount the following will be shown: "Maximum size supported ...
0
votes
0answers
11 views

Expertise from Delve via Graph API

We're migrating our current intranet employee profiles to Sharepoint / Delve and so far a lot of it seems very promising and the Graph API is great. However there is one field in the Delve UI that I ...
0
votes
0answers
14 views

CSOM or Microsoft Graph check if list/library can be deleted

Is it possible to check if a list/library can be deleted? Is there a property that is used in the UI for this? In SharePoint Online custom lists/document libraries can be deleted The default ...
0
votes
0answers
25 views

MSGraphClient post request

I am trying to do a post request via graph in a webpart - it keeps returning either fetch failed or 403. Can anyone please point in either a sample post request or how to fix Ive confirmed via graph ...
0
votes
0answers
38 views

Acess SharePoint using Microsoft Graph SDK for Java without an access token

I am trying to connect my Java application to SharePoint. I am able to connect to it via Apache HttpClient using only UserName, Password and Site url without the need to register my app in AAD or any ...
1
vote
1answer
17 views

Is there a Webhook for Modern Comments in SharePoint Online?

Does anyone know if there are webhooks for the Modern SharePoint Online comments we can subscribe to? We could not find anything useful yet and I suspect these webhooks don't exist, but I want to ...
0
votes
0answers
27 views

Get Azure Active Directory Group Principal Id

Is there any way to get Active Directory group Principal Id through Graph API or SharePoint Online REST API. I want to use that principal id in SharePoint workflow to add permission to the list item
0
votes
1answer
49 views

SPFx web part: wait for fetching data before rendering header

I already asked this question regarding SPFx extensions. But now I have the same problem I had in that question, but for a SPFx Web part. I use the exact same _getUserInformation() method as ...
0
votes
0answers
41 views

Microsoft Graph/Sharepoint API search

The Graph API isn't well documented about a few things, and so I was wondering if anyone had some insight, or direct answers to the following problem: Background I am attempting to create a RESTful ...
0
votes
0answers
12 views

What is the difference between onedrive for business and onedrive pesonal

I'm currently working on a project using Microsoft Graph API. What is the difference between Personal OneDrive and OneDrive for Business?. I notice that PowerPoint online on Personal account can open ...
0
votes
1answer
110 views

SPFx Extension: wait for fetching data before rendering header

I am currently developing a SPFx Extension (Application Customizer). I am relatively new to TypeScript (C# developer) and I can't find my error. I have the following onInit method: @override ...
0
votes
0answers
41 views

List recently access documents

I am trying to develop a web part the lists the logged on users recently accessed documents, as per the home page of www.office.com, and the recent documents tab. I originally thought this ...
0
votes
0answers
19 views

Call other users onedrive recent files from Microsoft Graph?

I want to develop a customized interface like delve. I am trying to call data using microsoft graph. I am able to get all recent flies for me but unable to get for others onedrive, even using SPFX app....
0
votes
1answer
67 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
72 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
20 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
85 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
58 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
127 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
53 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
1answer
63 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
74 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
389 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
145 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
35 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
38 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
156 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
512 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
280 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
24 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
60 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
214 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
155 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
121 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
225 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
103 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
281 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
322 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
36 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 ...
3
votes
2answers
435 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 ...
5
votes
2answers
1k 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 ...
3
votes
3answers
1k 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
207 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
32 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
51 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
624 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
542 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/$...