Create a view of a document library specific to a group on SHAREPOINT ONLINE

POLLET David 1 Reputation point

Hello, i have a document library where i have all my documents, with different attributes (column attributes).
Let's say i have 2 groups of people working for me, group A and group B.
I want to only give acess to group B to documents where the attribute "country" is "Germany".

Does anyone have an idea of how to do this feat ?

PS : this feat was possible in the old sharepoint via the webpart Content Query, but nowhere to be found today.

Thanks for your help ! :<)

A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,249 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Xuyan Ding - MSFT 7,561 Reputation points

    Hi @POLLET David ,

    • In modern UI, as a workaround, you can filter and then set permissions.
      1)If your country column is a choice column or a single-line text column, you need to group or filter directly based on the "Germany" attribute first. If there are many files, you can move the documents to a folder, and then manage access to the folder.
      260427-image.png 260339-image.png 260376-image.png
      260471-image.png 260472-image.png 260446-image.png

    2)If your country column is a location column without group or filter options, you need to set all countries individually as a list, and then use the lookup column to reference in the library.

    • For what you said about the content query webpart not found, in classic mode, you can add it in the page.
      Library settings->Advanced Settings->List experenice: switch to classic mode->ok->Edit page->Add a Web Part

    260474-image.png 260435-image.png 260484-image.png

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments