Questions tagged [microsoft-graph]

Questions that relate to the Microsoft Graph developer platform.

Filter by
Sorted by
Tagged with
0
votes
0answers
8 views

Microsoft Graph API to check Active Directory member or group permission to a SharePoint site

I am looking for a Microsoft Graph API to find if there is an Active Directory group (not SP group) to which a user is a member that gives the user the appropriate rights to access a particular ...
3
votes
0answers
16 views

Microsoft Graph Call API Error - Application is not registered in our store

I am using Postman to run Microsoft Graph REST API for making outbound call similar to yours. I have followed steps as suggested in https://docs.microsoft.com/en-us/graph/auth-v2-service but still ...
0
votes
1answer
21 views

Issue with updating moderation status from rest api

I'm trying to update the moderation status of a sharepoint file through rest API. The rest API will be called from java code.I'm trying to update it using a HTTP patch request for graph api.I'm using ...
0
votes
0answers
9 views

getClient() undefined in SPFx React component [duplicate]

I am currently building an app that should send message from an SharePoint Framework app with React using Microsoft Graph. I have a problem with getClient method in my React component but not in the ...
0
votes
2answers
42 views

Problems with MSGraph POST in SPFx React

I am fairly new to MSGraph and I have a problem with the POST request. I am currently building an app in SharePoint Framework with React which should send a message to the typed email with subject and ...
0
votes
0answers
16 views

Converting Graph reference to SharePoint Online site into REST reference

My situation is that I have an MS Graph reference to a SharePoint Online site and I want to connect to the same site through REST api. I find that if I read the site definition through MS Graph it ...
1
vote
1answer
29 views

Pulled data using Microsoft graph

I never use Microsoft graph. I just want to query to just pull a selection of users by supervisor using Microsoft graph
2
votes
0answers
60 views

Create a document library in a sharepoint online site with python

I am trying to create a document library with a python script. I have tried doing it using Microsoft graph but I am having trouble doing with POST request and I didn't succeed. I also tried doing so ...
0
votes
0answers
20 views

How to display the image from an MS Graph-retrieved webUrl?

I would really appreciate any advice with this - I have a business requirement to retrieve images we store in SharePoint and display them on a Dynamics 365 form. For context I am using an HTML web ...
0
votes
0answers
43 views

Upload fail for DriveItems in Drive of SitePages List

Upload fail for all the DrivesItems in Drive associated with SitePage list in a sharepoint site. Graph API request: > UploadSession uploadSession = > GraphCLient.Sites[{SiteId}].Drives[{...
1
vote
0answers
99 views

How to get Sharepoint ListItem on DriveItem with Microsoft Graph API c#

The newly added DriveItem object returns the listItem field as null, which means that the relationship between DriveItem and ListItem offered by Graph Api cannot be used. I created new DriveItem: ...
0
votes
1answer
20 views

Getting HasUniqueRoleAssignments with the graph API

Is it possible to get HasUniqueRoleAssignments with Graph API or do you have to use the SharePoint REST API? I tried: https://graph.microsoft.com/v1.0/sites/XXX-7386-4E2B-9506-A66FB82EA48B/lists/XXXX-...
1
vote
0answers
16 views

How to get files under Document Set in Sharepoint using Graph Api [closed]

I have an document library in which we have document sets, i need get all the files under the document set using graph api.
0
votes
0answers
45 views

Get all items from SharePoint with delta API

I am trying to follow this article: https://docs.microsoft.com/en-us/onedrive/developer/rest-api/concepts/scan-guidance?view=odsp-graph-online The goal is to sync all files to a storage on a monthly ...
1
vote
1answer
262 views

XMLHttpRequest to login.microsoftonline.com Access-Control-Allow-Origin issue

I am trying to get token from https://login.microsoftonline.com it gives me error But If I use https://cors-anywhere.herokuapp.com/ its works but requirement is to call this function every 2 min from ...
0
votes
1answer
39 views

Create Folder in custom library using GraphServiceClient

I want create new folder in library. If I would like to create a folder in Shared Documents I can run this code: public async Task<string> CreateFolder(string title) { var driveItem = new ...
0
votes
2answers
85 views

Get items from list filtering by ids

I would like to get items from list filter by ids through Microsoft Graph Api. Something like items?$filter=fields/id eq '3' or '4' or '5'. I have to get many elements and I want limit requests. Is ...
1
vote
0answers
65 views

Provisioning Microsoft Teams from azure function via pnp powershell

I am provisioning Teams via PnP powershell and it requires -Scopes. The only way to get -Scope is through interactive log in. This further means (which i am thinking) is that you can not use "Apply-...
0
votes
0answers
21 views

Adding a List Item with Managed Metadata and Multiple Choice

I have been using the Microsoft Graph to do a lot of SharePoint stuff, but am finally stumped. I need to add a list item with both managed metadata and multiple choice columns. This does not seem to ...
0
votes
1answer
108 views

Get User Photo, Name &Title of an office 365 group using SPfx

I am trying get the user details i.e. UserName, Title and Profile picture of users that belong to a office 365 distribution group. I tried this code sample, but I get an undefined error: ...
0
votes
0answers
13 views

What are not supported in MS Graph API in terms of SharePoint CRUD operations with lists/libraries

I wanted to implement SPFx solution with MS Graph API. but I found some of the things which are as limitations right now to deal with SharePoint lists, libraries. If any knows about limitations could ...
0
votes
0answers
19 views

GraphAPI with SharePoint lists CRUD including attachments

I wanted to create SPFx solution with below scenario I want to give all users readonly access at site, lists level I want to create a SPFx webpart which will add data to the lists (includes adding ...
0
votes
0answers
119 views

Calling Graphi API from Classic JavaScript through msal.js

I am trying to do silent login through msal.js and then trying to call graph api but always I get 403 error. When I decrypt my access token through jwt.ms I can see that audience is correct but scopes ...
0
votes
1answer
48 views

SharePoint Online - reindex list

I would need to manually call re-index for a SP List in SP Online like once/twice a day. Is there any PowerShell/ MS Graph solution for this? This list is having a lot of items on it that are being ...
1
vote
1answer
18 views

Get Microsoft Graph AccessToken from SharePoint ContextToken in RER

I have registered Remote Event Receivers on my SharePoint list. I can receive remote events in my custom code. Is it possible to receive Microsoft Graph AccessToken from SharePoint ContextToken? I ...
0
votes
0answers
52 views

Connect to MS Graph from Sharepoint App (SP Hosted Addin)

I have a Sharepoint App (A standalone Sharepoint Hosted App, not to be confused with a SPFx web part) and I want to be able to make calls to MS Graph. I created a simple web page on local host (...
0
votes
0answers
13 views

Azure App unauthorised(ERROR401) to download file from shared links in Sharepoint

I am currently doing an integration which requires me to download files from shared links. Users can create share links to their files in SharePoint, and to download the file, I just need to add ...
0
votes
1answer
136 views

Microsoft Graph api user lookup

I have a user lookup field in SharePoint however the id given is the lookup id and not the userid. Where is the lookup id referencing? Looking at a link like this: Create list relationships by using ...
0
votes
0answers
44 views

How to use Graph API to read “Multiple lines of text” fields in SharePoint Online?

I use PowerShell to automate tons of tasks based on content maintained in SharePoint, on-prem. We are moving several sites to SharePoint Online and I need to update my scripts. I've chosen to use ...
0
votes
1answer
28 views

Is there any way to connect SharePoint online with Graph API using SharePoint Online Credentials?

I have a requirement like creating .net core console application to communicate with SharePoint Online Resources using Graph API. while surfing i found only Access token is using to ...
0
votes
1answer
40 views

Can you edit modern pages with the graph api

I am able to create and publish new modern pages in SharePoint Online using the graph api https://docs.microsoft.com/en-us/graph/api/sitepage-create?view=graph-rest-beta . However I can't seem to ...
0
votes
1answer
13 views

Query graph to enum news pages

I'm trying to enumerate pages of a communication site through Graph call. However, I don't see the page library in the results of this query : https://graph.microsoft.com/v1.0/sites/{siteid}/lists/ ...
0
votes
0answers
10 views

Microsoft Graph API in particular active directory OU

I can find all users with below graph api URL https://graph.microsoft.com/v1.0/users?$top=500 But it give response with all users of the organization, in which it come with certain service ...
0
votes
1answer
115 views

Return events of a calendar room by graph gets “DelegatedCalendarAccessDenied” erro

i am facing a problem when trie to get a room using graph api. I already had two rooms created on my exchange environment and the request works just fina when i search their events with the request ...
0
votes
1answer
65 views

Need help on building Sharepoint Global search Query URI

I am trying to search a file by passing a query text. When i am trying in a specific Site using https://graph.microsoft.com/v1.0/drives/b!l17-JY94D0CQp-2TBvsujaBLMUF2WrJHp5VylCDZThrZfpCdF-7uQ6MRp6t-...
2
votes
2answers
222 views

Should I use Microsoft Graph or CSOM when integrating .NET with O365?

I have an existing integration based on CSOM, which I need to move from one .NET solution to another. In the process, I was made aware that Microsoft now has a graph API. I've tried to research ...
0
votes
0answers
31 views

Reading the contents of a file in a Sharepoint group folder

I'm trying to read the contents of a file in a Sharepoint group folder using the Microsoft Graph Explorer, however the query I'm using doesn't seem to be working: https://graph.microsoft.com/v1.0/...
1
vote
1answer
33 views

Https issues for SharePoint

Currently I try to developed application by using SharePoint that retrieve data from List Now I try to developed for Login Function, The error display as Below The underlying connection was closed: ...
3
votes
1answer
246 views

PnPJS - MS Graph API - how to get group photo

I am using PnPJS for MS Graph API to retrieve groups information in SPFx solution. I am able to get the groups information properly. I need to get the group photo also, since photo is not available ...
0
votes
2answers
194 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
56 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
129 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
18 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 ...
1
vote
1answer
68 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
31 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
76 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
152 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
37 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 ...
1
vote
0answers
61 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
294 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 ...