Skip to content

Add new option scope to spo file sharinglink list #4314

@milanholemans

Description

@milanholemans

New option

Currently we have a command in beta called spo file sharinglink list. To me it seems a nice enhancement to add an extra option:

Option Description
--scope [scope] Filter the results to only sharing links of a given scope: anonymous, users or organization. By default all sharing links are listed.

To achieve this, we can add an extra filter on the current API request:

?$filter=Link/Scope eq 'anonymous'

Update defaultProperties

Besides that, I think it would be useful as well to include this scope in our defaultProperties. Right now, only id, roles and link are listed there, to me scope can be useful here as well.

To do

  • Introduce new option --scope [scope]
  • Add scope to the defaultProperties and make sure it's listed properly for text and csv output
  • Update the response section in the docs

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions