Auto Unmap OneDrive Synced site in Admin Console

SystemUser 11 Reputation points
2022-10-17T16:59:38.35+00:00

Intune and Group Policy provide a way to automap a SharePoint library to OneDrive. How do you use Intune and Group Policy to unmap/remove the library when a user's permissions are removed?
AKA - how to undo what was done

As seen here: https://learn.microsoft.com/en-us/sharepoint/use-group-policy#configure-team-site-libraries-to-sync-automatically
If you disable this setting, team site libraries that you've specified aren't automatically synced for new users. Existing users can choose to stop syncing the libraries, but the libraries
won't stop syncing automatically.

I want to stop them from syncing automatically, as you should be able to as an admin.

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
4,833 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,819 questions
OneDrive Management
OneDrive Management
OneDrive: A Microsoft file hosting and synchronization service.Management: The act or process of organizing, handling, directing or controlling something.
1,144 questions
Microsoft Intune Application management
Microsoft Intune Application management
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Application management: The process of creating, configuring, managing, and monitoring applications.
891 questions
0 comments No comments
{count} vote

3 answers

Sort by: Most helpful
  1. SystemUser 11 Reputation points
    2022-10-18T16:44:05.59+00:00

    So I understand it correctly, your solution is to delete a SharePoint library each time a member of a group is removed from the group that has access to that SharePoint library?

    That is not a solution, especially in an enterprise environment.

    The solution is for Microsoft to finish developing their half-finished OneDrive project to include the obvious ability to remove the SharePoint library from OneDrive once the user's permission is removed. This is a serious compliance and security issue.

    1 person found this answer helpful.

  2. Haoyan Xue_MSFT 20,591 Reputation points Microsoft Vendor
    2022-10-18T06:07:34.35+00:00

    Hi @SystemUser ,
    When you finish configuring the automatic synchronization of the team site library. Even though you remove it from the policy, this just prevents adding it for new users. It doesn't remove it from the existing user's OneDrive settings.
    So if we want to stop automatic synchronization, we can only start from the library level.
    You can create a new library, use MoveTo to transfer all the files, and then delete the library that has been automatically synced.
    I found a similar thread for you, you can refer to: https://learn.microsoft.com/en-us/answers/questions/530877/remove-a-sharepoint-online-doc-library-from-onedri.html


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  3. Ibrahim Elsayed 0 Reputation points
    2024-05-01T07:28:02.0966667+00:00

    https://feedbackportal.microsoft.com/feedback/idea/cc324807-e4d6-ee11-92bd-000d3a7a5824

    This Feedback is given for the same case to be developed.

    You can follow the request hear till the option get developed by microsoft.

    0 comments No comments