Questions tagged [microsoft-graph]

Questions that relate to the Microsoft Graph developer platform.

Filter by
Sorted by
Tagged with
0 votes
1 answer
19 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
16 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
14 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
30 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
15 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
22 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
45 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
32 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
201 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
40 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
105 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
56 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
  • 37
0 votes
1 answer
43 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
190 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
197 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
2 answers
461 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
421 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
310 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
21 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
633 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
254 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
43 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
421 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
131 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
71 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,005
0 votes
1 answer
66 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
29 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
338 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
1k 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
210 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
273 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
42 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
0 votes
0 answers
143 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
149 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
165 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
0 answers
73 views

Unable to post messages on Teams using Micros

Getting the following error while running the python code: {"error":{"code":"Unauthorized","message":"Message POST is allowed in application-only context ...
Kompal's user avatar
  • 21
0 votes
0 answers
145 views

Setting a signature in OWA for a specific user with MS Graph API

How can i set a signature in OWA for a specific user with MS Graph API? I can't find anything except 'we are working on it' but this is like 2 years old...is there any way?
bob's user avatar
  • 113
0 votes
1 answer
273 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
108 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
549 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
0 votes
2 answers
322 views

SPFX Graph, elevated privileges?

I need to do some actions (ex: create a subsite via REST or Graph) with my SPFX app (webpart) that the viewing user wont have the rights to do. So I need to find a way to run these with elevated ...
Powell's user avatar
  • 23
1 vote
0 answers
43 views

Programmatically Moving PDFs to SharePoint 365

I have been stumped on this problem for far too long and wanted to reach out for help. I want to programmatically move PDFs from a local shared drive to a SharePoint 365 document library. I currently ...
RS1001's user avatar
  • 11
1 vote
1 answer
267 views

Filtering Fields in SharePoint QueryString

I am trying to query a specific item from a SharePoint list. I have the following query string:  https://graph.microsoft.com/v1.0/sites/myCompany.sharepoint.com:/sites/Global:/lists/%7MY_LIST%7D/items?...
shannon's user avatar
  • 25
1 vote
1 answer
1k views

Using $filter eq query on list items using the msgraph-sdk-java

We have a SharePoint list of items where we would like to filter on a specific field (i.e. EMail = [email protected]) to create a list of entries. We are getting 400 errors saying invalid filter ...
Shannon Quinn's user avatar
0 votes
0 answers
91 views

JSON for bar graph from Sharepoint list

I am working on creating dynamic column graph chart out of my Microsoft list, wanting to see status (bar graph) of open position (my MS list has a column named status that has different status ...
Rafi Ahmad's user avatar
1 vote
0 answers
11 views

MS Graph Cross-site file copy limit

I am using MS Graph to migrate files and folders from a sharepoint site to a library in another sharepoint site. I call the copy endpoint ok but get the following response for some of the folders that ...
Jonathan's user avatar
0 votes
1 answer
583 views

Microsoft Graph: How to get all SharePoint sites for a specific user

I would like to retrieve a list of all SharePoint sites a specific user has access to. I am able to return followed sites for a specific user using the following endpoint: https://graph.microsoft.com/...
Joshua Cummings's user avatar
1 vote
1 answer
216 views

Get AAD Roles from React SPFx Webpart

I have a simple React SPFX Webpart. We have deployed it to our SP Online site. It currently displays the SP Groups of the current user. const queryUrl = `${this.context.pageContext.site.absoluteUrl}/...
Bobby Ortiz's user avatar
0 votes
0 answers
57 views

Keep Sharepoint ranked results steady in seach with Graph API

Im doing a search through the MS Graph API by using KQL: { "requests": [ { "entityTypes": [ "listItem" ], "...
Tim's user avatar
  • 1
1 vote
1 answer
547 views

Get-SPSite vs Get-MgSite Powershell queries

What's the difference between the Get-SPSite vs Get-MgSite Powershell queries? I read the documentation but am not able to see what's the difference between those.
Spammy McSpamface's user avatar

1
2 3 4 5 6