Removing access to Office 365 group and sharepoint doesn't clean up local folders.

%3CLINGO-SUB%20id%3D%22lingo-sub-991514%22%20slang%3D%22en-US%22%3ERemoving%20access%20to%20Office%20365%20group%20and%20sharepoint%20doesn't%20clean%20up%20local%20folders.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-991514%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20use%20onedrive%20for%20business%20and%20sharepoint%20to%20manage%20access%20to%20documents.%20We%20regularly%20add%2Fremove%20users%20from%20groups%20as%20needed.%20If%20a%20user%20has%20synced%20a%20sharepoint%20library%20and%20then%20is%20later%20removed%20from%20the%20group%20then%20the%20onedrive%20client%20throws%20an%20error%20that%20it%20can%20no%20longer%20sync%20the%20group%20and%20the%20user%20has%20to%20go%20into%20the%20onedrive%20client%20and%20remove%20the%20location%20from%20syncing%20and%20then%20more%20importantly%20the%20local%20folder%20is%20not%20cleaned%20up%20and%20any%20previously%20synced%20files%20are%20not%20deleted%20unless%20the%20user%20manually%20goes%20and%20deletes%20the%20folder.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20is%20the%20correct%20way%20to%20manage%20this%20as%20we%20have%20no%20confidence%20that%20files%20files%20aren't%20being%20left%20accidently%20left%20on%20devices%20even%20though%20we%20are%20managing%20access%20correctly.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-991514%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdmin%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOneDrive%20for%20Business%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-994793%22%20slang%3D%22en-US%22%3ERe%3A%20Removing%20access%20to%20Office%20365%20group%20and%20sharepoint%20doesn't%20clean%20up%20local%20folders.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-994793%22%20slang%3D%22en-US%22%3EThere%20is%20no%20available%20feature%20for%20what%20you%20are%20trying%20to%20achieve%20If%20the%20file%20is%20synced%20with%20your%20local%20machine%2C%20the%20data%20will%20stay%20there%20until%20the%20user%20manually%20deletes%20it.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-994800%22%20slang%3D%22en-US%22%3ERe%3A%20Removing%20access%20to%20Office%20365%20group%20and%20sharepoint%20doesn't%20clean%20up%20local%20folders.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-994800%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F119994%22%20target%3D%22_blank%22%3E%40Ricardo%20Viana%3C%2FA%3Edoes%20this%20not%20seem%20a%20bit%20strange%20that%20this%20feature%20is%20missing.%20I%20appreciate%20can't%20guarantee%20files%20are%20cleaned%20and%20users%20can%20copy%20files%20etc%20but%20adding%20removing%20users%20from%20groups%20is%20a%20common%20action%20and%20expecting%20it%20to%20tidy%20up%20resources%20seems%20reasonable%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-994819%22%20slang%3D%22en-US%22%3ERe%3A%20Removing%20access%20to%20Office%20365%20group%20and%20sharepoint%20doesn't%20clean%20up%20local%20folders.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-994819%22%20slang%3D%22en-US%22%3EI%20agree%20it%20would%20be%20a%20good%20thing%20to%20have.%20Check%20this%20UserVoice%20(not%20a%20lot%20of%20traction%2C%20but%20worths%20trying)%3A%20%3CA%20href%3D%22https%3A%2F%2Fonedrive.uservoice.com%2Fforums%2F262982-onedrive-archive%2Fsuggestions%2F7335806-remove-synced-file-when-team-site-permissions-chan%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fonedrive.uservoice.com%2Fforums%2F262982-onedrive-archive%2Fsuggestions%2F7335806-remove-synced-file-when-team-site-permissions-chan%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EThere%20is%20also%20this%20comment%20in%20the%20UserVoice%20that%20might%20help%20you%20find%20a%20workaround%3A%20%3CA%20href%3D%22https%3A%2F%2Fwww.iphase.dk%2Fauto-mapping-office-365-group-drives-with-onedrive%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.iphase.dk%2Fauto-mapping-office-365-group-drives-with-onedrive%2F%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EAt%20the%20moment%2C%20I%20don't%20have%20the%20time%20to%20go%20through%20the%20script%20but%20if%20you%20are%20able%20to%20find%20a%20solution%20let%20me%20know%20%3A)%3C%2Fimg%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-994834%22%20slang%3D%22en-US%22%3ERe%3A%20Removing%20access%20to%20Office%20365%20group%20and%20sharepoint%20doesn't%20clean%20up%20local%20folders.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-994834%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F119994%22%20target%3D%22_blank%22%3E%40Ricardo%20Viana%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Efor%20some%20reason%20that%20uservoice%20is%20locked.%20I%20have%20created%20my%20own%20and%20also%20voted%20on%20some%20similar%20issues.%20Scripting%20seems%20to%20be%20the%20workaround%20for%20now!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-994843%22%20slang%3D%22en-US%22%3ERe%3A%20Removing%20access%20to%20Office%20365%20group%20and%20sharepoint%20doesn't%20clean%20up%20local%20folders.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-994843%22%20slang%3D%22en-US%22%3Ecan%20you%20please%20share%20it%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1006912%22%20slang%3D%22en-US%22%3ERe%3A%20Removing%20access%20to%20Office%20365%20group%20and%20sharepoint%20doesn't%20clean%20up%20local%20folders.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1006912%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F119994%22%20target%3D%22_blank%22%3E%40Ricardo%20Viana%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fonedrive.uservoice.com%2Fforums%2F913534-onedrive-security-policy-administration%2Fsuggestions%2F38987683-delete-local-files-and-stop-syncing-after-being-re%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fonedrive.uservoice.com%2Fforums%2F913534-onedrive-security-policy-administration%2Fsuggestions%2F38987683-delete-local-files-and-stop-syncing-after-being-re%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1292483%22%20slang%3D%22en-US%22%3ERe%3A%20Removing%20access%20to%20Office%20365%20group%20and%20sharepoint%20doesn't%20clean%20up%20local%20folders.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1292483%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F449824%22%20target%3D%22_blank%22%3E%40acraft%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3EWe%20have%20this%20issue%20as%20well%20-%20thanks%20for%20creating%20the%20idea%20on%20uservoice%2C%20I've%20just%20voted%20it%20up.%20Surprised%20it's%20not%20raised%20by%20more%20people.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

We use onedrive for business and sharepoint to manage access to documents. We regularly add/remove users from groups as needed. If a user has synced a sharepoint library and then is later removed from the group then the onedrive client throws an error that it can no longer sync the group and the user has to go into the onedrive client and remove the location from syncing and then more importantly the local folder is not cleaned up and any previously synced files are not deleted unless the user manually goes and deletes the folder.

 

What is the correct way to manage this as we have no confidence that files files aren't being left accidently left on devices even though we are managing access correctly.

 

thanks

7 Replies
Highlighted
There is no available feature for what you are trying to achieve If the file is synced with your local machine, the data will stay there until the user manually deletes it.
Highlighted

@Ricardo Vianadoes this not seem a bit strange that this feature is missing. I appreciate can't guarantee files are cleaned and users can copy files etc but adding removing users from groups is a common action and expecting it to tidy up resources seems reasonable?

 

Highlighted
I agree it would be a good thing to have. Check this UserVoice (not a lot of traction, but worths trying): https://onedrive.uservoice.com/forums/262982-onedrive-archive/suggestions/7335806-remove-synced-file...

There is also this comment in the UserVoice that might help you find a workaround: https://www.iphase.dk/auto-mapping-office-365-group-drives-with-onedrive/

At the moment, I don't have the time to go through the script but if you are able to find a solution let me know :)
Highlighted

@Ricardo Viana 

 

for some reason that uservoice is locked. I have created my own and also voted on some similar issues. Scripting seems to be the workaround for now!

 

Highlighted
Highlighted

@acraft 
We have this issue as well - thanks for creating the idea on uservoice, I've just voted it up. Surprised it's not raised by more people.