Forum Discussion
testpoudyal
Jan 25, 2023Copper Contributor
SharePoint Online - Replace the default document url in document library
Hi, I am new to SharePoint Online world and wanted to know if it was anyway possible to update the self generated document URL that SharePoint creates when uploading the document that I can use to re...
testpoudyal
Copper Contributor
Hi SvenSieverding,
thanks for your reply. Wouldn't creating an Azure app require users to start using the said app and not be accessing the documents via SharePoint? Unfortunately I don't have that liberty and the users need to access the documents via SharePoint portal. Can a SharePoint webpart connect to this Azure App and only display the documents they have permission for?
thanks for your reply. Wouldn't creating an Azure app require users to start using the said app and not be accessing the documents via SharePoint? Unfortunately I don't have that liberty and the users need to access the documents via SharePoint portal. Can a SharePoint webpart connect to this Azure App and only display the documents they have permission for?
SvenSieverding
Jan 28, 2023Bronze Contributor
Hi testpoudyal,
you could redirect your users to the new Azure app.
But if you want to keep your users in SharePoint, then your app can just expose a webservice.
Then you write an SPFX webpart for your users to interact with that webservice.
But you should protect your webservice using Azure AD.
Take a look at this tutorial on how to do that with an Azure Function.
https://learn.microsoft.com/en-us/sharepoint/dev/spfx/use-aadhttpclient-enterpriseapi
Best Regards,
Sven