Bulk Removal of Access for User

%3CLINGO-SUB%20id%3D%22lingo-sub-2053144%22%20slang%3D%22en-US%22%3EBulk%20Removal%20of%20Access%20for%20User%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2053144%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20an%20employee%20on%20my%20team%20that%20is%20moving%20to%20another%20role%20in%20another%20department%20of%20our%20company.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHow%20do%20I%20find%20all%20files%20that%20were%20shared%20with%20him%20and%20revoke%20access%20to%20them%3F%20I%20have%20not%20been%20able%20to%20find%20that%20anywhere%20on%20the%20OneDrive%20page%20on%20the%20portal.%20I've%20looked%20at%20One%20Drive%20-%26gt%3B%20Shared%20-%26gt%3B%20Shared%20by%20You%20and%20I%20cannot%20find%20anything%20that%20would%20show%20just%20what%20is%20shared%20with%20that%20user.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20a%20team%20of%205%20people%20and%20I%20share%20files%20with%20many%20people%20in%20the%20company%20(I%20own%20important%20documents%20like%20Policies%20and%20Procedures%20and%20assessments%20that%20are%20shared%20with%20many%20people%2C%20so%20I%20cant%20just%20nuke%20everything.)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20an%20easy%20way%20to%20revoke%20access%20for%20one%20user%3F%20He%20will%20not%20need%20access%20to%20anything%20that%20I%20have%20stored%20in%20his%20new%20role.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2053144%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFiles%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOneDrive%20for%20Business%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPermissions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Visitor

I have an employee on my team that is moving to another role in another department of our company.

 

How do I find all files that were shared with him and revoke access to them? I have not been able to find that anywhere on the OneDrive page on the portal. I've looked at One Drive -> Shared -> Shared by You and I cannot find anything that would show just what is shared with that user.

 

I have a team of 5 people and I share files with many people in the company (I own important documents like Policies and Procedures and assessments that are shared with many people, so I cant just nuke everything.)

 

Is there an easy way to revoke access for one user? He will not need access to anything that I have stored in his new role.

1 Reply

There's nothing built-in for this scenario afaik, but you should be able to leverage the Graph API or CSOM to remove permissions programmatically.