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
12 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
22 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
13 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
17 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
27 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
21 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
65 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
33 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
17 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
38 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
67 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
16 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
61 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
47 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
84 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
50 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
49 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
70 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
299 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
91 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
30 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
37 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
109 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
363 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
212 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
58 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
179 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
124 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
96 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
168 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
84 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
220 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
282 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
32 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
372 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
893 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
942 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
192 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
29 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
49 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
487 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
475 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
486 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
36 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
179 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
62 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
50 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
380 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/...