@pnp/cli-microsoft365 6.2.0-beta.d0cdaa3 → 6.2.0-beta.d5442a1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/.eslintrc.js +6 -0
  2. package/dist/m365/aad/commands/approleassignment/approleassignment-add.js +3 -0
  3. package/dist/m365/pp/commands/aibuildermodel/aibuildermodel-list.js +68 -0
  4. package/dist/m365/pp/commands.js +1 -0
  5. package/dist/m365/purview/commands/retentionlabel/retentionlabel-get.js +70 -0
  6. package/dist/m365/purview/commands.js +1 -0
  7. package/dist/m365/spo/commands/file/GraphFileDetails.js +3 -0
  8. package/dist/m365/spo/commands/file/file-sharinginfo-get.js +12 -12
  9. package/dist/m365/spo/commands/file/file-sharinglink-list.js +120 -0
  10. package/dist/m365/spo/commands/group/group-member-remove.js +78 -33
  11. package/dist/m365/spo/commands/list/list-retentionlabel-ensure.js +10 -2
  12. package/dist/m365/spo/commands/listitem/ListItemRetentionLabel.js +3 -0
  13. package/dist/m365/spo/commands/listitem/SiteRetentionLabel.js +3 -0
  14. package/dist/m365/spo/commands/listitem/listitem-record-lock.js +129 -0
  15. package/dist/m365/spo/commands/listitem/listitem-record-unlock.js +129 -0
  16. package/dist/m365/spo/commands/listitem/listitem-retentionlabel-ensure.js +161 -0
  17. package/dist/m365/spo/commands.js +4 -0
  18. package/dist/m365/teams/commands/chat/chat-list.js +29 -7
  19. package/dist/request.js +2 -2
  20. package/docs/docs/cmd/planner/bucket/bucket-add.md +17 -0
  21. package/docs/docs/cmd/planner/bucket/bucket-get.md +17 -0
  22. package/docs/docs/cmd/planner/bucket/bucket-list.md +17 -0
  23. package/docs/docs/cmd/planner/plan/plan-add.md +40 -0
  24. package/docs/docs/cmd/planner/plan/plan-get.md +21 -0
  25. package/docs/docs/cmd/planner/plan/plan-list.md +19 -0
  26. package/docs/docs/cmd/planner/plan/plan-set.md +20 -0
  27. package/docs/docs/cmd/pp/aibuildermodel/aibuildermodel-list.md +95 -0
  28. package/docs/docs/cmd/purview/retentionlabel/retentionlabel-get.md +95 -0
  29. package/docs/docs/cmd/spo/file/file-sharinglink-list.md +97 -0
  30. package/docs/docs/cmd/spo/group/group-member-remove.md +24 -6
  31. package/docs/docs/cmd/spo/list/list-retentionlabel-ensure.md +8 -5
  32. package/docs/docs/cmd/spo/listitem/listitem-record-lock.md +52 -0
  33. package/docs/docs/cmd/spo/listitem/listitem-record-unlock.md +52 -0
  34. package/docs/docs/cmd/spo/listitem/listitem-retentionlabel-ensure.md +58 -0
  35. package/docs/docs/cmd/teams/chat/chat-list.md +16 -4
  36. package/npm-shrinkwrap.json +182 -202
  37. package/package.json +12 -11
@@ -118,3 +118,24 @@ m365 planner plan get --title "MyPlan" --ownerGroupName "My Planner Group"
118
118
  id,title,createdDateTime,owner
119
119
  xqQg5FS2LkCp935s-FIFm2QAFkHM,My Planner Plan,2015-03-30T18:36:49.2407981Z,ebf3b108-5234-4e22-b93d-656d7dae5874
120
120
  ```
121
+
122
+ === "Markdown"
123
+
124
+ ```md
125
+ # planner plan get --id "xqQg5FS2LkCp935s-FIFm2QAFkHM"
126
+
127
+ Date: 27/12/2022
128
+
129
+ ## My Planner Plan (xqQg5FS2LkCp935s-FIFm2QAFkHM)
130
+
131
+ Property | Value
132
+ ---------|-------
133
+ createdDateTime | 2015-03-30T18:36:49.2407981Z
134
+ owner | ebf3b108-5234-4e22-b93d-656d7dae5874
135
+ title | My Planner Plan
136
+ id | xqQg5FS2LkCp935s-FIFm2QAFkHM
137
+ createdBy | {"user":{"displayName":null,"id":"dd8b99a7-77c6-4238-a609-396d27844921"},"application":{"displayName":null,"id":"31359c7f-bd7e-475c-86db-fdb8c937548e"}}
138
+ container | {"containerId":"ebf3b108-5234-4e22-b93d-656d7dae5874","type":"group","url":"https://graph.microsoft.com/v1.0/groups/ebf3b108-5234-4e22-b93d-656d7dae5874"}
139
+ sharedWith | {"aa089c1a-0ca8-4b36-ae2e-c5d60f054a2c":true,"ebf3b108-5234-4e22-b93d-656d7dae5874":true}
140
+ categoryDescriptions | {"category1":null,"category2":null,"category3":null,"category4":null,"category5":null,"category6":null,"category7":null,"category8":null,"category9":null,"category10":null,"category11":null,"category12":null,"category13":null,"category14":null,"category15":null,"category16":null,"category17":null,"category18":null,"category19":null,"category20":null,"category21":null,"category22":null,"category23":null,"category24":null,"category25":null}
141
+ ```
@@ -76,3 +76,22 @@ m365 planner plan list --ownerGroupName "My Planner Group"
76
76
  id,title,createdDateTime,owner
77
77
  xqQg5FS2LkCp935s-FIFm2QAFkHM,My Planner Plan,2015-03-30T18:36:49.2407981Z,ebf3b108-5234-4e22-b93d-656d7dae5874
78
78
  ```
79
+
80
+ === "Markdown"
81
+
82
+ ```md
83
+ # planner plan list --ownerGroupId "ebf3b108-5234-4e22-b93d-656d7dae5874"
84
+
85
+ Date: 27/12/2022
86
+
87
+ ## My Planner Plan (xqQg5FS2LkCp935s-FIFm2QAFkHM)
88
+
89
+ Property | Value
90
+ ---------|-------
91
+ createdDateTime | 2021-12-12T14:00:50.4522129Z
92
+ owner | ebf3b108-5234-4e22-b93d-656d7dae5874
93
+ title | My Planner Plan
94
+ id | xqQg5FS2LkCp935s-FIFm2QAFkHM
95
+ createdBy | {"user":{"displayName":null,"id":"dd8b99a7-77c6-4238-a609-396d27844921"},"application":{"displayName":null,"id":"09abbdfd-ed23-44ee-a2d9-a627aa1c90f3"}}
96
+ container | {"containerId":"ebf3b108-5234-4e22-b93d-656d7dae5874","type":"group","url":"https://graph.microsoft.com/v1.0/groups/ebf3b108-5234-4e22-b93d-656d7dae5874"}
97
+ ```
@@ -142,3 +142,23 @@ m365 planner plan set --id 'gndWOTSK60GfPQfiDDj43JgACDCb' --category21 'ToDo' --
142
142
  xqQg5FS2LkCp935s-FIFm2QAFkHM,My Planner Plan,2015-03-30T18:36:49.2407981Z,ebf3b108-5234-4e22-b93d-656d7dae5874
143
143
  ```
144
144
 
145
+ === "Markdown"
146
+
147
+ ```md
148
+ # planner plan set --id "xqQg5FS2LkCp935s-FIFm2QAFkHM" --newTitle "My Planner Plan"
149
+
150
+ Date: 27/12/2022
151
+
152
+ ## My Planner Plan (xqQg5FS2LkCp935s-FIFm2QAFkHM)
153
+
154
+ Property | Value
155
+ ---------|-------
156
+ createdDateTime | 2015-03-30T18:36:49.2407981Z
157
+ owner | ebf3b108-5234-4e22-b93d-656d7dae5874
158
+ title | My Planner Plan
159
+ id | xqQg5FS2LkCp935s-FIFm2QAFkHM
160
+ createdBy | {"user":{"displayName":null,"id":"dd8b99a7-77c6-4238-a609-396d27844921"},"application":{"displayName":null,"id":"31359c7f-bd7e-475c-86db-fdb8c937548e"}}
161
+ container | {"containerId":"ebf3b108-5234-4e22-b93d-656d7dae5874","type":"group","url":"https://graph.microsoft.com/v1.0/groups/ebf3b108-5234-4e22-b93d-656d7dae5874"}
162
+ sharedWith | {"ebf3b108-5234-4e22-b93d-656d7dae5874":true,"6463a5ce-2119-4198-9f2a-628761df4a62":true}
163
+ categoryDescriptions | {"category1":null,"category2":null,"category3":null,"category4":null,"category5":null,"category6":null,"category7":null,"category8":null,"category9":null,"category10":null,"category11":null,"category12":null,"category13":null,"category14":null,"category15":null,"category16":null,"category17":null,"category18":null,"category19":null,"category20":null,"category21":null,"category22":null,"category23":null,"category24":null,"category25":null}
164
+ ```
@@ -0,0 +1,95 @@
1
+ # pp aibuildermodel list
2
+
3
+ List available AI builder models in the specified Power Platform environment
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ pp aibuildermodel list [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-e, --environment <environment>`
14
+ : The name of the environment
15
+
16
+ `--asAdmin`
17
+ : Run the command as admin for environments you do not have explicitly assigned permissions to
18
+
19
+ --8<-- "docs/cmd/_global.md"
20
+
21
+ ## Examples
22
+
23
+ List all AI Builder models in a specific environment
24
+
25
+ ```sh
26
+ m365 pp aibuildermodel list --environment "Default-d87a7535-dd31-4437-bfe1-95340acd55c5"
27
+ ```
28
+
29
+ List all AI Builder models in a specific environment as admin
30
+
31
+ ```sh
32
+ m365 pp aibuildermodel list --environment "Default-d87a7535-dd31-4437-bfe1-95340acd55c5" --asAdmin
33
+ ```
34
+
35
+ ## Response
36
+
37
+ === "JSON"
38
+
39
+ ```json
40
+ [
41
+ {
42
+ "statecode": 0,
43
+ "_msdyn_templateid_value": "10707e4e-1d56-e911-8194-000d3a6cd5a5",
44
+ "msdyn_modelcreationcontext": "{}",
45
+ "createdon": "2022-11-29T11:58:45Z",
46
+ "_ownerid_value": "5fa787c1-1c4d-ed11-bba1-000d3a2caf7f",
47
+ "modifiedon": "2022-11-29T11:58:45Z",
48
+ "msdyn_sharewithorganizationoncreate": false,
49
+ "msdyn_aimodelidunique": "b0328b67-47e2-4202-8189-e617ec9a88bd",
50
+ "solutionid": "fd140aae-4df4-11dd-bd17-0019b9312238",
51
+ "ismanaged": false,
52
+ "versionnumber": 1458121,
53
+ "msdyn_name": "Document Processing 11/29/2022, 12:58:43 PM",
54
+ "introducedversion": "1.0",
55
+ "statuscode": 0,
56
+ "_modifiedby_value": "5fa787c1-1c4d-ed11-bba1-000d3a2caf7f",
57
+ "overwritetime": "1900-01-01T00:00:00Z",
58
+ "componentstate": 0,
59
+ "_createdby_value": "5fa787c1-1c4d-ed11-bba1-000d3a2caf7f",
60
+ "_owningbusinessunit_value": "6da087c1-1c4d-ed11-bba1-000d3a2caf7f",
61
+ "_owninguser_value": "5fa787c1-1c4d-ed11-bba1-000d3a2caf7f",
62
+ "msdyn_aimodelid": "08ffffbe-ec1c-4e64-b64b-dd1db926c613",
63
+ "_msdyn_activerunconfigurationid_value": null,
64
+ "overriddencreatedon": null,
65
+ "_msdyn_retrainworkflowid_value": null,
66
+ "importsequencenumber": null,
67
+ "_msdyn_scheduleinferenceworkflowid_value": null,
68
+ "_modifiedonbehalfby_value": null,
69
+ "utcconversiontimezonecode": null,
70
+ "_createdonbehalfby_value": null,
71
+ "_owningteam_value": null,
72
+ "timezoneruleversionnumber": null,
73
+ "iscustomizable": {
74
+ "Value": true,
75
+ "CanBeChanged": true,
76
+ "ManagedPropertyLogicalName": "iscustomizableanddeletable"
77
+ }
78
+ }
79
+ ]
80
+ ```
81
+
82
+ === "Text"
83
+
84
+ ```text
85
+ createdon modifiedon msdyn_aimodelid msdyn_name
86
+ -------------------- -------------------- ------------------------------------ -------------------------------------------
87
+ 2022-10-25T14:44:48Z 2022-10-25T14:44:48Z 08ffffbe-ec1c-4e64-b64b-dd1db926c613 Document Processing 11/29/2022, 12:58:43 PM
88
+ ```
89
+
90
+ === "CSV"
91
+
92
+ ```csv
93
+ msdyn_name,msdyn_aimodelid,createdon,modifiedon
94
+ "Document Processing 11/29/2022, 12:58:43 PM",08ffffbe-ec1c-4e64-b64b-dd1db926c613,2022-11-29T11:58:45Z,2022-11-29T11:58:45Z
95
+ ```
@@ -0,0 +1,95 @@
1
+ # purview retentionlabel get
2
+
3
+ Get a retention label
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 purview retentionlabel get [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-i, --id <id>`
14
+ : The Id of the retention label.
15
+
16
+ --8<-- "docs/cmd/_global.md"
17
+
18
+ ## Examples
19
+
20
+ Get a retention label
21
+
22
+ ```sh
23
+ m365 purview retentionlabel get --id c37d695e-d581-4ae9-82a0-9364eba4291e
24
+ ```
25
+
26
+ ## Remarks
27
+
28
+ !!! attention
29
+ This command is based on a Microsoft Graph API that is currently in preview and is subject to change once the API reached general availability.
30
+
31
+ ## Response
32
+
33
+
34
+ === "JSON"
35
+
36
+ ```json
37
+ {
38
+ "displayName": "TEST LABEL",
39
+ "descriptionForAdmins": "",
40
+ "descriptionForUsers": "",
41
+ "isInUse": false,
42
+ "retentionTrigger": "dateCreated",
43
+ "behaviorDuringRetentionPeriod": "retain",
44
+ "actionAfterRetentionPeriod": "delete",
45
+ "createdDateTime": "2022-12-12T15:14:53Z",
46
+ "lastModifiedDateTime": "2022-12-12T15:43:06Z",
47
+ "labelToBeApplied": "",
48
+ "defaultRecordBehavior": "startLocked",
49
+ "id": "5c8af2e2-b489-4fa0-9c16-180180245ac8",
50
+ "retentionDuration": {
51
+ "days": 100
52
+ },
53
+ "createdBy": {
54
+ "user": {
55
+ "id": null,
56
+ "displayName": "John Doe"
57
+ }
58
+ },
59
+ "lastModifiedBy": {
60
+ "user": {
61
+ "id": null,
62
+ "displayName": "John Doe"
63
+ }
64
+ },
65
+ "dispositionReviewStages": []
66
+ }
67
+ ```
68
+
69
+ === "Text"
70
+
71
+ ```text
72
+ actionAfterRetentionPeriod : delete
73
+ behaviorDuringRetentionPeriod: retain
74
+ createdBy : {"user":{"id":null,"displayName":"John Doe"}}
75
+ createdDateTime : 2022-12-12T15:14:53Z
76
+ defaultRecordBehavior : startLocked
77
+ descriptionForAdmins :
78
+ descriptionForUsers :
79
+ displayName : TEST LABEL
80
+ dispositionReviewStages : []
81
+ id : 5c8af2e2-b489-4fa0-9c16-180180245ac8
82
+ isInUse : false
83
+ labelToBeApplied :
84
+ lastModifiedBy : {"user":{"id":null,"displayName":"John Doe"}}
85
+ lastModifiedDateTime : 2022-12-12T15:43:06Z
86
+ retentionDuration : {"days":100}
87
+ retentionTrigger : dateCreated
88
+ ```
89
+
90
+ === "CSV"
91
+
92
+ ```csv
93
+ displayName,descriptionForAdmins,descriptionForUsers,isInUse,retentionTrigger,behaviorDuringRetentionPeriod,actionAfterRetentionPeriod,createdDateTime,lastModifiedDateTime,labelToBeApplied,defaultRecordBehavior,id,retentionDuration,createdBy,lastModifiedBy,dispositionReviewStages
94
+ TEST LABEL,,,,dateCreated,retain,delete,2022-12-12T15:14:53Z,2022-12-12T15:43:06Z,,startLocked,5c8af2e2-b489-4fa0-9c16-180180245ac8,"{""days"":100}","{""user"":{""id"":null,""displayName"":""John Doe""}}","{""user"":{""id"":null,""displayName"":""John Doe""}}",[]
95
+ ```
@@ -0,0 +1,97 @@
1
+ # spo file sharinglink list
2
+
3
+ Lists all the sharing links of a specific file
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 spo file sharinglink list [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-u, --webUrl <webUrl>`
14
+ : The URL of the site where the file is located.
15
+
16
+ `-f, --fileUrl [fileUrl]`
17
+ : The server-relative (decoded) URL of the file. Specify either `fileUrl` or `fileId` but not both.
18
+
19
+ `-i, --fileId [fileId]`
20
+ : The UniqueId (GUID) of the file. Specify either `fileUrl` or `fileId` but not both.
21
+
22
+ --8<-- "docs/cmd/_global.md"
23
+
24
+ ## Examples
25
+
26
+ List sharing links of a file by id
27
+
28
+ ```sh
29
+ m365 spo file sharinglink list --webUrl https://contoso.sharepoint.com/sites/demo --fileId daebb04b-a773-4baa-b1d1-3625418e3234
30
+ ```
31
+
32
+ List sharing links of a file by url
33
+
34
+ ```sh
35
+ m365 spo file sharinglink list --webUrl https://contoso.sharepoint.com/sites/demo --fileUrl "/sites/demo/shared documents/document.docx"
36
+ ```
37
+
38
+ ## Response
39
+
40
+ === "JSON"
41
+
42
+ ```json
43
+ [
44
+ {
45
+ "id": "2a021f54-90a2-4016-b3b3-5f34d2e7d932",
46
+ "roles": [
47
+ "read"
48
+ ],
49
+ "hasPassword": false,
50
+ "grantedToIdentitiesV2": [
51
+ {
52
+ "user": {
53
+ "displayName": "John Doe",
54
+ "email": "john@contoso.onmicrosoft.com",
55
+ "id": "fe36f75e-c103-410b-a18a-2bf6df06ac3a"
56
+ },
57
+ "siteUser": {
58
+ "displayName": "John Doe",
59
+ "email": "john@contoso.onmicrosoft.com",
60
+ "id": "9",
61
+ "loginName": "i:0#.f|membership|john@contoso.onmicrosoft.com"
62
+ }
63
+ }
64
+ ],
65
+ "grantedToIdentities": [
66
+ {
67
+ "user": {
68
+ "displayName": "John Doe",
69
+ "email": "john@contoso.onmicrosoft.com",
70
+ "id": "fe36f75e-c103-410b-a18a-2bf6df06ac3a"
71
+ }
72
+ }
73
+ ],
74
+ "link": {
75
+ "scope": "anonymous",
76
+ "type": "view",
77
+ "webUrl": "https://contoso.sharepoint.com/:b:/s/demo/EY50lub3559MtRKfj2hrZqoBWnHOpGIcgi4gzw9XiWYJ-A",
78
+ "preventsDownload": false
79
+ }
80
+ }
81
+ ]
82
+ ```
83
+
84
+ === "Text"
85
+
86
+ ```text
87
+ id roles link
88
+ ------------------------------------ ----- -----------------------------------------------------------------------------------------------------------
89
+ 2a021f54-90a2-4016-b3b3-5f34d2e7d932 read https://contoso.sharepoint.com/:b:/s/demo/EY50lub3559MtRKfj2hrZqoBWnHOpGIcgi4gzw9XiWYJ-A
90
+ ```
91
+
92
+ === "CSV"
93
+
94
+ ```csv
95
+ id,roles,link
96
+ 2a021f54-90a2-4016-b3b3-5f34d2e7d932,read,https://contoso.sharepoint.com/:b:/s/demo/EY50lub3559MtRKfj2hrZqoBWnHOpGIcgi4gzw9XiWYJ-A
97
+ ```
@@ -20,36 +20,54 @@ m365 spo group member remove [options]
20
20
  : Name of the SharePoint group from which user has to be removed. Specify either `groupName` or `groupId`, but not both.
21
21
 
22
22
  `--userName [userName]`
23
- : The UPN (user principal name, eg. megan.bowen@contoso.com) of the user that needs to be removed. Specify either `userName`, `email`, or `userId`, but not multiple.
23
+ : The UPN (user principal name, eg. megan.bowen@contoso.com) of the user that needs to be removed. Specify either `userName`, `email`, `userId`, `aadGroupId` or `aadGroupName`.
24
24
 
25
25
  `--email [email]`
26
- : The email of the user to remove as a member. Specify either `userName`, `email`, or `userId`, but not multiple.
26
+ : The email of the user to remove as a member. Specify either `userName`, `email`, `userId`, `aadGroupId` or `aadGroupName`.
27
27
 
28
28
  `--userId [userId]`
29
- : The user Id (Id of the site user, eg. 14) of the user to remove as a member. Specify either `userName`, `email`, or `userId`, but not multiple.
29
+ : The user Id (Id of the site user, eg. 14) of the user to remove as a member. Specify either `userName`, `email`, `userId`, `aadGroupId` or `aadGroupName`.
30
+
31
+ `--aadGroupId [aadGroupId]`
32
+ : The object Id of the Azure AD group to remove as a member. Specify either `userName`, `email`, `userId`, `aadGroupId` or `aadGroupName`.
33
+
34
+ `--aadGroupName [aadGroupName]`
35
+ : The name of the Azure AD group to remove as a member. Specify either `userName`, `email`, `userId`, `aadGroupId` or `aadGroupName`.
30
36
 
31
37
  --8<-- "docs/cmd/_global.md"
32
38
 
33
39
  ## Examples
34
40
 
35
- Remove a user from a SharePoint group by userName.
41
+ Remove a user from a SharePoint group based on the id on a given web
36
42
 
37
43
  ```sh
38
44
  m365 spo group member remove --webUrl https://contoso.sharepoint.com/sites/SiteA --groupId 5 --userName "Alex.Wilber@contoso.com"
39
45
  ```
40
46
 
41
- Remove a user from a SharePoint group by email.
47
+ Remove a user from a SharePoint group based on the username on a given web
42
48
 
43
49
  ```sh
44
50
  m365 spo group member remove --webUrl https://contoso.sharepoint.com/sites/SiteA --groupName "Site A Visitors" --email "Alex.Wilber@contoso.com"
45
51
  ```
46
52
 
47
- Remove a user from a SharePoint group by id.
53
+ Remove a user from a SharePoint group by email.
48
54
 
49
55
  ```sh
50
56
  m365 spo group member remove --webUrl https://contoso.sharepoint.com/sites/SiteA --groupName "Site A Visitors" --userId 14
51
57
  ```
52
58
 
59
+ Remove an Azure AD group from a SharePoint group based on the Azure AD group name on a given web
60
+
61
+ ```sh
62
+ m365 spo group member remove --webUrl https://contoso.sharepoint.com/sites/SiteA --groupId 5 --aadGroupName "Azure AD Security Group"
63
+ ```
64
+
65
+ Remove an Azure AD group from a SharePoint group based on the Azure AD group ID on a given web
66
+
67
+ ```sh
68
+ m365 spo group member remove --webUrl https://contoso.sharepoint.com/sites/SiteA --groupName "Site A Visitors" --aadGroupId "5786b8e8-c495-4734-b345-756733960730"
69
+ ```
70
+
53
71
  ## Response
54
72
 
55
73
  The command won't return a response on success.
@@ -19,8 +19,11 @@ m365 spo list label set [options]
19
19
  `-u, --webUrl <webUrl>`
20
20
  : The URL of the site where the list is located.
21
21
 
22
+ `--name <name>`
23
+ : The label name to set on the list.
24
+
22
25
  `--label <label>`
23
- : The label to set on the list.
26
+ : (deprecated. Use `name` instead) The label name to set on the list.
24
27
 
25
28
  `-t, --listTitle [listTitle]`
26
29
  : The title of the list on which to set the label. Specify either `listTitle`, `listId`, or `listUrl` but not multiple.
@@ -48,16 +51,16 @@ A list retention label is a default label that will be applied to all new items
48
51
 
49
52
  ## Examples
50
53
 
51
- Sets retention label on the list with specified site-relative URL located in the specified site.
54
+ Sets a retention label by name on a given list
52
55
 
53
56
  ```sh
54
- m365 spo list retentionlabel ensure --webUrl https://contoso.sharepoint.com/sites/project-x --listUrl 'Shared Documents' --label 'Some label'
57
+ m365 spo list retentionlabel ensure --webUrl https://contoso.sharepoint.com/sites/project-x --listUrl 'Shared Documents' --name 'Some label'
55
58
  ```
56
59
 
57
- Sets retention label and disables editing and deleting items on the list and all existing items for the list with specified title located in the specified site.
60
+ Sets a retention label by name and disables editing and deleting items on the list and all existing items for a given list
58
61
 
59
62
  ```sh
60
- m365 spo list retentionlabel ensure --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle 'Documents' --label 'Some label' --blockEdit --blockDelete --syncToItems
63
+ m365 spo list retentionlabel ensure --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle 'Documents' --name 'Some label' --blockEdit --blockDelete --syncToItems
61
64
  ```
62
65
 
63
66
  ## Response
@@ -0,0 +1,52 @@
1
+ # spo listitem record lock
2
+
3
+ Locks the list item record
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 spo listitem record lock [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-u, --webUrl <webUrl>`
14
+ : The url of the web
15
+
16
+ `--listItemId <listItemId>`
17
+ : ID of the list item that should be locked
18
+
19
+ `--listId [listId]`
20
+ : ID of the list. Specify either `listTitle`, `listId` or `listUrl`
21
+
22
+ `--listTitle [listTitle]`
23
+ : Title of the list. Specify either `listTitle`, `listId` or `listUrl`
24
+
25
+ `--listUrl [listUrl]`
26
+ : Server- or site-relative URL of the list. Specify either `listTitle`, `listId` or `listUrl`
27
+
28
+ --8<-- "docs/cmd/_global.md"
29
+
30
+ ## Examples
31
+
32
+ Locks the list item record in a given site based on the list id
33
+
34
+ ```sh
35
+ m365 spo listitem record lock --webUrl https://contoso.sharepoint.com/sites/project-x --listId 0cd891ef-afce-4e55-b836-fce03286cccf --listItemId 1
36
+ ```
37
+
38
+ Locks the list item record in a given site based on the list title
39
+
40
+ ```sh
41
+ m365 spo listitem record lock --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle 'List 1' --listItemId 1
42
+ ```
43
+
44
+ Locks the list item record in a given site based on the server relative list url
45
+
46
+ ```sh
47
+ m365 spo listitem record lock --webUrl https://contoso.sharepoint.com/sites/project-x --listUrl /sites/project-x/lists/TestList --listItemId 1
48
+ ```
49
+
50
+ ## Response
51
+
52
+ The command won't return a response on success.
@@ -0,0 +1,52 @@
1
+ # spo listitem record unlock
2
+
3
+ Unlocks the list item record
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 spo listitem record unlock [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-u, --webUrl <webUrl>`
14
+ : The url of the web
15
+
16
+ `--listItemId <listItemId>`
17
+ : ID of the list item that should be unlocked
18
+
19
+ `--listId [listId]`
20
+ : ID of the list. Specify either `listTitle`, `listId` or `listUrl`
21
+
22
+ `--listTitle [listTitle]`
23
+ : Title of the list. Specify either `listTitle`, `listId` or `listUrl`
24
+
25
+ `--listUrl [listUrl]`
26
+ : Server- or site-relative URL of the list. Specify either `listTitle`, `listId` or `listUrl`
27
+
28
+ --8<-- "docs/cmd/_global.md"
29
+
30
+ ## Examples
31
+
32
+ Unlocks the list item record in a given site based on the list id
33
+
34
+ ```sh
35
+ m365 spo listitem record unlock --webUrl https://contoso.sharepoint.com/sites/project-x --listId 0cd891ef-afce-4e55-b836-fce03286cccf --listItemId 1
36
+ ```
37
+
38
+ Unlocks the list item record in a given site based on the list title
39
+
40
+ ```sh
41
+ m365 spo listitem record unlock --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle 'List 1' --listItemId 1
42
+ ```
43
+
44
+ Unlocks the list item record in a given site based on the server relative list url
45
+
46
+ ```sh
47
+ m365 spo listitem record unlock --webUrl https://contoso.sharepoint.com/sites/project-x --listUrl /sites/project-x/lists/TestList --listItemId 1
48
+ ```
49
+
50
+ ## Response
51
+
52
+ The command won't return a response on success.
@@ -0,0 +1,58 @@
1
+ # spo listitem retentionlabel ensure
2
+
3
+ Apply a retention label to a list item
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 spo listitem retentionlabel ensure [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-u, --webUrl <webUrl>`
14
+ : URL of the site where the retentionlabel from a listitem to apply is located
15
+
16
+ `--listItemId <listItemId>`
17
+ : The ID of the list item for which the retention label should be applied.
18
+
19
+ `--listId [listId]`
20
+ : ID of the list where the retention label should be applied. Specify either `listTitle`, `listId` or `listUrl`
21
+
22
+ `--listTitle [listTitle]`
23
+ : Title of the list where the retention label should be applied. Specify either `listTitle`, `listId` or `listUrl`
24
+
25
+ `--listUrl [listUrl]`
26
+ : Server- or site-relative URL of the list. Specify either `listTitle`, `listId` or `listUrl`
27
+
28
+ `-n, --name [name]`
29
+ : The name of the retention label. Specify either `name` or `id`.
30
+
31
+ `-i, --id [id]`
32
+ : The id of the retention label. Specify either `name` or `id`.
33
+
34
+ --8<-- "docs/cmd/_global.md"
35
+
36
+ ## Examples
37
+
38
+ Applies the retention label _Some label_ to a list item in a given site based on the list id and label name
39
+
40
+ ```sh
41
+ m365 spo listitem retentionlabel ensure --webUrl https://contoso.sharepoint.com/sites/project-x --listId 0cd891ef-afce-4e55-b836-fce03286cccf --listItemId 1 --name 'Some label'
42
+ ```
43
+
44
+ Applies a retention label to a list item in a given site based on the list title and label id
45
+
46
+ ```sh
47
+ m365 spo listitem retentionlabel ensure --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle 'List 1' --listItemId 1 --id '7a621a91-063b-461b-aff6-d713d5fb23eb'
48
+ ```
49
+
50
+ Applies the retention label _Some label_ to a list item in a given site based on the server relative list url
51
+
52
+ ```sh
53
+ m365 spo listitem retentionlabel ensure --webUrl https://contoso.sharepoint.com/sites/project-x --listUrl /sites/project-x/lists/TestList --listItemId 1 --name 'Some label'
54
+ ```
55
+
56
+ ## Response
57
+
58
+ The command won't return a response on success.
@@ -1,6 +1,6 @@
1
1
  # teams chat list
2
2
 
3
- Lists all Microsoft Teams chat conversations for the current user.
3
+ Lists all Microsoft Teams chat conversations for the current or a specific user.
4
4
 
5
5
  ## Usage
6
6
 
@@ -10,9 +10,15 @@ m365 teams chat list [options]
10
10
 
11
11
  ## Options
12
12
 
13
- `-t, --type [chatType]`
13
+ `-t, --type [type]`
14
14
  : The chat type to optionally filter chat conversations by type. The value can be `oneOnOne`, `group` or `meeting`.
15
15
 
16
+ `--userId [userId]`
17
+ : ID of the user. Has to be specified when using application permissions. Specify either `userId` or `userName`, but not both.
18
+
19
+ `--userName [userName]`
20
+ : UPN of the user. Has to be specified when using application permissions. Specify either `userId` or `userName`, but not both.
21
+
16
22
  --8<-- "docs/cmd/_global.md"
17
23
 
18
24
  ## Examples
@@ -23,10 +29,16 @@ List all the Microsoft Teams chat conversations of the current user.
23
29
  m365 teams chat list
24
30
  ```
25
31
 
26
- List only the one on one Microsoft Teams chat conversations.
32
+ List only the one on one Microsoft Teams chat conversations of a specific user retrieved by id.
33
+
34
+ ```sh
35
+ m365 teams chat list --userId e6296ed0-4b7d-4ace-aed4-f6b7371ce060 --type oneOnOne
36
+ ```
37
+
38
+ List only the group Microsoft Teams chat conversations of a specific user retrieved by mail
27
39
 
28
40
  ```sh
29
- m365 teams chat list --type oneOnOne
41
+ m365 teams chat list --userName 'john@contoso.com' --type group
30
42
  ```
31
43
 
32
44
  ## Response