@pnp/cli-microsoft365 6.1.0-beta.3065124 → 6.1.0-beta.4fefcde

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 (61) hide show
  1. package/dist/m365/pp/commands/dataverse/dataverse-table-row-remove.js +133 -0
  2. package/dist/m365/pp/commands.js +1 -0
  3. package/dist/m365/spo/commands/list/{list-label-get.js → list-retentionlabel-get.js} +19 -15
  4. package/dist/m365/spo/commands/list/{list-label-set.js → list-retentionlabel-set.js} +19 -15
  5. package/dist/m365/spo/commands/page/clientsidepages.js +3 -3
  6. package/dist/m365/spo/commands/web/web-retentionlabel-list.js +63 -0
  7. package/dist/m365/spo/commands.js +3 -0
  8. package/docs/docs/cmd/pp/dataverse/dataverse-table-row-remove.md +61 -0
  9. package/docs/docs/cmd/spo/list/{list-label-get.md → list-retentionlabel-get.md} +17 -11
  10. package/docs/docs/cmd/spo/list/list-retentionlabel-set.md +65 -0
  11. package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-add.md +9 -5
  12. package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-list.md +42 -0
  13. package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-remove.md +25 -3
  14. package/docs/docs/cmd/spo/orgnewssite/orgnewssite-list.md +22 -0
  15. package/docs/docs/cmd/spo/orgnewssite/orgnewssite-remove.md +6 -2
  16. package/docs/docs/cmd/spo/orgnewssite/orgnewssite-set.md +5 -1
  17. package/docs/docs/cmd/spo/page/page-add.md +13 -9
  18. package/docs/docs/cmd/spo/page/page-clientsidewebpart-add.md +6 -2
  19. package/docs/docs/cmd/spo/page/page-column-get.md +68 -5
  20. package/docs/docs/cmd/spo/page/page-column-list.md +36 -4
  21. package/docs/docs/cmd/spo/page/page-control-get.md +70 -3
  22. package/docs/docs/cmd/spo/page/page-control-list.md +69 -3
  23. package/docs/docs/cmd/spo/page/page-control-set.md +11 -7
  24. package/docs/docs/cmd/spo/page/page-copy.md +65 -4
  25. package/docs/docs/cmd/spo/page/page-get.md +100 -4
  26. package/docs/docs/cmd/spo/page/page-header-set.md +17 -13
  27. package/docs/docs/cmd/spo/page/page-list.md +122 -1
  28. package/docs/docs/cmd/spo/page/page-remove.md +9 -5
  29. package/docs/docs/cmd/spo/page/page-section-add.md +10 -6
  30. package/docs/docs/cmd/spo/page/page-section-get.md +36 -4
  31. package/docs/docs/cmd/spo/page/page-section-list.md +38 -3
  32. package/docs/docs/cmd/spo/page/page-set.md +10 -10
  33. package/docs/docs/cmd/spo/page/page-template-list.md +58 -1
  34. package/docs/docs/cmd/spo/page/page-text-add.md +9 -5
  35. package/docs/docs/cmd/spo/propertybag/propertybag-get.md +28 -8
  36. package/docs/docs/cmd/spo/propertybag/propertybag-list.md +35 -7
  37. package/docs/docs/cmd/spo/propertybag/propertybag-remove.md +13 -9
  38. package/docs/docs/cmd/spo/propertybag/propertybag-set.md +13 -5
  39. package/docs/docs/cmd/spo/report/report-activityfilecounts.md +34 -2
  40. package/docs/docs/cmd/spo/report/report-activitypages.md +31 -2
  41. package/docs/docs/cmd/spo/report/report-activityusercounts.md +35 -2
  42. package/docs/docs/cmd/spo/report/report-activityuserdetail.md +40 -3
  43. package/docs/docs/cmd/spo/report/report-siteusagedetail.md +43 -3
  44. package/docs/docs/cmd/spo/report/report-siteusagefilecounts.md +33 -2
  45. package/docs/docs/cmd/spo/report/report-siteusagepages.md +32 -2
  46. package/docs/docs/cmd/spo/report/report-siteusagesitecounts.md +33 -2
  47. package/docs/docs/cmd/spo/report/report-siteusagestorage.md +32 -2
  48. package/docs/docs/cmd/spo/roledefinition/roledefinition-add.md +10 -6
  49. package/docs/docs/cmd/spo/roledefinition/roledefinition-get.md +80 -2
  50. package/docs/docs/cmd/spo/roledefinition/roledefinition-list.md +76 -2
  51. package/docs/docs/cmd/spo/roledefinition/roledefinition-remove.md +9 -5
  52. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-add.md +39 -2
  53. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-list.md +32 -0
  54. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-revoke.md +6 -2
  55. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-approve.md +14 -74
  56. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-deny.md +6 -2
  57. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-list.md +30 -0
  58. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-set.md +36 -2
  59. package/docs/docs/cmd/spo/web/web-retentionlabel-list.md +74 -0
  60. package/package.json +1 -1
  61. package/docs/docs/cmd/spo/list/list-label-set.md +0 -55
@@ -16,14 +16,14 @@ m365 spo sp permissionrequest approve
16
16
 
17
17
  ## Options
18
18
 
19
- `-i, --id [id]`
20
- : ID of the permission request to approve
19
+ `-i, --id <id>`
20
+ : ID of the permission request to approve.
21
21
 
22
22
  `--all`
23
- : approve all pending permission requests
23
+ : approve all pending permission requests.
24
24
 
25
25
  `--resource [resource]`
26
- : The resource of the permissions requests to approve
26
+ : The resource of the permissions requests to approve.
27
27
 
28
28
  --8<-- "docs/cmd/_global.md"
29
29
 
@@ -36,105 +36,45 @@ The permission request you want to approve is denoted using its `ID`. You can re
36
36
 
37
37
  ## Examples
38
38
 
39
- Approve permission request with id
39
+ Approve permission request
40
40
 
41
41
  ```sh
42
42
  m365 spo serviceprincipal permissionrequest approve --id 4dc4c043-25ee-40f2-81d3-b3bf63da7538
43
43
  ```
44
44
 
45
- Approve all permission request
46
-
47
- ```sh
48
- m365 spo serviceprincipal permissionrequest approve --all
49
- ```
50
-
51
- Approve all permission request from a specific resource
52
-
53
- ```sh
54
- m365 spo serviceprincipal permissionrequest approve --resource "Microsoft Graph"
55
- ```
56
-
57
45
  ## Response
58
46
 
59
47
  === "JSON"
60
48
 
61
49
  ```json
62
50
  {
63
- "ClientId": "90a2c08e-e786-4100-9ea9-36c261be6c0d",
51
+ "ClientId": "6004a642-185c-479a-992a-15d1c23e2229",
64
52
  "ConsentType": "AllPrincipals",
65
53
  "IsDomainIsolated": false,
66
- "ObjectId": "jsCikIbnAEGeqTbCYb5sDZXCr9YICndHoJUQvLfiOQM",
54
+ "ObjectId": "QqYEYFwYmkeZKhXRwj4iKRcAa6TiIbFNvGnKY1dqONY",
67
55
  "PackageName": null,
68
56
  "Resource": "Microsoft Graph",
69
- "ResourceId": "d6afc295-0a08-4777-a095-10bcb7e23903",
70
- "Scope": "User.Read.All"
57
+ "ResourceId": "a46b0017-21e2-4db1-bc69-ca63576a38d6",
58
+ "Scope": "Reports.Read.All"
71
59
  }
72
60
  ```
73
61
 
74
62
  === "Text"
75
63
 
76
64
  ```text
77
- ClientId : 90a2c08e-e786-4100-9ea9-36c261be6c0d
65
+ ClientId : 6004a642-185c-479a-992a-15d1c23e2229
78
66
  ConsentType : AllPrincipals
79
67
  IsDomainIsolated: false
80
- ObjectId : jsCikIbnAEGeqTbCYb5sDZXCr9YICndHoJUQvLfiOQM
68
+ ObjectId : QqYEYFwYmkeZKhXRwj4iKRcAa6TiIbFNvGnKY1dqONY
81
69
  PackageName : null
82
70
  Resource : Microsoft Graph
83
- ResourceId : d6afc295-0a08-4777-a095-10bcb7e23903
84
- Scope : User.Read.All
85
- ```
86
-
87
- === "CSV"
88
-
89
- ```csv
90
- ClientId,ConsentType,IsDomainIsolated,ObjectId,PackageName,Resource,ResourceId,Scope
91
- 90a2c08e-e786-4100-9ea9-36c261be6c0d,AllPrincipals,,jsCikIbnAEGeqTbCYb5sDZXCr9YICndHoJUQvLfiOQM,,Microsoft Graph,d6afc295-0a08-4777-a095-10bcb7e23903,User.Read.All
92
- ```
93
-
94
- ### `all`, `resource` response
95
-
96
- When we make use of the option `all` or `resource` the response will differ.
97
-
98
- === "JSON"
99
-
100
- ```json
101
- [
102
- {
103
- "ClientId": "90a2c08e-e786-4100-9ea9-36c261be6c0d",
104
- "ConsentType": "AllPrincipals",
105
- "IsDomainIsolated": false,
106
- "ObjectId": "jsCikIbnAEGeqTbCYb5sDZXCr9YICndHoJUQvLfiOQM",
107
- "PackageName": null,
108
- "Resource": "Microsoft Graph",
109
- "ResourceId": "d6afc295-0a08-4777-a095-10bcb7e23903",
110
- "Scope": "User.Read.All"
111
- },
112
- {
113
- "ClientId": "90a2c08e-e786-4100-9ea9-36c261be6c0d",
114
- "ConsentType": "AllPrincipals",
115
- "IsDomainIsolated": false,
116
- "ObjectId": "jsCikIbnAEGeqTbCYb5sDZXCr9YICndHoJUQvLfiOQM",
117
- "PackageName": null,
118
- "Resource": "Microsoft Graph",
119
- "ResourceId": "d6afc295-0a08-4777-a095-10bcb7e23903",
120
- "Scope": "Sites.Read.All"
121
- }
122
- ]
123
- ```
124
-
125
- === "Text"
126
-
127
- ```text
128
- ClientId ConsentType IsDomainIsolated ObjectId PackageName Resource ResourceId Scope
129
- ------------------------------------ ------------- ---------------- ------------------------------------------- ----------- --------------- ------------------------------------ -----------------------
130
- 90a2c08e-e786-4100-9ea9-36c261be6c0d AllPrincipals false jsCikIbnAEGeqTbCYb5sDZXCr9YICndHoJUQvLfiOQM null Microsoft Graph d6afc295-0a08-4777-a095-10bcb7e23903 User.Read.All
131
- 90a2c08e-e786-4100-9ea9-36c261be6c0d AllPrincipals false jsCikIbnAEGeqTbCYb5sDZXCr9YICndHoJUQvLfiOQM null Microsoft Graph d6afc295-0a08-4777-a095-10bcb7e23903 Sites.Read.All
71
+ ResourceId : a46b0017-21e2-4db1-bc69-ca63576a38d6
72
+ Scope : Directory.ReadWrite.All
132
73
  ```
133
74
 
134
75
  === "CSV"
135
76
 
136
77
  ```csv
137
78
  ClientId,ConsentType,IsDomainIsolated,ObjectId,PackageName,Resource,ResourceId,Scope
138
- 90a2c08e-e786-4100-9ea9-36c261be6c0d,AllPrincipals,,jsCikIbnAEGeqTbCYb5sDZXCr9YICndHoJUQvLfiOQM,,Microsoft Graph,d6afc295-0a08-4777-a095-10bcb7e23903,User.Read.All
139
- 90a2c08e-e786-4100-9ea9-36c261be6c0d,AllPrincipals,,jsCikIbnAEGeqTbCYb5sDZXCr9YICndHoJUQvLfiOQM,,Microsoft Graph,d6afc295-0a08-4777-a095-10bcb7e23903,Sites.Read.All
79
+ 6004a642-185c-479a-992a-15d1c23e2229,AllPrincipals,false,QqYEYFwYmkeZKhXRwj4iKRcAa6TiIbFNvGnKY1dqONY,null,Microsoft Graph,a46b0017-21e2-4db1-bc69-ca63576a38d6,Directory.ReadWrite.All
140
80
  ```
@@ -17,7 +17,7 @@ m365 spo sp permissionrequest deny
17
17
  ## Options
18
18
 
19
19
  `-i, --id <id>`
20
- : ID of the permission request to deny
20
+ : ID of the permission request to deny.
21
21
 
22
22
  --8<-- "docs/cmd/_global.md"
23
23
 
@@ -30,8 +30,12 @@ The permission request you want to approve is denoted using its `ID`. You can re
30
30
 
31
31
  ## Examples
32
32
 
33
- Deny permission request with id _4dc4c043-25ee-40f2-81d3-b3bf63da7538_
33
+ Deny permission request
34
34
 
35
35
  ```sh
36
36
  m365 spo serviceprincipal permissionrequest deny --id 4dc4c043-25ee-40f2-81d3-b3bf63da7538
37
37
  ```
38
+
39
+ ## Response
40
+
41
+ The command won't return a response on success.
@@ -30,3 +30,33 @@ List all pending permission requests
30
30
  ```sh
31
31
  m365 spo serviceprincipal permissionrequest list
32
32
  ```
33
+
34
+ ## Response
35
+
36
+ === "JSON"
37
+
38
+ ```json
39
+ [
40
+ {
41
+ "Id": "6eceed61-77e4-424d-ae1d-696a0de4d768",
42
+ "Resource": "Microsoft Graph",
43
+ "ResourceId": "Microsoft Graph",
44
+ "Scope": "Reports.Read.All"
45
+ }
46
+ ]
47
+ ```
48
+
49
+ === "Text"
50
+
51
+ ```text
52
+ Id Resource ResourceId Scope
53
+ ------------------------------------ --------------- --------------- -----------------------
54
+ 6eceed61-77e4-424d-ae1d-696a0de4d768 Microsoft Graph Microsoft Graph Reports.Read.All
55
+ ```
56
+
57
+ === "CSV"
58
+
59
+ ```csv
60
+ Id,Resource,ResourceId,Scope
61
+ 6eceed61-77e4-424d-ae1d-696a0de4d768,Microsoft Graph,Microsoft Graph,Reports.Read.All
62
+ ```
@@ -17,10 +17,10 @@ m365 spo sp set
17
17
  ## Options
18
18
 
19
19
  `-e, --enabled <enabled>`
20
- : Set to `true` to enable the service principal or to `false` to disable it. Valid values are `true,false`
20
+ : Set to `true` to enable the service principal or to `false` to disable it. Valid values are `true`, `false`.
21
21
 
22
22
  `--confirm`
23
- : Don't prompt for confirming enabling/disabling the service principal
23
+ : Don't prompt for confirming enabling/disabling the service principal.
24
24
 
25
25
  --8<-- "docs/cmd/_global.md"
26
26
 
@@ -50,3 +50,37 @@ Enable the service principal without prompting for confirmation
50
50
  ```sh
51
51
  m365 spo serviceprincipal set --enabled true --confirm
52
52
  ```
53
+
54
+ ## Response
55
+
56
+ === "JSON"
57
+
58
+ ```json
59
+ {
60
+ "AccountEnabled": true,
61
+ "AppId": "48535560-3cc0-442e-a1b4-94c084b3ff59",
62
+ "ReplyUrls": [
63
+ "https://fluidpreview.office.net/spfxsinglesignon",
64
+ "https://dev.fluidpreview.office.net/spfxsinglesignon",
65
+ "https://contoso.sharepoint.com/",
66
+ "https://contoso.sharepoint.com/_forms/spfxsinglesignon.aspx",
67
+ "https://contoso.sharepoint.com/_forms/spfxsinglesignon.aspx?redirect",
68
+ "https://contoso-admin.sharepoint.com/_forms/spfxsinglesignon.aspx"
69
+ ]
70
+ }
71
+ ```
72
+
73
+ === "Text"
74
+
75
+ ```text
76
+ AccountEnabled: true
77
+ AppId : 48535560-3cc0-442e-a1b4-94c084b3ff59
78
+ ReplyUrls : ["https://fluidpreview.office.net/spfxsinglesignon","https://dev.fluidpreview.office.net/spfxsinglesignon","https://contoso.sharepoint.com/","https://contoso.sharepoint.com/_forms/spfxsinglesignon.aspx","https://contoso.sharepoint.com/_forms/spfxsinglesignon.aspx?redirect","https://contoso-admin.sharepoint.com/_forms/spfxsinglesignon.aspx"]
79
+ ```
80
+
81
+ === "CSV"
82
+
83
+ ```csv
84
+ AccountEnabled,AppId,ReplyUrls
85
+ 1,48535560-3cc0-442e-a1b4-94c084b3ff59,"[""https://fluidpreview.office.net/spfxsinglesignon"",""https://dev.fluidpreview.office.net/spfxsinglesignon"",""https://contoso.sharepoint.com/"",""https://contoso.sharepoint.com/_forms/spfxsinglesignon.aspx"",""https://contoso.sharepoint.com/_forms/spfxsinglesignon.aspx?redirect"",""https://contoso-admin.sharepoint.com/_forms/spfxsinglesignon.aspx""]"
86
+ ```
@@ -0,0 +1,74 @@
1
+ # spo web retentionlabel list
2
+
3
+ Get a list of retention labels that are available on a site.
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 spo web retentionlabel list [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-u, --webUrl <webUrl>`
14
+ : URL of the site.
15
+
16
+ --8<-- "docs/cmd/_global.md"
17
+
18
+ ## Examples
19
+
20
+ Get a list of retention labels for the _Sales_ site
21
+
22
+ ```sh
23
+ m365 spo web retentionlabel list --webUrl 'https://contoso.sharepoint.com/sites/sales'
24
+ ```
25
+
26
+ ## Response
27
+
28
+ === "JSON"
29
+
30
+ ```json
31
+ [
32
+ {
33
+ "AcceptMessagesOnlyFromSendersOrMembers": false,
34
+ "AccessType": null,
35
+ "AllowAccessFromUnmanagedDevice": null,
36
+ "AutoDelete": true,
37
+ "BlockDelete": true,
38
+ "BlockEdit": false,
39
+ "ComplianceFlags": 1,
40
+ "ContainsSiteLabel": false,
41
+ "DisplayName": "",
42
+ "EncryptionRMSTemplateId": null,
43
+ "HasRetentionAction": true,
44
+ "IsEventTag": false,
45
+ "MultiStageReviewerEmail": null,
46
+ "NextStageComplianceTag": null,
47
+ "Notes": null,
48
+ "RequireSenderAuthenticationEnabled": false,
49
+ "ReviewerEmail": null,
50
+ "SharingCapabilities": null,
51
+ "SuperLock": false,
52
+ "TagDuration": 2555,
53
+ "TagId": "def61080-111c-4aea-b72f-5b60e516e36c",
54
+ "TagName": "Some label",
55
+ "TagRetentionBasedOn": "CreationAgeInDays",
56
+ "UnlockedAsDefault": false
57
+ }
58
+ ]
59
+ ```
60
+
61
+ === "Text"
62
+
63
+ ```text
64
+ TagId TagName
65
+ ------------------------------------ --------------
66
+ def61080-111c-4aea-b72f-5b60e516e36c Some label
67
+ ```
68
+
69
+ === "CSV"
70
+
71
+ ```csv
72
+ TagId,TagName
73
+ def61080-111c-4aea-b72f-5b60e516e36c,Some label,true
74
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnp/cli-microsoft365",
3
- "version": "6.1.0-beta.3065124",
3
+ "version": "6.1.0-beta.4fefcde",
4
4
  "description": "Manage Microsoft 365 and SharePoint Framework projects on any platform",
5
5
  "license": "MIT",
6
6
  "main": "./dist/api.js",
@@ -1,55 +0,0 @@
1
- # spo list label set
2
-
3
- Sets classification label on the specified list
4
-
5
- ## Usage
6
-
7
- ```sh
8
- m365 spo list label set [options]
9
- ```
10
-
11
- ## Options
12
-
13
- `-u, --webUrl <webUrl>`
14
- : The URL of the site where the list is located
15
-
16
- `--label <label>`
17
- : The label to set on the list
18
-
19
- `-t, --listTitle [listTitle]`
20
- : The title of the list on which to set the label. Specify only one of `listTitle`, `listId` or `listUrl`
21
-
22
- `-l, --listId [listId]`
23
- : The ID of the list on which to set the label. Specify only one of `listTitle`, `listId` or `listUrl`
24
-
25
- `--listUrl [listUrl]`
26
- : Server- or web-relative URL of the list on which to set the label. Specify only one of `listTitle`, `listId` or `listUrl`
27
-
28
- `--syncToItems`
29
- : Specify, to set the label on all items in the list
30
-
31
- `--blockDelete`
32
- : Specify, to disallow deleting items in the list
33
-
34
- `--blockEdit`
35
- : Specify, to disallow editing items in the list
36
-
37
- --8<-- "docs/cmd/_global.md"
38
-
39
- ## Examples
40
-
41
- Sets classification label "Confidential" for list _Shared Documents_ located in site _https://contoso.sharepoint.com/sites/project-x_
42
-
43
- ```sh
44
- m365 spo list label set --webUrl https://contoso.sharepoint.com/sites/project-x --listUrl 'Shared Documents' --label 'Confidential'
45
- ```
46
-
47
- Sets classification label "Confidential" and disables editing and deleting items on the list and all existing items for list for list _Documents_ located in site _https://contoso.sharepoint.com/sites/project-x_
48
-
49
- ```sh
50
- m365 spo list label set --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle 'Documents' --label 'Confidential' --blockEdit --blockDelete --syncToItems
51
- ```
52
-
53
- ## Response
54
-
55
- The command won't return a response on success.