Skip to content

Read and write to the "LockState" property on a site? #81

@f0oster

Description

@f0oster

Hi again!

How can I go about about reading and updating the LockState property on a site?

Using PnP PowerShell module, I am able to read and write to this property when authenticated to the tenant admin site, but can't find a way to achieve this so far using this library, or via the REST API at all actually.

I did find a "ReadOnly" property. If the site is set to "NoAccess", it cannot be read (permission error on accessing the site). It doesn't really seem to line up with the documentation I've found though, so I'm not confident these properties are actually mapped equivalents.

The references on this property that I can find mostly are centered around on-premise SharePoint only with dependencies on functions provided by .NET DLLs, that seem to be a part of SharePoint Server.

The others I've found refer to the Set-SPOSite (MS SPO module) and Set-PnPTenantSite (PnP PS module) commands, both of which I believe act as wrappers for Microsoft.Online.SharePoint.Client.Tenant.dll.

Is it possible to update this site property using your library?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions