Usage
m365 spo folder retentionlabel ensure [options]
Description
Apply a retention label to a folder
Options
| Option |
Description |
-u, --webUrl <webUrl> |
The url of the web. |
--folderUrl [folderUrl] |
The site-relative URL or server-relative URL of the folder that should be labelled. Specify either folderUrl or folderId but not both. |
i, --folderId [folderId] |
The UniqueId (GUID) of the folder that should be labelled. Specify either folderUrl or folderId but not both. |
--name <name> |
Name of the retention label to apply to the folder. |
Examples
Apply the label some label to a folder
m365 spo folder retentionlabel set --webUrl 'https://contoso.sharepoint.com/sites/sales' --folderUrl '/sites/sales/somelibrary/somefolder' --name 'Some retention label'
More information
This command can be implemented with shared code created for #4158.
Usage
m365 spo folder retentionlabel ensure [options]
Description
Apply a retention label to a folder
Options
-u, --webUrl <webUrl>--folderUrl [folderUrl]folderUrlorfolderIdbut not both.i, --folderId [folderId]folderUrlorfolderIdbut not both.--name <name>Examples
Apply the label some label to a folder
More information