Skip to content

spo web retentionlabel list

Get a list of retention labels that are available on a site.


m365 spo web retentionlabel list [options]


-u, --webUrl <webUrl>
URL of the site.
-h, --help [help]
Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are options, examples, remarks, response, full. Default is full.
--query [query]
JMESPath query string. See for more information and examples
-o, --output [output]
Output type. json,text,csv,md. Default json
Runs command with verbose logging
Runs command with debug logging


Get a list of retention labels for the Sales site

m365 spo web retentionlabel list --webUrl ''


    "AcceptMessagesOnlyFromSendersOrMembers": false,
    "AccessType": null,
    "AllowAccessFromUnmanagedDevice": null,
    "AutoDelete": true,
    "BlockDelete": true,
    "BlockEdit": false,
    "ComplianceFlags": 1,
    "ContainsSiteLabel": false,
    "DisplayName": "",
    "EncryptionRMSTemplateId": null,
    "HasRetentionAction": true,
    "IsEventTag": false,
    "MultiStageReviewerEmail": null,
    "NextStageComplianceTag": null,
    "Notes": null,
    "RequireSenderAuthenticationEnabled": false,
    "ReviewerEmail": null,
    "SharingCapabilities": null,
    "SuperLock": false,
    "TagDuration": 2555,
    "TagId": "def61080-111c-4aea-b72f-5b60e516e36c",
    "TagName": "Some label",
    "TagRetentionBasedOn": "CreationAgeInDays",
    "UnlockedAsDefault": false
TagId                                 TagName
------------------------------------  --------------
def61080-111c-4aea-b72f-5b60e516e36c  Some label
def61080-111c-4aea-b72f-5b60e516e36c,Some label,true