Forum Discussion
Free version of sharepoint online dont show current user filter webpart option
rautchetan the modern experience doesn't have a current user filter web part. However you can filter lists still by editing a view and setting the filter to, for example, Created by is equal to [Me] which will show the user only those items they created.
Rob
Los Gallardos
Microsoft Power Automate Community Super User
what I want to do, I have list of documents uploaded by different Vendors , say Amazon, Paypal, Mastercard, if person visiting to site belong to Amazon vendor then only he can see all documents uploaded by all Amazon vendor only and no other vendor, i want to filter list and show list item only to belonging to that vendor, how can i do that.
- RobElliottMay 19, 2020Silver Contributor
rautchetan "I have list of documents uploaded by different Vendors , say Amazon, Paypal, Mastercard, if person visiting to site belong to Amazon vendor then only he can see all documents uploaded by all Amazon vendor only and no other vendor, i want to filter list and show list item only to belonging to that vendor, how can i do that"
If I was doing this I would probably create a separate document library for each vendor. Then if the site visitors are internal I'd create an Office 365 Group for each vendor and apply the permissions to each document library so that only the appropriate Group could view the library. Visitors could be in more than one Group.. If the visitors are external I'd create a SharePoint permissions for each vendor and apply the view permissions to the library for the appropriate group.
Doing it that way means you don't need to worry about filters and views but there is an admin overhead in maintaining the members of the group.
Rob
Los Gallardos
Microsoft Power Automate Community Super User- rautchetanMay 19, 2020Brass Contributor
RobElliotthow to set target audience for webpart? can I set sharepoint group as target audience for any webpart which contain list?I am not getting that option.
please see attachment, I am not getting that option in edit webparts
- RobElliottMay 19, 2020Silver Contributor
rautchetan I think the audience targeting (which you need to turn on in the List/Library settings) only covers the Highlighted Content and News web parts but I could be wrong as we don't use it in our company. A could article on this by Laura Rogers is at https://wonderlaura.com/2019/12/19/sharepoint-audience-targeting-its-back/
Rob
Los Gallardos
Microsoft Power Automate Community Super Use
- RobElliottMay 16, 2020Silver Contributor
rautchetan how does the site know which vendor the person visiting the site belongs to? You would would need to have a separate list of every visitor and the vendor they were related to then something might be possible. Apart from that it wouldn't be possible as far as I can see.
Rob
Los Gallardos
Microsoft Power Automate Community Super User- rautchetanMay 16, 2020Brass Contributor
RobElliott If i can create Sharepoint group for each Vendor say Amazon, Mastercard and then for list i have column Vendor with Values Amazon, Mastercard.
Then when user visting page, we can filter Using users sharepoint group and comparing it with column value of list item and display only list items with value same as Sharepoint group name of User. is this possible?
or any other way to achieve this?
- derhallimMay 16, 2020MCT
rautchetanThe way you're describing it is to have a document set for each vendor, and placing the documents for that vendor in this document set. Provide unique permissions on the document set itself, to map to a specific group, i.e: Amazon group. When you place the library on the homepage, users will see only doc sets they have access to.
That's a solution although I don't like it since it's not flexible. What if you want to share more things with vendors later, more than the documents? What if you want to create more folders for other purposes to share with these vendors or SharePoint lists. I'd create a Team Site for each vendor, and give them access to it. From my own hub site I can copy docs to specific vendor sites as needed and I'd guarantee I don't have to keep breaking permissions everywhere to manage vendors.