Questions tagged [microsoft-graph]

Questions that relate to the Microsoft Graph developer platform.

Filter by
Sorted by
Tagged with
0 votes
1 answer
24 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
78 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
28 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
14 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
10 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
16 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
298 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
19 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
35 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
200 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
235 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
119 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
  • 906
0 votes
0 answers
66 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
36 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
50 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
148 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
93 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
82 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
741 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
94 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
339 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
88 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
82 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
471 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
599 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
1k 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
802 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
691 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
0 votes
0 answers
31 views

Reports of Multi-geo enabled tenant using graph api

how do I get the Usage report in multi-geo enabled tenant ? do I required to collect Usage Report for every tenant (default tenant and other satellite tenant manually ?
Janakiram's user avatar
1 vote
1 answer
2k 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
  • 11
0 votes
0 answers
550 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
60 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
717 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
239 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
0 answers
117 views

Graph Search call always return duplicated entries (even with trimDuplicates as true) with diff ranks

Below request always return duplicated entries, via https://graph.microsoft.com/v1.0/search/query, with different ranks. How can those entries be trimmed? { "requests": [ { ...
fallout's user avatar
  • 1,015
0 votes
1 answer
127 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
34 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
542 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
2k 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
291 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
477 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
56 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 vote
0 answers
200 views

What is the gap between Sharepoint REST and Microsoft Graph APIs?

I am developing a software to keep track of changes to files and folders made in SharePoint. I am trying to figure out what API to use. My understanding is that Microsoft is giving more focus on ...
kuzey arman's user avatar
0 votes
1 answer
175 views

SPFX Form Customizer extension, how to prevent edits via REST etc

SPFX runs in context of the user, user has to have Write permissions to the list. If user has write permissions, the REST API will reflect that, so the user could just bypass and form customizations ...
Powell's user avatar
  • 23
0 votes
0 answers
234 views

Is that 'Sites. Selected' permissions level allows the SharePoint online global search?

Is that 'Sites. Selected' permissions level allows the SharePoint online global search?. My query is: https://tenant.sharepoint.com/_api/search/query?querytext='*+AND+(Path:"https://tenant....
Harmeet Chandok's user avatar
0 votes
1 answer
517 views

SPHttpClients vs AadHttpClient vs MsGrpahclient

When developing SPFx we are left with many technologies to be used. mainly i am trying to understand when to use each SPHttpClients vs AadHttpClient vs MsGrpahclient now i know the SPHttpClient can ...
John John's user avatar
0 votes
1 answer
211 views

How to read "department" with MSGraph?

I'm working on a new Webpart with SPFx and I need only the "department" from every Employee. I have found Code examples, bot no one works at me. import { MSGraphClientV3 } from '@microsoft/...
LeberkäseWhatsappgruppe's user avatar
0 votes
0 answers
709 views

Microsoft Graph API Look for folder in Sharepoint that contains another, specyfic folder

I try to get list of all folders that contain specific folder (always with the same name). So for example if my library in Sharepoint would look like this and I would like to look for all folders that ...
PastorPL's user avatar
  • 101

1
2 3 4 5 6