Forum Widgets
Latest Discussions
Show Access and Confidentiality Message to External Users in a SharePoint Document Library
Is it possible to display the following text inside a SharePoint document library page so that it’s visible to external users when they open the shared link? Text to Display: Access and Use Access is restricted to authorized representatives and internal personnel. Users must not share their login credentials or grant access to any third party. Uploaded and downloaded documents must relate solely to the agreed scope of work Disclaimer Use of this site constitutes acceptance of these terms. Access may be suspended or restricted if security, confidentiality, or compliance risks are identified. Goal: I want this text to be clearly visible to external parties (for example, when they open a document library link to upload or view files).Asit00Jan 22, 2026Copper Contributor40Views0likes1CommentGet the URL behind link items in SharePoint document library via REST API
I have a custom web part that I can connect to different data sources (e.g SharePoint Document Libraries). Then I can map the item properties from that document library to one of my different view templates. The problem is when I add a Link item (external Url) in that document library, I cannot find an item property that stores the external Url. Right now I get the item properties via SharePoint REST API. I checked the values of FileRef and EncodedAbsUrl, but these are URLs pointing to the SharePoint document library file, and not to the external URL. After some investigations, I've seen in the dev tools (F12) Network tab, there's a call to https://{siteurl}/_api/SP.Utilities.ShortcutLink.GetShortcutLink(@a1)?@a1={siteUrl}/Shared%20Documents/http://www.dummysite.com.url which will retrieve the actual linked external URL, but this not a good option for me, since making another REST call for each item will impact my performance. So is there any item property that I could expand to get the external URL, via REST API?VladSchiopJan 14, 2026Copper Contributor21KViews0likes3CommentsSharePoint Online SP.FieldUserValue.get_email() always returns NULL.
Since last week, SP.FieldUserValue.get_email() has been returning null for all users in Person or Group fields. This occures when I use getItems method. For example: var listName = "MyList"; var context = SP.ClientContext.get_current(); var web = context.get_web(); var list = web.get_lists().getByTitle(listName); var query= new SP.CamlQuery(); var items = list.getItems(query); context.load(items); context.executeQueryAsync(()=>{ var enumerator = items.getEnumerator(); while (enumerator.moveNext()) { var item = enumerator.get_current(); var fldValues = item.get_fieldValues(); console.log(fldValues["Editor"].get_email()) } }); I haven’t been able to find any information about changes related to this behavior. We’ve been using the Email property of user fields for years without any issues, and it has always worked as expected. It's documented here: https://learn.microsoft.com/ru-ru/dotnet/api/microsoft.sharepoint.client.fielduservalue.email?view=sharepoint-csom Does anyone know what might have changed or why this has stopped working?vlad_nvsDec 22, 2025Copper Contributor576Views9likes3CommentsGroup Calendar Web Part Pop Up Color
We have created a branding theme for modern sharepoint sites to match corporate colors. When clinking on a Group Calendar event, the pop up now applies a background color we didn't have in the theme as primary or secondary. Just seems to be auto selected by SP. It's too dark to read the text. I've found the Them in the classic _catalog Theme Gallery and can pull the theme into NotePad to read it but can't seem to tell which variable controls the background of pop ups. Just need it to be white (ffffff). Anyone have a solution? {"name":"(Company Theme Name)","isInverted":false,"palette":{"themeDarker":"#243360","themePrimary":"#17244C","themeSecondary":"#5e6d9b","themeTertiary":"#7885af","themeLight":"#94a0c2","themeLighter":"#b3bcd6","themeLighterAlt":"#d6dbea","black":"#000000","neutralDark":"#201f1e","neutralPrimary":"#323130","neutralPrimaryAlt":"#3b3a39","neutralSecondary":"#605e5c","neutralTertiary":"#a19f9d","neutralTertiaryAlt":"#c8c8c8","neutralLight":"#eaeaea","neutralLighter":"#f4f4f4","neutralLighterAlt":"#f8f8f8","white":"#ffffff","neutralQuaternaryAlt":"#dadada","neutralQuaternary":"#d0d0d0"},"displayMode":"light","secondaryColors":{"light":[{"themePrimary":"#ffffff","backgroundColor":"#17244C"},{"themePrimary":"#6BC289"},{"themePrimary":"#ffffff","backgroundColor":"#6BC289"},{"themePrimary":"#26A9E1"},{"themePrimary":"#ffffff","backgroundColor":"#26A9E1"},{"themePrimary":"#1B75BC"},{"themePrimary":"#ffffff","backgroundColor":"#1B75BC"},{"themePrimary":"#E7EBF6"},{"themePrimary":"#ffffff","backgroundColor":"#E7EBF6"},{"themePrimary":"#ACBFE3"},{"themePrimary":"#ffffff","backgroundColor":"#ACBFE3"},{"themePrimary":"#B6BBBF"},{"themePrimary":"#ffffff","backgroundColor":"#B6BBBF"}],"dark":[]}}ShawnHopperDec 19, 2025Copper Contributor33Views0likes0CommentsSize increase of .sppkg packages with heft/v1.22
After upgrading our solution to SPFx 1.22.rc-0 and switching to the new heft build toolchain our .sppkg packages have suddenly grown massively in size. They are more than double the size of the 1.21 version. Is there a reason for this? Is there anything we can do to reduce the package size back to what it was previously? Our main solution contains both web parts and list extensions, split into several bundles. Let me know what other details would be helpful.Jason_ColeDec 18, 2025Copper Contributor35Views1like0CommentsIs Creating Multiple ClientContext Instances Efficient in CSOM for one Site Url?
Is it efficient to create a new ClientContext for each site URL and for each query, such as getting site users, lists, groups, and group members from the Web object? These queries can return a very large number of items, and CSOM does not support paging when retrieving data from Web properties. Because of this, there is a risk of memory issues. In this case, is creating multiple ClientContext objects a good approach? Also, how does ClientContext work internally, and how does it handle memory and performance?Dinesh_adminDec 17, 2025Copper Contributor14Views0likes0CommentsSPO connection via client id/secret
hi all, I am trying to get the SPO site name but when running locally I get this error: "Invalid RedirectURI was received. Not parseable into System.Uri class." I thought you can use client id/secret with proper api permission to connect to SPO with no issues... Below the code I use. Thanks! ------------------------ Imports Microsoft.SharePoint.Client Imports https://l.facebook.com/l.php?u=http%3A%2F%2FSystem.Net%2F%3Ffbclid%3DIwZXh0bgNhZW0CMTAAAR2XGii7qXpy3htT31OPd6KBMsWRED834ZYQ6spfzKwfChRCFYmoqFterHE_aem__8fX4o-BiFZmlMaxN9B3Jg&h=AT1eGYHmV_EnWzUsl_CLP5DnbnZc8xrC_tqGsyoxNtMBafi6wIhRyCMw4JuyUzKZbaM4u4RmlqbkSignNMTjqV06iDHcMCPPQxT4RAnDmj11vmlFs-gSzew8hLY-D-7mYo4nhA-qCnHDZg&__tn__=-UK-R&c[0]=AT2j-gg1zyESDNZkOmijpaN4KITiYBNqN_PTCtBV1-_5moCCYqoDrGjqHdMptmu5HPEXWzKQqmnIJYz1OK-ctg-f8EiYzetZ6-LnwDE7jAdJxIt6-5pbYlqmcM9taJNOLncoH7OGTNnfOT77Ky9wA7mt8rH9EP43RrMY Imports System.Security Imports PnP.https://www.facebook.com/groups/2226513806/user/100050559426395/?__cft__[0]=AZUXEFdEOvL3ph8oNyjaVgXBUaJodzv2HfnVjMec3htgpQujKHRGZ3Kktq24njP5NeOU0NkMGgvgcRhZetXW7mcUKxxXimBproqY8gUElRstkb4XLQIslxuwg-PUw5WazcQlWDqChtHAwORrAAIPjmRr&__tn__=-]K-R Public Class index Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim siteUrl As String = "https://mysite.sharepoint.com/sites/admin?fbclid=IwZXh0bgNhZW0CMTAAAR3op4pfz6GlCGTLg5aYP262vRRh4_co3GYZW47Io5L_Ltesonk0JIolLCc_aem_HJLtQNtMnaupgxRDrRyOPA" Dim clientId As String = "xxxxxxxxx" Dim clientSecret As String = "yyyyyyyyy" Dim tenantId As String = "555555555555" Dim siteName As String = GetSharePointSiteName(siteUrl, clientId, clientSecret, tenantId) Label1.Text = ("Site Name: " & siteName) End Sub Function GetSharePointSiteName(siteUrl As String, clientId As String, clientSecret As String, tenantId As String) As String Dim authManager As New PnP.Framework.AuthenticationManager(clientId, clientSecret, tenantId) Using context As ClientContext = authManager.GetContext(siteUrl) Dim web As Web = context.Web context.Load(web, Function(w) w.Title) context.ExecuteQuery() Return web.Title End Using End Function End ClassAMG365Dec 15, 2025Copper Contributor383Views0likes2CommentsWebhooks for file permissions changes
Hey there! I am looking to receive a webhook from Sharepoint when permissions on a file or folder change. This doesn't seem like an explicit event in Sharepoint, but I did find this https://learn.microsoft.com/en-us/onedrive/developer/rest-api/concepts/scan-guidance?view=odsp-graph-online#receiving-webhook-notifications-for-security-events: I've tested using this header a few times, but so far have not been able to receive the webhooks. Here is a cURL of my webhook setup request: curl --location 'https://graph.microsoft.com/v1.0/subscriptions' \ --header 'Authorization: Bearer [redacted]' \ --header 'Content-Type: application/json' \ --header 'prefer: includesecuritywebhooks' \ --data '{ "resource": "/drives/[drive_id]/root", "changeType": "updated", "notificationUrl": "[target_url\]", "expirationDateTime": "2025-03-03T21:15:14Z", }' Sharepoint responds with a 201, with the following response headers: "headers": { "User-Agent": "Mozilla/5.0", "Accept-Encoding": "gzip, deflate, br", "Accept": "*/*", "Connection": "keep-alive", "Authorization": "[redacted]", "content-type": "application/json", "prefer": "includesecuritywebhooks", "Content-Length": "405" } So it does seem that the header was accepted. In terms of licenses, my Sharepoint instance is tied to a user with an E5 trial license, and a paid E3 license. I am still not receiving webhooks when permissions update on files. I do receive other webhooks (ie files changed, added etc), just not for a permission change event. Has anyone figured out how to use this header successfully? Thanks!mgongAPIDec 05, 2025Copper Contributor255Views0likes1Commentany possible to extend client ID and secret for app registered in SharePoint Online
Hi Team, is there any possible to extend client ID and secret for app registered in SharePoint Online? right now, we are not allowed to create any new app registration from SharePoint Online, only way is from Azure AD - App registration. how about the client ID and secret getting expired which is created earlier using SharePoint Online? is there any way like powershell script something to extend the validity of Client ID and secret for app registered in SharePoint Online? if yes, please share the detailed instructions and guidelines to perform. if no, then what is the possible way for next step of actions to do? you can reachout to me - mailto:email address removed for privacy reasons for further discussion about this issue. Thanks for the help!FA001062506_techmahindra_caldicNov 12, 2025Copper Contributor35Views0likes0CommentsAudience Ids returning null | SharePoint REST API
Hi, On hitting the SharePoint REST API in the endpoint "_api/Web/Navigation/GetNodeById(2019)/AudienceIds", I am getting a NULL response as seen below But I have added SharePoint groups as audience on the below Can you look into the above matter and help ? Regards, Nebu Thomas MathewnebuthomasmathewNov 06, 2025Copper Contributor460Views0likes1Comment
Resources
Tags
- developer1,251 Topics
- PnP650 Topics
- apis492 Topics
- Extensibility255 Topics
- Responsive128 Topics
- hybrid82 Topics
- SPFx70 Topics
- SharePoint Online64 Topics
- powershell23 Topics
- SharePoint Online Office 36515 Topics