How to make onedrive read only with some exceptions?

2023-06-14T13:37:42.1933333+00:00

Dear all,

I'm using the followed command to turn onedrive read only:

Set-SPOSite https://xxxxxxxxxxxx-my.sharepoint.com/personal/xxxxxxxxxxx -LockState ReadOnly

It works properly, but once all folders are read only, users can not share archives through MS Teams, because, of course, "MS Teams Chat Archives" folder is also read only. The same situation happens with "Recorded Meetings" folder from MS Teams.

Does anyone know if there's a way to keep onedrive read only except these two folders? Maybe a power shell script...

Regards,

Raphaela

Microsoft 365 and Office | SharePoint Server | For business
Microsoft 365 and Office | SharePoint | Development
Microsoft 365 and Office | OneDrive | For business | Windows
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Emily Du-MSFT 51,846 Reputation points Microsoft External Staff
    2023-06-15T08:40:59.0266667+00:00

    Per my research, there is no option to keep OneDrive site read only except two folders.

    As a workaround, you could remove all users' permissions for this OneDrive site except these two folders, then the OneDrive site shows read only for users.


    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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.