Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [microsoft-graph]

Questions that relate to the Microsoft Graph developer platform.

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

Downloading a file shared via Onedrive using SharePoint API

I have a file stored & shared with me using SharePoint. The link of the file is as follows: https://<org-name>-my.sharepoint.com/:x:/r/personal/<email>/_layouts/15/Doc.aspx Is it ...
Prathamesh Katkar's user avatar
0 votes
0 answers
6 views

graph shares root api can not return more than 200 items

I try to fetch all items in a shared SharePoint folder. Currently I am using: "https://graph.microsoft.com/v1.0/shares/u!{folder}=/root?expand=children" Response: "children": [] //...
Daniel Ehrhardt's user avatar
0 votes
0 answers
37 views

How can I upload file in SharePoint Document Library using Graph API in C#?

I have done app registration in Azure Portal and i have a tenantId, ClientId and clientSecret. I want to upload file using Microsoft.Graph SDK in C#. How can it be possible?
Ashish Prajapati's user avatar
0 votes
0 answers
22 views

How to display viva engage communities a user belongs to in SharePoint Online

I'm looking for a way to display viva engage communities a user belongs to in SharePoint Online. I know I can see that via MS Teams.But the OTTB viva engage web parts in SharePoint doesn't provide the ...
naijacoder's user avatar
  • 4,282
0 votes
0 answers
12 views

Duplicate Check based on Hashes

I'm interested in esablishing a duplicate check for files within Sharepoint. Sharepoint provides Hashes for Files as part of the driveItem-Facete Example: https://graph.microsoft.com/v1.0/drives/[...
TheShadow's user avatar
  • 101
0 votes
0 answers
4 views

Sort Parameter affects amount hits returned by MS Graph Search API

The MS Graph Search API provides not all Hits if a sorting Parameter is set: { "requests":[ { "trimDuplicates":true, "sortProperties":[ { ...
TheShadow's user avatar
  • 101
0 votes
1 answer
9 views

Programatically Change Folder Content Type JAVA

I need to Programatically be able to change the content type of the folders in a SharePoint Online Site. I have Java Program that needs to run and detect if a folder has the correct Content Type and ...
rread's user avatar
  • 11
0 votes
0 answers
16 views

Graph Search Query by SiteId

I am trying to do a graph search query that bring the last 20 items updated from a specific site ordered by the lastModifiedDateTime, and if possible also filtered by a custom field that they should ...
rread's user avatar
  • 11
0 votes
1 answer
95 views

SPFx - Use MSGraphClientV3 - How to authenticate

I want to create first time a WebPart for SharePoint Online, where I need to use the MSGraphClientV3. I'm struggeling around with the authenication. I know the articles https://learn.microsoft.com/en-...
dns_nx's user avatar
  • 181
1 vote
1 answer
127 views

Cannot change the "Created By" column in a SharePoint list item using Graph API

I'm trying to programmatically change the "Created By" -field of a list item in a SharePoint list. As a development tool, I'm using the Microsoft Graph API python library - msgraph-sdk for ...
Jussi Hietanen's user avatar
0 votes
1 answer
62 views

In a graph search query, is it possible to retrieve per each listItem, their parent name?

I make a POST query to /search Graph API, with the following body: { "requests": [ { "entityTypes": [ "listItem" ], "...
caneta's user avatar
  • 103
0 votes
0 answers
3 views

Auto add meeting app to all meetings in tenant

I have a Teams meeting app that can be added to Teams meetings. I need to ensure that the app is installed as soon as the event is created throughout the tenant in any user's calendar. Is there any ...
Nitin Khubani's user avatar
0 votes
0 answers
25 views

Graph query: is it possible to retrieve a RefinableStrings or Set of terms starting from a list column name?

As stated in the question title, if I have a column in a SharePoint list named "Category", and associated it to a Refinable String, let's say RefinableString03, is it possible to retrieve ...
caneta's user avatar
  • 103
0 votes
0 answers
21 views

Delta API returning empty array upon deletion of a list item

I am implementing the ability to watch for deleted list items (E.g. a site page within SharePoint). My approach is the following: I subscribe to change notifications for the list. Here's what my ...
Bartek's user avatar
  • 101
0 votes
0 answers
50 views

How to generate Azure app token using client id and client secret using SPFx with react.js (webpart)?

I am trying to generate the azure app token using client id and client secret. Please find my below code: const formData = new FormData(); formData.append("grant_type ", "...
Alien 'D' mars's user avatar
0 votes
1 answer
793 views

Filter SharePoint list item by ID using Microsoft Graph Api

How to filter SharePoint list item by ID using Microsoft Graph Api using C#?
user109360's user avatar
0 votes
1 answer
35 views

How to obtain permissions, via MS Graph API, for a Communication Sites & its pages?

I have a Communications Site with pages, and I am trying to understand if I can obtain the Sharepoint identities via the MS Graph API. My understanding is that a Communication Site is not represented ...
Bartek's user avatar
  • 101
0 votes
0 answers
45 views

Graph API for Sharepoint site viewed or accessed

I need to keep track of the SharePoint site that is viewed or accessed by anyone. I have tried some graph API's https://graph.microsoft.com/v1.0/sites/site-id/drives/drive-id/items('item-id')/...
Disha's user avatar
  • 1
1 vote
1 answer
393 views

Can i get content OR download file by GUID?

I want to get content OR download file by GUID. I can work when use APIs below to get ServerRelativeUrl and use which to download file. But I must call three API: https://your-site/_api/web/lists/...
Hàn Vũ's user avatar
0 votes
1 answer
421 views

Attempted to perform an unauthorized operation - Get List items API - Postman

I have just created an App in Azure Portal by following this Article. I have followed the following Steps: Registered App in Azure AD Get the Client ID and Secret from the Registered App Created API ...
Alina Anjum's user avatar
0 votes
1 answer
167 views

How to set app-only permissions to a list with Graph?

In the GUI I can give an app access to a specific list via the /_layouts/15/appinv.aspx How do I do this with Graph API or the SharePoint REST API? I did some research, but so far I only found ...
vilmarci's user avatar
  • 916
0 votes
0 answers
75 views

Intermittent Unauthorized Additional claims required errors when calling /user/chats endpoint

I am experiencing intermittent errors when querying the graph api endpoint for teams chat. I am using powershell and delegated access. Here is a code snippet: $tenantId = "my_tenant_id" $...
Andrew Gaskell's user avatar
0 votes
0 answers
39 views

Group delta response with 'select member' returns null for members

I am trying to sync members of a 365 Group but in the delta query I am getting null value in members. I am following the guide from Microsoft here. To quote from that guide: "..such as when users ...
Sigmundur's user avatar
  • 115
0 votes
0 answers
34 views

Querying, analyzing, and displaying data from external API in SharePoint

I am a new SharePoint developer and I am tasked with displaying trends in data from Zendesk in SharePoint. I have been reading the Microsoft documentations and from what I have been reading the ...
Gnome-Improvement713's user avatar
0 votes
2 answers
68 views

Give another user access to a site via its Microsoft 365 Group using Graph API

I am adding users to a Site in SharePoint by getting the Microsoft-365-Group behind the Site and adding the users as members of that Microsoft-365-Group. I use the method described here. However, it ...
Sigmundur's user avatar
  • 115
0 votes
0 answers
169 views

MS graph - List all the subsites in multi geo tenant via API

I am trying to list down all the sites in the multi geo tenant. I can able to list down only NAM PDL records via Graph API. I can't able to list down other PDL sites. I tried following endpoints and ...
Samraj's user avatar
  • 11
1 vote
1 answer
99 views

While I fetch site pages(.aspx) on sub sites using graph.microsoft.com/beta/sites/{subsite-id}/page it returns empty value

I have a question: Why get site pages(.aspx) on sub sites using graph.microsoft.com/beta/sites/{subsite-id}/page return value is empty, While I used with graph.microsoft.com/beta/sites/{site-id} can ...
Hàn Vũ's user avatar
0 votes
0 answers
85 views

In a Delta query, CreatedBy is sometimes null and sometimes not null but missing User property

I am tracking changes to files and folders using delta query with Graph API version 5.12 (not beta). In order to reflect the changes in our system we rely on the CreatedBy property. The problem is ...
Sigmundur's user avatar
  • 115
0 votes
1 answer
887 views

How to add @odata.nextLink in graph api request

I've a service to get all users from Azure AD. public getAllUsers(): Promise<Array<Person>> { return graph .users .select("displayName", "accountEnabled"...
Propool's user avatar
  • 37
0 votes
1 answer
134 views

Using an AAD User, instead of client secret, with Microsoft Graph API in a headless program

I am developing a small program that creates sites, files, folders, and registers Subscriptions on the root of site. I am using an App in Azure Portal that has Sites.WriteRead.All and Files.WriteRead....
Sigmundur's user avatar
  • 115
0 votes
1 answer
438 views

Determining if a driveitem is checked out or a shared lock is on the item

I am using Graph API in C# and version 5.12. I am trying to get information about if a DriveItem has been checked out OR if a shared lock is active on the DriveItem. A shared lock is active if the ...
Sigmundur's user avatar
  • 115
1 vote
1 answer
102 views

How to fetch Mail-Enable security Groups in SPFx react?

I want to show Mail-Enable security Group Names in select tag. Can someone please tell how can I get the group names using SPFx react?
Renuka's user avatar
  • 39
0 votes
1 answer
100 views

Need to remove a part from Power Apps Output

I have made a power app which returns a list of Email Address of SharePoint owners. I need to remove the part of email and curly bracket from the output (Please refer image). How to do that?
Prathamesh Bhalerao's user avatar
0 votes
1 answer
591 views

Unable to expand ListItem for a drive item when using Delta Query

I am trying to access a custom column in SharePoint using the graph APIs delta query. I am using /sites/{siteId}/drive/{driveId}/delta?expand=listItem&token=deltaToken but I am not getting the ...
Devashish Pawar's user avatar
1 vote
1 answer
754 views

Composing and selecting Data from odata Output in Flow

I have used Power automate flow to return O365 group owners using Graph API. It has returned data in @odata.context. From that output I need only "Email" field so I can send it to Powerapps ...
Prathamesh Bhalerao's user avatar
0 votes
3 answers
2k views

How do I get a driveitem as a listitem so that I can manipulate the fields of the listitem using only the driveid and the driveitemid?

I have the id of a driveitem and the id of the drive it resides in. This file is a simple text file. I would like to update the fields of the listItem but I am having a hard time doing that since I am ...
Sigmundur's user avatar
  • 115
0 votes
2 answers
893 views

Need to use Graph API to get SharePoint site owners in Power Automate

Need to use Graph API to get SharePoint site owners in Power Automate. Able to achieve it through REST API but not finding Graph API to fetch the SharePoint owners of the site. Can you guide?
Prathamesh Bhalerao's user avatar
0 votes
1 answer
752 views

Is it a bad practice to send raw SharePoint Http requests inside our power automate flows using "Send http request to SharePoint" action

I want to start a complex and lengthy Power automate flow. which contain actions that do not have relevant Power automate built-in actions, those operations include:- Create a sharing links for ...
microsoftdeveloperdesigner's user avatar
2 votes
1 answer
3k views

How to retrieve the whole content of a modern SharePoint site page using the SharePoint API or Microsoft Graph API

I am currently trying to get the whole content of a modern SharePoint page using either API but I am not retrieving it successfully. So far I have tried the following: Calling https://xxxx.sharepoint....
Smock's user avatar
  • 21
0 votes
0 answers
634 views

Graph API to search document from a specific SharePoint site

I need to use Graph API to search for a document in a specific SharePoint Online site and folder, by its unique document ID (the SharePoint site as Document ID enabled). I was able to achieve this ...
Tanmoy Sengupta's user avatar
1 vote
1 answer
65 views

Multi-Geo Subscription

As I'm a Developer and I'm in need of the multi-geo feature to explore them and add these feature in my project. So please suggest me a way to explore them. Could it be possible without the Enterprise ...
Janakiram's user avatar
1 vote
1 answer
914 views

Microsoft Graph general exception using filter expression with 'and' condition

I am trying to query a SharePoint list where I need to pull the last name (title), first name, email, and replacement name by filtering on the last name (title) and first name to make sure we have the ...
shannon's user avatar
  • 25
0 votes
1 answer
287 views

How to add header to graph pnpjs

I tried to get all users from Azure AD with Hire date > 2012-12-31T23:59:59. return graph.users .select("givenName", "surname", "employeeHireDate", "id"...
Propool's user avatar
  • 37
0 votes
1 answer
155 views

Can we break the permission inheritance for a SharePoint custom list item + get all the permission assignments, using GraphAPI instead SharePointAPI

Inside our Power automate Cloud flow we have these actions: Break Permission inheritance Get all Permission assignments Remove all Permission assignments as follow: So can we perform all/some of ...
microsoftdeveloperdesigner's user avatar
0 votes
1 answer
36 views

Does SharePoint actions such as "GetItem", "GetItems", "Grant access to an Item or folder" , etc uses SharePoint api or Graph API

I have a question if SharePoint actions such as "GetItem", "GetItems", "Grant access to an Item or folder", etc uses SharePoint API or Graph API?
microsoftdeveloperdesigner's user avatar
0 votes
1 answer
615 views

Moving a DriveItem from folder to the root of the drive in SharePoint Graph API

I have managed to move a DriveItem between folders without problems using this method: public DriveItem MoveDriveItem(string siteId, string sourceItemId, string destinationItemId) { var driveItem =...
Sigmundur's user avatar
  • 115
0 votes
1 answer
3k views

List permissions for a site using Microsoft Graph API

We use the graph API from Microsoft to get the details about site, drives, files, folder, etc. The graph API works as expected and returns the results for those queries. However, If I try to get the ...
Devashish Pawar's user avatar
0 votes
1 answer
334 views

While trying to get user’s list of followed sites. By calling /users/{user-id}/followedSites endpoint gives "General exception while processing”

I was trying to get user’s list of followed sites (using application permissions). But calling /users/{user-id}/followed Sites endpoint gives "General exception while processing” error and not ...
user107221's user avatar
0 votes
1 answer
527 views

Graph API calls to SharePoint Online is returning 504 responses and is taking more than usual time to complete the requests

I have Http triggered Azure functions that interacts with SharePoint Online using Microsoft Graph SDK, the solution has been in production for couple of years - it creates documentsets/uploads files/...
user527614's user avatar
0 votes
0 answers
63 views

Microsoft Graph SDK is accepting the PATCH request for file Metadata update but nothing gets updated?

Only scenario it is failing is, when we don't pass the required field in initial fileUploadWithMetadata call, post that we are not able to update any field of SharePoint case(folder) or caseItem(...
Harmeet Chandok's user avatar

1
2 3 4 5 6