Forum Discussion
Store files in one Sharepoint site and display in another
- Feb 14, 2022
Adamhumbug So I did test out a scenario using File Viewer web part on a Site page and I was able to see the file in File Viewer web part using "From a Link" option. Here is the scenario that worked for me.
- Site 1: https://contoso.sharepoint.com/sites/site1 -> Document Library TestDocLib1 -> Word Document TestWordDoc1.docx -> All Company users have Read Permissions on this Document (But no one has been given link to this site so they don't know where this document is coming from)
- Site 2: https://contoso.sharepint.com/sites/companypolicies -> Pages Library -> Created a New Site Page -> Added a "File Viewer" web part -> In the pop up to choose the file, I chose "From a Link" option and then provided URL of the document TestWordDoc1.docx from Site1 here.
- Look at the warning message above "This isn't a file from your site, so it may have different access permissions. Make sure that your site members can view it." . This is to ensure that the users have permissions to access the file in other site.
Adamhumbug So I did test out a scenario using File Viewer web part on a Site page and I was able to see the file in File Viewer web part using "From a Link" option. Here is the scenario that worked for me.
- Site 1: https://contoso.sharepoint.com/sites/site1 -> Document Library TestDocLib1 -> Word Document TestWordDoc1.docx -> All Company users have Read Permissions on this Document (But no one has been given link to this site so they don't know where this document is coming from)
- Site 2: https://contoso.sharepint.com/sites/companypolicies -> Pages Library -> Created a New Site Page -> Added a "File Viewer" web part -> In the pop up to choose the file, I chose "From a Link" option and then provided URL of the document TestWordDoc1.docx from Site1 here.
- Look at the warning message above "This isn't a file from your site, so it may have different access permissions. Make sure that your site members can view it." . This is to ensure that the users have permissions to access the file in other site.
DhirenMehtaMSFT I have follow what you have said and amended the permission of where I am getting the policy docs from. This seems to have done the trick and I have checked with some of the employees that they can see it.
Thanks for your help