Regarding the Sharing Permisssion on the SharePont on premise

%3CLINGO-SUB%20id%3D%22lingo-sub-830584%22%20slang%3D%22en-US%22%3ERegarding%20the%20Sharing%20Permisssion%20on%20the%20SharePont%20on%20premise%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-830584%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20there%2C%3C%2FP%3E%3CP%3EI%20have%20scenario%20is%20when%20I%20add%20a%20user%20(A)%20into%20the%20SharePoint%20group%20automatically%20by%20custom%20program.%20now%20after%20that%2C%3C%2FP%3E%3COL%3E%3CLI%3EI%20share%201%20document%20in%20the%20ABC%20document%20library%20to%20A.%20that%20means%20user%20(A)%20can%20access%20the%20document%20I%20shared.%26nbsp%3B%3C%2FLI%3E%3CLI%3EI%20share%20another%20document%20in%20the%20DEF%20document%20library%20to%20A.%20that%20means%20user%20(A)%20can%20access%20the%20document%20I%20shared%20as%20well.%3C%2FLI%3E%3C%2FOL%3E%3CP%3EOne%20day%2C%20user%20A%20quits%20the%20job.%20so%20after%20workflow%20completed%2C%20the%20custom%20program%20will%20removes%20the%20user%20permission%20from%20SharePoint%20Group.%20BUT%20my%20question%20is%20how%20to%20find%20out%20these%20two%20documents%20I%20shared%20then%20remove%20the%20user%20A%20permissions.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWILL%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-830584%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-831551%22%20slang%3D%22en-US%22%3ERe%3A%20Regarding%20the%20Sharing%20Permisssion%20on%20the%20SharePont%20on%20premise%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-831551%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F180999%22%20target%3D%22_blank%22%3E%40Will%20%23%20_________%20H%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20do%20not%20have%20to%20go%20and%20find%20if%20the%20user%20has%20left%2Fremoved%20from%20the%20organisation%20rather%20you%20need%20to%20go%20to%20each%20site%20collection%20and%20go%20the%20following%20link%20which%20will%20give%20you%20all%20user%20details%20for%20the%20site%20collection.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ehttps%3A%2F%2F%7B%3CSTRONG%3ETenant%20Name%3C%2FSTRONG%3E%7D.sharepoint.com%2Fsites%2F%7B%3CSTRONG%3ESite%20Name%3C%2FSTRONG%3E%7D%2F_layouts%2F15%2Fpeople.aspx%3FMembershipGroupId%3D0%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThen%20select%2Fcheck%20the%20user%20who%20you%20want%20to%20remove%20and%20click%20the%20option%20%22Delete%20User%20from%20Site%20Collection%22%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F129394i7BB26EAD673DF676%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_0.png%22%20title%3D%22clipboard_image_0.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EThis%20will%20remove%20the%20user%20from%20all%20the%20site%2C%20list%2C%20library%20or%20item%20level%20permission.%20Hope%20this%20helps.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20use%20this%20approach%20everyday%20to%20mange%20our%20deactivated%20users%20but%20using%20programmatic%20approach.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-843159%22%20slang%3D%22en-US%22%3ERe%3A%20Regarding%20the%20Sharing%20Permisssion%20on%20the%20SharePont%20on%20premise%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-843159%22%20slang%3D%22en-US%22%3EI%20think%20I%20found%20out%20where%20the%20issue%20is%20...%20thanks%20for%20your%20information.%20Now%20I%20just%20remove%20the%20permission%20of%20user%20account%20from%20SharePoint%20Group%20that%20will%20come%20with%20the%20permission%20of%20sharing%20will%20be%20removed%20as%20well%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-844861%22%20slang%3D%22en-US%22%3ERe%3A%20Regarding%20the%20Sharing%20Permisssion%20on%20the%20SharePont%20on%20premise%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-844861%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F180999%22%20target%3D%22_blank%22%3E%40Will%20%23%20_________%20H%3C%2FA%3E%26nbsp%3BThanks%20will%20glad%20I%20could%20help.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Frequent Contributor

Hi there,

I have scenario is when I add a user (A) into the SharePoint group automatically by custom program. now after that,

  1. I share 1 document in the ABC document library to A. that means user (A) can access the document I shared. 
  2. I share another document in the DEF document library to A. that means user (A) can access the document I shared as well.

One day, user A quits the job. so after workflow completed, the custom program will removes the user permission from SharePoint Group. BUT my question is how to find out these two documents I shared then remove the user A permissions.

 

WILL

3 Replies
Highlighted

@Will # _________ H 

You do not have to go and find if the user has left/removed from the organisation rather you need to go to each site collection and go the following link which will give you all user details for the site collection.

 

https://{Tenant Name}.sharepoint.com/sites/{Site Name}/_layouts/15/people.aspx?MembershipGroupId=0

 

Then select/check the user who you want to remove and click the option "Delete User from Site Collection"

 

clipboard_image_0.png

This will remove the user from all the site, list, library or item level permission. Hope this helps.

 

We use this approach everyday to mange our deactivated users but using programmatic approach.

Highlighted
I think I found out where the issue is ... thanks for your information. Now I just remove the permission of user account from SharePoint Group that will come with the permission of sharing will be removed as well
Highlighted