filting/restricting list items on the basis of user group in sharepoint online classic

Brass Contributor

I want to filter items of list library on the basis of sharepoint groups. users belong to one sharepoint group-IT can only see list items which having value in one column Vendor='IT'

users belong to another sharepoint group -Finance can only see list items which having value in column Vendor='finance'

when user visit page he can only see list items which having value in column mapped with user group.

how can I achieve this in sharepoint online classic

 

please find following article for solution,will it work?

 

https://www.crowcanyon.help/article/304/

9 Replies

@rautchetan You can achieve this by using item level permission

 

Start with creating let 2 group "IT Users" and "Finance Users"

Then when item is getting created trigger a flow or workflow to set the permission for those groups accordingly.

 

So you permission will look some thing like this:

 

List level - Read access to "IT Users" and "Finance Users"

  1. Item Level IT items only "IT Users" group will have access - You can give read/write/fc as per your need
  2. Item Level Finance items only "Finance Users" group will have access - You can give read/write/fc as per your need

Hope this helps. Mark the response appropriately if it helps you achieve the solution.

 

Thanks

Vik

@Vikram_Samal 

 

Hi,

 

its not just about restricting access, I don't want to show list items which having different item groups.

so IT sharepoint group user can see only IT list items and no other list item.

similarly Finance sharepoint group user can see only Finance list items and no other list items.

Yes I meant that when you will be allowing IT group permission remove others and same for others as well for finance items give only finance team permission. That will ensure the respective group will see only their items not others.

Vik

@Vikram_Samal 

 

what about solution, mentioned in following link, its easy solution using CAML query, will it work?

any idea?

 

https://www.crowcanyon.help/article/304/

There are two aspects the solution you have shared one this is old will have lot of limitation using SharePoint designer approaches. Finally when you want to show and hide items you need to have the robust approach like item level permission which gives you 100% certainty of people having access on right items.

So if I will be in you place I will be inclined to the permission based approach as it will give peace of mind.

Thanks
Vik

@Vikram_Samal 

 

I got it, thanks!

but my question is , I already have list items, how I will change there permissions, do I need it to do manually, assigned it to each sharepoint group.

@Vikram_Samal 

 

can I put Recipients as SharePoint group name(please see attached image)

 

do I need to put it as IT_Group@onmicrosoft.com, its not finding IT_group automatically

 @Vikram_Samal 

 

I am using following CAML query for filtering list , but its not showing correct filter data, whats issue in this

 

<And><Membership Type="CurrentUserGroups"><FieldRef Name="Vendor"/></Membership></And>

@rautchetan Sorry for delay in reply you can set up a MS flow where you can set up condition which group should have permission and you can add some conditional block saying if IT which group should be given if finance which group should be given permission. I have shown how you can implement using flow:

Vikram_Samal_0-1590676527737.png

 

Hopefully this helps.

 

Thanks

Vik