Forum Widgets
Latest Discussions
SPFX call gets error "interaction required" after turning on function's System Assigned Identity
I have an spfx web part that is connected an Azure Function. All was working until I turned on the System Assigned Identity for the function. Below is my configuration while it was working: Function app: contoso-fn App Service authentication enabled Unauthenticated requests get a 302 HTTP code Microsoft is the identity provider, with app registration "contoso-fn-auth" It allows token audiences from api://<id-contoso-fn-auth> and from <my-tenant>.sharepoint.com Allowed client applications include 08e18876-6177-487e-b8b5-cf950c1e598c and <id-contoso-fn-auth> CORS: https://learn.microsoft.com/en-us/answers/questions/4374948/spfx-making-call-to-azure-function-gets-error-inte and https://<my-tenant>.sharepoint.com App registration "contoso-fn-auth" (used above when setting up identity provider) Authentication > Web > Redirect URI: https://learn.microsoft.com/en-us/answers/questions/4374948/spfx-making-call-to-azure-function-gets-error-inte ID tokens issued only accounts in the tenant can access this API API permissions > contoso-fn-auth > user_impersonation ; Delegated; Status: granted for tenant Expose an API: Scopes api://<id-contoso-fn-auth>/user_impersonation The code in the SPFX to request the function is something like this: this.context.aadHttpClientFactory .getClient('<id-contoso-fn-auth') .then((client: AadHttpClient): void => { client.get(<url-to-the-fn>/api/upload)...}); In the SharePoint Admin Center, under Advanced > API Access, the user_impersonation permission is approved for contoso-fn. I then changed the Function app identity, turning on "system assigned", as I needed the function to authenticate against the Azure Blob Client, and now I'm getting the following error: interaction_required: Seamless single sign on failed for the user. This can happen if the user is unable to access on premises AD or intranet zone is not configured correctly I read something about turning on the function's system assigned identity affecting how I requests tokens using the aadHttpClientFactory, but I haven't been too successful in finding how to solve the issue (including internet search and asking several LLMs). I don't need my function to have user context (I could send that from the spfx) but I need this to work without any redirects. I would appreciate help to be able to call the function from the spfx seamlessly, while keeping the function secured with Microsoft identity. (porting from a https://learn.microsoft.com/en-us/answers/questions/4374948/spfx-making-call-to-azure-function-gets-error-inte, as requested)SolvedWalter CruzateJul 15, 2025Copper Contributor141Views0likes1CommentFunction of "GET IT" button in Sharepoint app?
Hello, I have a question related to Sharepoint deployment. Context: I have two Sharepoint sites. Both have the same webpart application but different version. But they both display the lastest version of the webpart. Questions: - What the function of the "GET IT" button in details of the application if both running different version and still have same webpart? - How can I deploy different version to each site because I plan to have two sites DEV and PRO? Thank in advance.SolvedCapCap1101Jun 05, 2025Copper Contributor74Views0likes1CommentSharepoint Online: fastest way to retrieve folder count in a document library
Hi all I'm really looking for what the title says. Right now I'm doing Get-PnPFolderItem -ItemType Folder (using Pnp.Powershell but can try other options) but with more than a few 10s of folders, this is REALLY slow. The thing is, I just need a count (recursively), not all info as I'm getting with Get-PnPFolderItem. Any ideas?SolveddandrakaApr 09, 2025Copper Contributor151Views0likes1CommentTailwind with spfx
Hello, I'm starting to work with SPfX. I read that tailwind, it would be a good option for css framework, can you give me some advice? Best RegardsSolvedJlibrerosJan 17, 2025Copper Contributor169Views0likes2CommentsSharePoint Notifications for Terminated Employee
Hello, A former member of staff set up many different SharePoint notifications before they left the company. Once they left their MS Office license was removed and their email was suspended. SharePoint continues to send out notifications to this non-working email address, which is creating cases in our CRM. How can I, as the System Admin, turn off these notifications? Thank youSolvedAmandaG1605Nov 01, 2024Copper Contributor230Views1like5CommentsSharepoint File inserted in Outlook
Hello, I use Outlook application. I want to insert files from Sharepoint sites. Drag & Drop doesn't work. The reverse Outlook to Sharepoint works. How can I get Sharepoint to Outlook Drag & Drop to work? Or how can I access the most frequently used files? Thanks for your help, Gaetan NB. I can't update the SITES or Sharepoint list on these Outlook menus. Insert file” menuSolvedGaetan_FranceSep 17, 2024Copper Contributor680Views0likes7CommentsHow to reuse html customized aspx page in SharePoint online
Hi all, I have migrated site from SP 2016 to SharePoint online. Because of custom script disabled in my Online tenant, my requirement is convert customized aspx pages (html) to modern online pages. I know spfx is the platform to implement it. But could you please help me on how can I reuse the available html code into my spfx webpart, instead of developing all the pages from scratch.Solvedgopi0415Jul 25, 2024Copper Contributor904Views0likes2CommentsUse Org Intranet Site Homepage for SharePoint Homepage for Search Functionality
Hello, My organization created their SharePoint Intranet site before I joined them. It seems that, because the topmost Search field only searches the current site, that they created a link on the main page to the homepage for SharePoint, where a full search can be properly done across the instance. It seems that some people are confused by this and do not know to switch to the homepage before searching. Can I just make my org's Intranet site main page the Homepage for SharePoint and eliminate the need for a quick link to the homepage since it would already be there? I am concerned that something will break somewhere down the line for some reason (like navigation or some quick links). I feel like nothing should break, because all I am doing is swapping in a new homepage URL. The link to my main Intranet site should not change because it is now the homepage, correct? Just for clarity, I am not worried about breaking any links to or from the current homepage, as I do not think anyone uses it unless they have selected the global search item I mentioned earlier. I have found the below PowerShell code for doing this: # Connect to SharePoint Online Connect-SPOService -Url https://yourtenant-admin.sharepoint.com # Set the desired site as the Home Site Set-SPOHomeSite -HomeSiteUrl "https://yourtenant.sharepoint.com/sites/intranet" Would this do what I am asking?SolvedChrisInhoffJul 10, 2024Copper Contributor536Views0likes4Comments
Resources
Tags
- developer1,244 Topics
- PnP648 Topics
- apis489 Topics
- Extensibility253 Topics
- Responsive128 Topics
- hybrid82 Topics
- SPFx70 Topics
- SharePoint Online64 Topics
- powershell23 Topics
- SharePoint Online Office 36515 Topics