change access on list item using ms flow

%3CLINGO-SUB%20id%3D%22lingo-sub-1448598%22%20slang%3D%22en-US%22%3Echange%20access%20on%20list%20item%20using%20ms%20flow%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1448598%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20using%20%22Grant%20access%20to%20an%20Item%20or%20a%20folder%22%20in%20MS%20Flow%20to%20give%20Edit%20access.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20using%20Role-Can%20Edit%20and%20its%20working%20fine%20and%20user%20can%20edit%20that%20item.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENow%20I%20want%20to%20Rollback%20this%20Edit%20access%20for%20same%20user%20and%20want%20to%20give%20Read%20access%20only.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20using%20same%20flow%20%2C%20with%20same%26nbsp%3B%22Grant%20access%20to%20an%20Item%20or%20a%20folder%22%26nbsp%3B%20only%20changing%20Role-%22Can%20View%22%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ebut%20after%20running%20this%20flow%20with%20Role-%22Can%20View%22%20user%20still%20able%20to%20edit%20it%2C%20i%20want%20user%20only%20read%20it.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ewhat%20changes%20i%20need%20to%20do%20to%20remove%20edit%20access%20and%20keep%20it%20as%20read%20only%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1448598%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ELists%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1449412%22%20slang%3D%22en-US%22%3ERe%3A%20change%20access%20on%20list%20item%20using%20ms%20flow%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1449412%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F670519%22%20target%3D%22_blank%22%3E%40rautchetan27%3C%2FA%3EI%20tried%20to%20replicate%20the%20issue%20with%20the%20below%20flow%20and%20it%20seems%20to%20work%20for%20me%20user%20can%20only%20read.%20I%20think%20you%20might%20have%20already%20done%20but%20make%20sure%20you%20are%20removing%20permission%20and%20adding%20permission%20afterwards.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Vikram_Samal_0-1591646513060.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F197390iE77C0044EC3C98DD%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22Vikram_Samal_0-1591646513060.png%22%20alt%3D%22Vikram_Samal_0-1591646513060.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EOnce%20the%20step%20is%20complete%20this%20is%20the%20item%20level%20permission%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Vikram_Samal_1-1591646638206.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F197391i4DC78E4E4EBEEDA3%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22Vikram_Samal_1-1591646638206.png%22%20alt%3D%22Vikram_Samal_1-1591646638206.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EThanks%2C%3CBR%20%2F%3EVik%3CBR%20%2F%3EIf%20this%20post%20helps%2C%20then%20%3CSTRONG%3Eplease%20consider%20Accept%20it%20as%20the%20solution%3C%2FSTRONG%3E%20to%20help%20the%20other%20members%20find%20it%20more%20quickly.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1450193%22%20slang%3D%22en-US%22%3ERe%3A%20change%20access%20on%20list%20item%20using%20ms%20flow%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1450193%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F394813%22%20target%3D%22_blank%22%3E%40Vikram_Samal%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Edoing%20it%20manually%20for%20each%20item%20is%20very%20long%20process%2C%20can%20we%20do%20that%20for%20all%20items%20for%20user...ie.%20all%20list%20items%20having%20edit%20permission%20for%20users%20in%20one%20short...set%20it%20at%20list%20level%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1451644%22%20slang%3D%22en-US%22%3ERe%3A%20change%20access%20on%20list%20item%20using%20ms%20flow%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1451644%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F670519%22%20target%3D%22_blank%22%3E%40rautchetan27%3C%2FA%3EI%20have%20two%20questions%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3COL%3E%3CLI%3EYou%20want%20to%20set%20permission%20at%20list%20level%20or%20item%20level%3F%3C%2FLI%3E%3CLI%3EWhen%20we%20are%20using%20flow%20why%20you%20have%20to%20do%20manually%2C%20it%20will%20take%20care%20when%20item%20gets%20created.%3C%2FLI%3E%3C%2FOL%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3CBR%20%2F%3EVik%3CBR%20%2F%3EIf%20this%20post%20helps%2C%20then%20please%20consider%20Accept%20it%20as%20the%20solution%20to%20help%20the%20other%20members%20find%20it%20more%20quickly.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1451778%22%20slang%3D%22en-US%22%3ERe%3A%20change%20access%20on%20list%20item%20using%20ms%20flow%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1451778%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F394813%22%20target%3D%22_blank%22%3E%40Vikram_Samal%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20want%20to%20set%20permission%20at%20Item%20level.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20using%20%22%20grant%20access%20to%20an%20item%20or%20a%20folder%22%20and%20giving%20edit%20Role%20%2C%20so%20for%20that%20items..user%20can%20edit.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ebut%20i%20want%20to%20change%20Role%20from%20edit%20to%20view%2C%20I%20am%20using%20same%20%22grant%20access%20to%20an%20item%20or%20a%20folder%22%20and%20giving%26nbsp%3B%20read%20role%20by%20%22Can%20view%22%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ebut%20after%20setting%20it%20to%20%22Can%20view%22%20still%20user%20have%20edit%20access%3Fwhy%20its%20not%20changing%20to%20read%20access%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ehow%20I%20can%20revoke%20edit%20access%20at%20item%20level%20for%20users%20not%20manually...but%20through%20flow%20using%20%22grant%20access%20to%20an%20item%20or%20a%20folder%22%20and%20make%20it%20only%20read%20access%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1451821%22%20slang%3D%22en-US%22%3ERe%3A%20change%20access%20on%20list%20item%20using%20ms%20flow%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1451821%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F394813%22%20target%3D%22_blank%22%3E%40Vikram_Samal%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20dont%20want%20to%20stop%20sharing%20list%20item%20with%20all%20user%2C%20but%20only%20with%20particular%20user.%3C%2FP%3E%3CP%3E%22stop%20sharing%20item%20or%20a%20file%22%20..applicable%20to%20all%20users%2Fgroups...no%20option%20to%20stop%20sharing%20with%20particular%20user%2Fgroup...%3C%2FP%3E%3CP%3Ei%20dont%20want%20that%2C%20i%20want%20stop%20sharing%20user%20specific%20for%20list%20item%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Contributor

I am using "Grant access to an Item or a folder" in MS Flow to give Edit access.

 

I am using Role-Can Edit and its working fine and user can edit that item.

 

Now I want to Rollback this Edit access for same user and want to give Read access only.

 

I am using same flow , with same "Grant access to an Item or a folder"  only changing Role-"Can View"

 

but after running this flow with Role-"Can View" user still able to edit it, i want user only read it.

 

what changes i need to do to remove edit access and keep it as read only

5 Replies
Highlighted

@rautchetan27I tried to replicate the issue with the below flow and it seems to work for me user can only read. I think you might have already done but make sure you are removing permission and adding permission afterwards.

Vikram_Samal_0-1591646513060.png

Once the step is complete this is the item level permission:

Vikram_Samal_1-1591646638206.png

Thanks,
Vik
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Highlighted

@Vikram_Samal 

 

doing it manually for each item is very long process, can we do that for all items for user...ie. all list items having edit permission for users in one short...set it at list level?

Highlighted

@rautchetan27I have two questions:

 

  1. You want to set permission at list level or item level?
  2. When we are using flow why you have to do manually, it will take care when item gets created.

 

Thanks,
Vik
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Highlighted

@Vikram_Samal 

 

I want to set permission at Item level.

 

I am using " grant access to an item or a folder" and giving edit Role , so for that items..user can edit.

 

but i want to change Role from edit to view, I am using same "grant access to an item or a folder" and giving  read role by "Can view"

 

but after setting it to "Can view" still user have edit access?why its not changing to read access?

 

how I can revoke edit access at item level for users not manually...but through flow using "grant access to an item or a folder" and make it only read access

Highlighted

@Vikram_Samal 

 

I dont want to stop sharing list item with all user, but only with particular user.

"stop sharing item or a file" ..applicable to all users/groups...no option to stop sharing with particular user/group...

i dont want that, i want stop sharing user specific for list item