I am building some logic programmatically. The target is to archive a site collection. I need to remove all the permissions and give everybody read permissions. In SharePoint 2013 on prem it was possible with the lockstate.
I read this article and I see you can use the lockstate also for O365, but it has only the possiblity to do NoAccess or Unlock. There is no read only like in on prem.
What is the best practice to set a site collection on read only?