Skip to content

Enhancement: remove blockEdit and blockDelete options as they do not have effect on spo list retentionlabel set #4207

@martinlingstuyl

Description

@martinlingstuyl

I've been checking the behavior of the --blockEdit and --blockDelete options. These options are slightly odd, they are available in the API for sure, but the functionality is also configured when creating the Purview retention labels themselves.

It seems like you should be able to use blockEdit and blockDelete to override the behavior that you've configured on the purview label. But with the spo list retentionlabel set command the options are ignored. They are communicated to the API fine, but SharePoint ignores their values. When retrieving the list label afterwards, using spo list retentionlabel get, you'll see that the default values that where configured in purview are still visible.

Examples from my tryouts:

image

image

As you can see the options do not influence the label properties. While they where communicated to the API:

image

Suggestion

There is not much documentation on the use of these API's. As it is not working I suggest we remove the two options. I mean, it is actually preferable (and required) to configure these values on the Purview labels in any case. Overriding those values on application seems not really like something you'd typically (want to) do.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions