3,938 questions with Microsoft 365 and Office | SharePoint | Development tags

Sort by: Updated
5 answers One of the answers was accepted by the question author.

can't use contentStream API

i'm trying to use the beta [contentStream](https://learn.microsoft.com/en-us/graph/api/driveitem-get-contentstream?view=graph-rest-beta&tabs=http) API to download drive items. I'm always getting a 401 error, with an HTML content saying: Invalid…

Microsoft 365 and Office | SharePoint | Development
asked 2025-11-26T12:53:20.5733333+00:00
Stefano Padovan 0 Reputation points
accepted 2025-12-03T07:13:25.05+00:00
Stefano Padovan 0 Reputation points
1 answer

Export and Import SharePoint site using Get-PnPSiteTemplate & Invoke-PnPSiteTemplate will not preserve the value of the people/group field

I have a SharePoint source site which contain a People/Group field linked to a SharePoint group named "Level2", as follow:- now i export the site using this powershell:- Get-PnPSiteTemplate -Out "c:\users\mo\site.xml" then i created…

Microsoft 365 and Office | SharePoint | Development
asked 2025-12-03T00:40:40.66+00:00
john john Pter 1,325 Reputation points
edited the question 2025-12-03T00:41:44.7133333+00:00
john john Pter 1,325 Reputation points
2 answers

CSOM Returns Unknown Site Users Like SLinkClaim

Why does the CSOM API return multiple “unknown” site users with titles like SLinkClaim.<Removed for PII> Guest Contributor? What exactly does the SiteUser object in CSOM represent? what does the slinkclaim really mean?

Microsoft 365 and Office | SharePoint | Development
asked 2025-11-28T07:48:36.9566667+00:00
Dinesh 60 Reputation points
commented 2025-12-02T23:35:37.8+00:00
Kha-N 5,055 Reputation points Microsoft External Staff Moderator
3 answers One of the answers was accepted by the question author.

How do I add a webpart to a library view? Or make a library webpart follow deep links?

Current Situation I have a document library that uses the Classic experience. This is necessary because the page includes a custom webpart that displays buttons based on the current user’s permissions and the document status (stored in a custom column).…

Microsoft 365 and Office | SharePoint | Development
asked 2025-11-17T17:42:43.5666667+00:00
Paul Rowe 20 Reputation points
accepted 2025-12-02T17:44:43.03+00:00
Paul Rowe 20 Reputation points
1 answer

JSON custom for double click when open the file

How to use JSON to force users have to double click when they want to open the file in SharePoint Site instead of single click by default

Microsoft 365 and Office | SharePoint | Development
asked 2025-12-02T12:55:12.34+00:00
Harris 120 Reputation points
answered 2025-12-02T13:55:07.67+00:00
Jayden-P 12,065 Reputation points Microsoft External Staff Moderator
1 answer

Access denied Issue using https://graph.microsoft.com/v1.0/sites/$SHAREPOINT_HOSTNAME:$SITE_PATH

Getting access denied while trying to GET https://graph.microsoft.com/v1.0/sites/$SHAREPOINT_HOSTNAME:$SITE_PATH with valid access token and sharepoint host, site information. Request to help. …

Microsoft 365 and Office | SharePoint | Development
asked 2025-11-21T12:51:12.94+00:00
Preetheesh Therala 0 Reputation points
commented 2025-12-02T09:32:06.05+00:00
Jayden-P 12,065 Reputation points Microsoft External Staff Moderator
3 answers

New Sharepoint Site does not appear in Microsoft Graph Explorer

I am trying to connect a sharepoint site to a third party vendor by using Microsoft Graph. When searching for the site in Graph Explorer, the site is not found. My permissions in graph have the consent to the information. Any ideas on what I can do? …

Microsoft 365 and Office | SharePoint | Development
asked 2025-11-25T18:59:06.34+00:00
Brian Levesque 0 Reputation points
commented 2025-12-02T06:32:58.4+00:00
Nghia-P 6,940 Reputation points Microsoft External Staff Moderator
1 answer

Can a Dataverse Attachment Field Display Files Stored in SharePoint?

I have two data sources in Power Apps: Contract (Dataverse table) Contract_1 (SharePoint list, storing attachment files) I created a form using the Contract (Dataverse) table as the data source in Power Apps. This table has a field called…

Microsoft 365 and Office | SharePoint | Development
asked 2025-11-28T03:00:47.49+00:00
Priscilla 0 Reputation points
edited a comment 2025-12-02T02:22:19.57+00:00
Nghia-P 6,940 Reputation points Microsoft External Staff Moderator
2 answers

Performance impact and throttling risks of using $orderby=FileRef desc on large document libraries

Hello, I am working with SharePoint Online document libraries that will need to handle large scale (e.g., libraries with 300,000+ items). I am currently using the REST endpoint /_api/Web/lists/getbytitle('Documents')/Items with a page size of 5,000. To…

Microsoft 365 and Office | SharePoint | Development
asked 2025-12-01T18:16:37.78+00:00
DSR Automation 30 Reputation points
edited an answer 2025-12-02T01:36:22.4566667+00:00
Nghia-P 6,940 Reputation points Microsoft External Staff Moderator
2 answers

Why do the drives/{drive-id}/items/{driveItem-id}/delta and drives/{drive_id}/items/{driveItem-id}/children endpoints return null quickxor hash values for some drive items?for graph

We are running a full crawl on our SharePoint sites within our organisation using the methodologies outlined in the Graph delta documentation. We use $select=...,file,..., and within file we then receive hashes, including the QuickXor hash value. We…

Microsoft 365 and Office | SharePoint | Development
asked 2025-11-25T15:14:45.1966667+00:00
Chris Overtveld 0 Reputation points
commented 2025-12-01T12:33:55.9+00:00
Nghia-P 6,940 Reputation points Microsoft External Staff Moderator
2 answers

Can inheritedFrom property be used to check for SharePoint permission inheritance?

Hello, I'm trying to identify if a SharePoint permission is unique or inherited via the Graph API, and my test results seem to contradict the official documentation. I'm hoping someone can confirm if my findings are reliable. The documentation states…

Microsoft 365 and Office | SharePoint | Development
asked 2025-10-06T10:32:41.9933333+00:00
DSR Automation 30 Reputation points
commented 2025-12-01T12:15:17.6466667+00:00
Jayden-P 12,065 Reputation points Microsoft External Staff Moderator
2 answers

Sharepoint Graph API file download URL bug, file name contains #

We are encountering an issue with the Microsoft Graph API when downloading files from SharePoint using the /drives/{drive-id}/items/{item-id}/content endpoint. Issue Summary When a SharePoint file's name contains a # character, downloading the file…

Microsoft 365 and Office | SharePoint | Development
asked 2025-11-25T16:37:41.55+00:00
Brandon Worgull 0 Reputation points
edited a comment 2025-12-01T06:13:26.3133333+00:00
Teddie-D 8,475 Reputation points Microsoft External Staff Moderator
3 answers

Authenticating to the SharePoint REST API as an Entra app (no user sign-in)?

I'm trying to use the SharePoint REST API to interact with SharePoint in ways that the Graph API doesn't support (specifically, adding members to a site). I have an Entra app registered as cross-tenant with Sites.FullControl.All, admin consented in the…

Microsoft 365 and Office | SharePoint | Development
Microsoft Security | Microsoft Graph
asked 2024-11-20T02:17:27.36+00:00
Max Cutlyp 10 Reputation points
recommended 2025-11-30T13:42:22.02+00:00
JuliaMarvin 17,190 Reputation points Volunteer Moderator
2 answers

What is the replacement for `GET /me/drive/sharedWithMe

The Graph API GET /me/drive/sharedWithMe is marked as deprecated. What is the recommended replacement? The Learn AI agent suggested that "The recommended replacement for this API is to use the driveItems returned from the sharedWithMe method."…

Microsoft 365 and Office | SharePoint | Development
asked 2025-11-18T11:46:00.7633333+00:00
Meg Gotshall 0 Reputation points
commented 2025-11-29T20:09:45.5266667+00:00
Juanjo 1 Reputation point
3 answers One of the answers was accepted by the question author.

Retrieving AadObjectId for Site Users via CSOM Causes Timeout

I am retrieving all site users for every site collection in my tenant. When I use my CSOM code like this, it works normally: var web = site.RootWeb; ctx.Load(site.RootWeb.SiteUsers); ctx.ExecuteQuery(); But when I try to get each user’s Azure AD Object…

Microsoft 365 and Office | SharePoint | Development
asked 2025-11-28T07:41:34.5166667+00:00
Dinesh 60 Reputation points
accepted 2025-11-29T09:01:23.2466667+00:00
Dinesh 60 Reputation points
2 answers

Orphaned site users

I am attempting to scan all sites to identify orphaned users using the CSOM API by loading the AadObjectId property for each site user. However, the response time is extremely slow, and it often times out even when processing around 10,000 users.…

Microsoft 365 and Office | SharePoint | Development
asked 2025-11-28T07:55:20.97+00:00
Dinesh 60 Reputation points
commented 2025-11-29T03:57:24.4466667+00:00
Kudos-Ng 10,150 Reputation points Microsoft External Staff Moderator
3 answers

Graph API - Get list of SharePoint sites with Sites.Selected

Hello: I am trying to integrate with Sharepoint via the Microsoft Graph API. I have already set up an Azure app with Sites.Selected permissions and configured the app to have read access to a specific list of sites. For context, I am using raw HTTP…

Microsoft Security | Microsoft Graph
Microsoft 365 and Office | SharePoint | Development
asked 2024-10-01T15:51:55.1166667+00:00
Anonymous
edited an answer 2025-11-28T13:23:31.7066667+00:00
Vitalii Kalytka 0 Reputation points
2 answers One of the answers was accepted by the question author.

SharePoint Framework Web Part Failing to Load After Deploying Updated Package

I’m dealing with a SharePoint development issue where a custom component doesn’t behave consistently across different site collections, even though the deployment package and configuration are identical. From what I can tell, the issue seems to appear…

Microsoft 365 and Office | SharePoint | Development
asked 2025-11-25T12:23:21.8+00:00
Conover Kathrina Jr 40 Reputation points
accepted 2025-11-28T08:15:44.5+00:00
Conover Kathrina Jr 40 Reputation points
2 answers

How to Access SharePoint REST API Using Azure AD App (Client ID & Secret) with Sites.FullControl Permission?

I’m trying to use the SharePoint REST API (_api) to retrieve site permissions, site groups, and identify site owners for SharePoint sites that are not group-connected. I’ve registered an Azure AD app and granted SharePoint API permissions with…

Microsoft 365 and Office | SharePoint | Development
asked 2025-11-24T12:49:16.3633333+00:00
Aravind 0 Reputation points
edited a comment 2025-11-28T07:32:15.59+00:00
Jayden-P 12,065 Reputation points Microsoft External Staff Moderator
2 answers

On deletion of sharing permission, Inherited sharing permission getting removed from Drive Item

Hi, Generally when we have inherited sharing permission on a drive item and when we try to remove them via Microsoft Graph API, even though we get 204 status code, but the permissions are not removed. …

Microsoft 365 and Office | SharePoint | Development
asked 2025-11-27T12:15:32.7766667+00:00
Anil Ranolia 0 Reputation points
commented 2025-11-28T05:22:48.0633333+00:00
Gabriel-N 9,545 Reputation points Microsoft External Staff Moderator