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
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:--scope [scope]anonymous,usersororganization. By default all sharing links are listed.To achieve this, we can add an extra filter on the current API request:
Update
defaultPropertiesBesides that, I think it would be useful as well to include this scope in our
defaultProperties. Right now, onlyid,rolesandlinkare listed there, to mescopecan be useful here as well.To do
--scope [scope]scopeto thedefaultPropertiesand make sure it's listed properly fortextandcsvoutput