Suppose I have two sites (under the same site collection), first is ABC.sharepoint.com/teams/siteA and second is ABC.sharepoint.com/teams/siteB and I have document library with documents and its metadata in siteA.

Now, I want to use document library of siteA to view metadata in document library web part of siteB page. I tried this but it didn't work.

So, is there any way that I can access data of document library of siteA in siteB without copying into siteB. In the worst case I need to create document library(with views) and upload documents in siteB right?

2 Answers 2


Are you using Modern page or Classic page?

For Modern page, you could use the Embed web part:


For classic page, use the page viewer web part:


  • I am using modern page and but if I use Embed web part then problem is I can't connect the document library with File viewer web part to preview documents in the home page. Let me know if there any solution which allow me to connect File viewer web part with other site's document library views. Jul 17, 2020 at 4:00

You could actually use the custom spfx content query webpart, an instructions on how to extract and build it is that link also. Though you would still need to have a handlebar templates which is another thing to research on but its worth a try.

If you are still not satisfied or if there is still a lack / limitations on what you wanted to achieve, I suggest you look into custom spfx development to create your own webpart, see it here

Hope this information helps! Happy Learning!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.