3,938 questions with Microsoft 365 and Office | SharePoint | Development tags
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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. …