@pnp/cli-microsoft365 12.0.0-beta.0be7d8d → 12.0.0-beta.8dff3ac

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 (90) hide show
  1. package/allCommands.json +1 -1
  2. package/allCommandsFull.json +1 -1
  3. package/dist/Auth.js +2 -6
  4. package/dist/auth/FileTokenStorage.js +0 -3
  5. package/dist/auth/msalCachePlugin.js +201 -12
  6. package/dist/m365/commands/logout.js +2 -4
  7. package/dist/m365/entra/commands/m365group/m365group-remove.js +4 -3
  8. package/dist/m365/spe/commands/container/container-remove.js +6 -7
  9. package/dist/m365/spo/commands/file/file-archive.js +1 -1
  10. package/dist/m365/spo/commands/file/file-remove.js +5 -5
  11. package/dist/m365/spo/commands/file/file-unarchive.js +1 -1
  12. package/dist/m365/spo/commands/folder/folder-archive.js +1 -1
  13. package/dist/m365/spo/commands/folder/folder-remove.js +5 -5
  14. package/dist/m365/spo/commands/hidedefaultthemes/hidedefaultthemes-get.js +5 -0
  15. package/dist/m365/spo/commands/hidedefaultthemes/hidedefaultthemes-set.js +8 -26
  16. package/dist/m365/spo/commands/homesite/homesite-list.js +5 -0
  17. package/dist/m365/spo/commands/list/list-remove.js +4 -4
  18. package/dist/m365/spo/commands/listitem/listitem-batch-remove.js +5 -4
  19. package/dist/m365/spo/commands/listitem/listitem-remove.js +8 -5
  20. package/dist/m365/spo/commands/page/page-remove.js +7 -7
  21. package/dist/m365/spo/commands/site/site-list.js +60 -49
  22. package/dist/m365/spo/commands/site/site-remove.js +7 -7
  23. package/dist/m365/spo/commands/spo-get.js +5 -0
  24. package/dist/m365/spo/commands/spo-set.js +10 -21
  25. package/dist/m365/spo/commands/storageentity/storageentity-get.js +23 -17
  26. package/dist/m365/spo/commands/storageentity/storageentity-list.js +39 -36
  27. package/dist/m365/spo/commands/storageentity/storageentity-remove.js +26 -33
  28. package/dist/m365/spo/commands/storageentity/storageentity-set.js +26 -36
  29. package/dist/m365/spo/commands/tenant/tenant-appcatalog-add.js +1 -1
  30. package/dist/m365/spo/commands/user/user-ensure.js +24 -60
  31. package/dist/m365/spo/commands/user/user-get.js +25 -65
  32. package/dist/m365/spo/commands/user/user-list.js +10 -18
  33. package/dist/m365/spo/commands/user/user-remove.js +26 -68
  34. package/dist/m365/spo/commands/userprofile/userprofile-get.js +10 -23
  35. package/dist/m365/spo/commands/userprofile/userprofile-set.js +10 -19
  36. package/dist/m365/spo/commands/web/web-add.js +20 -55
  37. package/dist/m365/spo/commands/web/web-clientsidewebpart-list.js +10 -18
  38. package/dist/m365/spo/commands/web/web-get.js +12 -30
  39. package/dist/m365/spo/commands/web/web-installedlanguage-list.js +10 -18
  40. package/dist/m365/spo/commands/web/web-list.js +10 -18
  41. package/dist/m365/spo/commands/web/web-reindex.js +10 -18
  42. package/dist/m365/spo/commands/web/web-remove.js +11 -27
  43. package/dist/m365/spo/commands/web/web-retentionlabel-list.js +10 -18
  44. package/dist/m365/spo/commands/web/web-roleassignment-add.js +40 -64
  45. package/dist/m365/spo/commands/web/web-roleassignment-remove.js +31 -58
  46. package/dist/m365/spo/commands/web/web-roleinheritance-break.js +12 -36
  47. package/dist/m365/spo/commands/web/web-roleinheritance-reset.js +11 -29
  48. package/dist/m365/spo/commands/web/web-rule-list.js +6 -4
  49. package/dist/m365/spo/commands/web/web-rule-remove.js +0 -3
  50. package/dist/m365/spo/commands/web/web-set.js +26 -96
  51. package/dist/m365/spo/commands.js +0 -2
  52. package/dist/m365/teams/commands/channel/channel-list.js +2 -6
  53. package/dist/m365/teams/commands/channel/channel-member-add.js +2 -6
  54. package/dist/m365/teams/commands/channel/channel-member-list.js +2 -6
  55. package/dist/m365/teams/commands/channel/channel-member-remove.js +2 -6
  56. package/dist/m365/teams/commands/channel/channel-member-set.js +2 -6
  57. package/dist/m365/teams/commands/channel/channel-remove.js +2 -8
  58. package/dist/m365/teams/commands/channel/channel-set.js +2 -8
  59. package/dist/m365/teams/commands/tab/tab-get.js +2 -6
  60. package/dist/m365/teams/commands/team/team-archive.js +2 -6
  61. package/dist/m365/teams/commands/team/team-remove.js +2 -6
  62. package/dist/m365/teams/commands/team/team-unarchive.js +2 -6
  63. package/docs/docs/cmd/entra/m365group/m365group-remove.mdx +4 -4
  64. package/docs/docs/cmd/spe/container/container-remove.mdx +5 -5
  65. package/docs/docs/cmd/spo/file/file-archive.mdx +8 -0
  66. package/docs/docs/cmd/spo/file/file-remove.mdx +4 -4
  67. package/docs/docs/cmd/spo/file/file-unarchive.mdx +8 -0
  68. package/docs/docs/cmd/spo/folder/folder-archive.mdx +6 -0
  69. package/docs/docs/cmd/spo/folder/folder-remove.mdx +4 -4
  70. package/docs/docs/cmd/spo/list/list-remove.mdx +4 -4
  71. package/docs/docs/cmd/spo/listitem/listitem-batch-remove.mdx +8 -2
  72. package/docs/docs/cmd/spo/listitem/listitem-remove.mdx +8 -2
  73. package/docs/docs/cmd/spo/page/page-remove.mdx +4 -4
  74. package/docs/docs/cmd/spo/site/site-apppermission-add.mdx +52 -21
  75. package/docs/docs/cmd/spo/site/site-list.mdx +22 -1
  76. package/docs/docs/cmd/spo/site/site-remove.mdx +3 -3
  77. package/docs/docs/cmd/spo/storageentity/storageentity-get.mdx +11 -2
  78. package/docs/docs/cmd/spo/storageentity/storageentity-list.mdx +9 -3
  79. package/docs/docs/cmd/spo/storageentity/storageentity-remove.mdx +6 -6
  80. package/docs/docs/cmd/spo/storageentity/storageentity-set.mdx +10 -4
  81. package/docs/docs/cmd/spo/web/web-rule-list.mdx +8 -12
  82. package/docs/docs/cmd/spo/web/web-rule-remove.mdx +0 -6
  83. package/docs/docs/cmd/teams/app/app-install.mdx +21 -0
  84. package/docs/docs/cmd/teams/app/app-list.mdx +19 -0
  85. package/docs/docs/cmd/teams/app/app-publish.mdx +17 -0
  86. package/docs/docs/cmd/teams/app/app-remove.mdx +19 -0
  87. package/docs/docs/cmd/teams/app/app-uninstall.mdx +21 -0
  88. package/docs/docs/cmd/teams/app/app-update.mdx +19 -0
  89. package/npm-shrinkwrap.json +432 -0
  90. package/package.json +6 -1
@@ -17,22 +17,31 @@ m365 spo storageentity get [options]
17
17
  ```md definition-list
18
18
  `-k, --key <key>`
19
19
  : Name of the tenant property to retrieve
20
+
21
+ `-u, --appCatalogUrl [appCatalogUrl]`
22
+ : URL of the app catalog site. If not specified, the tenant app catalog URL will be used.
20
23
  ```
21
24
 
22
25
  <Global />
23
26
 
24
27
  ## Remarks
25
28
 
26
- Tenant properties are stored in the app catalog site associated with the site to which you are currently connected. When retrieving the specified tenant property, SharePoint will automatically find the associated app catalog and try to retrieve the property from it.
29
+ Tenant properties are stored in the app catalog site associated with the site to which you are currently connected. When retrieving the specified tenant property, SharePoint will use the specified app catalog URL or automatically resolve the tenant app catalog URL.
27
30
 
28
31
  ## Examples
29
32
 
30
- Show the value, description and comment of the _AnalyticsId_ tenant property
33
+ Show the value, description and comment of the _AnalyticsId_ tenant property using the tenant app catalog
31
34
 
32
35
  ```sh
33
36
  m365 spo storageentity get -k AnalyticsId
34
37
  ```
35
38
 
39
+ Show the value, description and comment of the _AnalyticsId_ tenant property from a specific app catalog site
40
+
41
+ ```sh
42
+ m365 spo storageentity get -k AnalyticsId -u https://contoso.sharepoint.com/sites/appcatalog
43
+ ```
44
+
36
45
  ## Response
37
46
 
38
47
  <Tabs>
@@ -15,18 +15,24 @@ m365 spo storageentity list [options]
15
15
  ## Options
16
16
 
17
17
  ```md definition-list
18
- `-u, --appCatalogUrl <appCatalogUrl>`
19
- : URL of the app catalog site
18
+ `-u, --appCatalogUrl [appCatalogUrl]`
19
+ : URL of the app catalog site. If not specified, the tenant app catalog URL will be used.
20
20
  ```
21
21
 
22
22
  <Global />
23
23
 
24
24
  ## Remarks
25
25
 
26
- Tenant properties are stored in the app catalog site. To list all tenant properties, you have to specify the absolute URL of the app catalog site. If you specify an incorrect URL, or the site at the given URL is not an app catalog site, no properties will be retrieved.
26
+ Tenant properties are stored in the app catalog site. To list all tenant properties, you can specify the absolute URL of the app catalog site. If not specified, the command will automatically resolve the tenant app catalog URL. If you specify an incorrect URL, or the site at the given URL is not an app catalog site, no properties will be retrieved.
27
27
 
28
28
  ## Examples
29
29
 
30
+ List all tenant properties using the tenant app catalog
31
+
32
+ ```sh
33
+ m365 spo storageentity list
34
+ ```
35
+
30
36
  List all tenant properties stored in the _https://contoso.sharepoint.com/sites/appcatalog_ app catalog site
31
37
 
32
38
  ```sh
@@ -13,8 +13,8 @@ m365 spo storageentity remove [options]
13
13
  ## Options
14
14
 
15
15
  ```md definition-list
16
- `-u, --appCatalogUrl <appCatalogUrl>`
17
- : URL of the app catalog site
16
+ `-u, --appCatalogUrl [appCatalogUrl]`
17
+ : URL of the app catalog site. If not specified, the tenant app catalog URL will be used.
18
18
 
19
19
  `-k, --key <key>`
20
20
  : Name of the tenant property to retrieve
@@ -27,7 +27,7 @@ m365 spo storageentity remove [options]
27
27
 
28
28
  ## Remarks
29
29
 
30
- Tenant properties are stored in the app catalog site associated with that tenant. To remove a property, you have to specify the absolute URL of the app catalog site. If you specify the URL of a site different than the app catalog, you will get an access denied error.
30
+ Tenant properties are stored in the app catalog site associated with that tenant. To remove a property, you can specify the absolute URL of the app catalog site. If not specified, the command will automatically resolve the tenant app catalog URL. If you specify the URL of a site different than the app catalog, you will get an access denied error.
31
31
 
32
32
  :::info
33
33
 
@@ -37,13 +37,13 @@ To use this command you must be either **SharePoint Administrator** or **Global
37
37
 
38
38
  ## Examples
39
39
 
40
- Remove the _AnalyticsId_ tenant property. Yields a confirmation prompt before actually removing the property
40
+ Remove the _AnalyticsId_ tenant property using the tenant app catalog. Yields a confirmation prompt before actually removing the property
41
41
 
42
42
  ```sh
43
- m365 spo storageentity remove -k AnalyticsId -u https://contoso.sharepoint.com/sites/appcatalog
43
+ m365 spo storageentity remove -k AnalyticsId
44
44
  ```
45
45
 
46
- Remove the _AnalyticsId_ tenant property. Suppresses the confirmation prompt
46
+ Remove the _AnalyticsId_ tenant property from a specific app catalog. Suppresses the confirmation prompt
47
47
 
48
48
  ```sh
49
49
  m365 spo storageentity remove -k AnalyticsId --force -u https://contoso.sharepoint.com/sites/appcatalog
@@ -13,8 +13,8 @@ m365 spo storageentity set [options]
13
13
  ## Options
14
14
 
15
15
  ```md definition-list
16
- `-u, --appCatalogUrl <appCatalogUrl>`
17
- : URL of the app catalog site
16
+ `-u, --appCatalogUrl [appCatalogUrl]`
17
+ : URL of the app catalog site. If not specified, the tenant app catalog URL will be used.
18
18
 
19
19
  `-k, --key <key>`
20
20
  : Name of the tenant property to retrieve
@@ -33,7 +33,7 @@ m365 spo storageentity set [options]
33
33
 
34
34
  ## Remarks
35
35
 
36
- Tenant properties are stored in the app catalog site associated with that tenant. To set a property, you have to specify the absolute URL of the app catalog site without a trailing slash. If you specify the URL with trailing slash you get the error `The managed path sites/apps is not a managed path in this tenant.`
36
+ Tenant properties are stored in the app catalog site associated with that tenant. To set a property, you can specify the absolute URL of the app catalog site without a trailing slash. If not specified, the command will automatically resolve the tenant app catalog URL. If you specify the URL with trailing slash you get the error `The managed path sites/apps is not a managed path in this tenant.`
37
37
 
38
38
  If you specify the URL of a site different than the app catalog, you will get an access denied error.
39
39
 
@@ -45,7 +45,13 @@ To use this command you must be either **SharePoint Administrator** or **Global
45
45
 
46
46
  ## Examples
47
47
 
48
- Set _123_ as the value of the _AnalyticsId_ tenant property. Also include a description and a comment for additional clarification of the usage of the property.
48
+ Set _123_ as the value of the _AnalyticsId_ tenant property using the tenant app catalog
49
+
50
+ ```sh
51
+ m365 spo storageentity set -k AnalyticsId -v 123 -d 'Web analytics ID' -c 'Use on all sites'
52
+ ```
53
+
54
+ Set _123_ as the value of the _AnalyticsId_ tenant property on a specific app catalog site
49
55
 
50
56
  ```sh
51
57
  m365 spo storageentity set -k AnalyticsId -v 123 -d 'Web analytics ID' -c 'Use on all sites' -u https://contoso.sharepoint.com/sites/appcatalog
@@ -12,12 +12,6 @@ Lists all SharePoint list alerts
12
12
  m365 spo web rule list [options]
13
13
  ```
14
14
 
15
- ## Alias
16
-
17
- ```sh
18
- m365 spo web alert list
19
- ```
20
-
21
15
  ## Options
22
16
 
23
17
  ```md definition-list
@@ -47,16 +41,18 @@ m365 spo web alert list
47
41
  <Tabs>
48
42
  <TabItem value="Delegated">
49
43
 
50
- | Resource | Permissions |
51
- |------------|----------------------|
52
- | SharePoint | AllSites.FullControl |
44
+ | Resource | Permissions |
45
+ |-----------------|----------------------|
46
+ | SharePoint | AllSites.FullControl |
47
+ | Microsoft Graph | User.ReadBasic.All |
53
48
 
54
49
  </TabItem>
55
50
  <TabItem value="Application">
56
51
 
57
- | Resource | Permissions |
58
- |------------|-----------------------|
59
- | SharePoint | Sites.FullControl.All |
52
+ | Resource | Permissions |
53
+ |-----------------|-----------------------|
54
+ | SharePoint | Sites.FullControl.All |
55
+ | Microsoft Graph | User.ReadBasic.All |
60
56
 
61
57
  </TabItem>
62
58
  </Tabs>
@@ -12,12 +12,6 @@ Removes an alert from a SharePoint list
12
12
  m365 spo web rule remove [options]
13
13
  ```
14
14
 
15
- ## Alias
16
-
17
- ```sh
18
- m365 spo web alert remove
19
- ```
20
-
21
15
  ## Options
22
16
 
23
17
  ```md definition-list
@@ -1,4 +1,6 @@
1
1
  import Global from '../../_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
2
4
 
3
5
  # teams app install
4
6
 
@@ -35,6 +37,25 @@ m365 teams app install [options]
35
37
 
36
38
  The `id` has to be the ID of the app from the Microsoft Teams App Catalog. Do not use the ID from the manifest of the zip app package. Use the [teams app list](./app-list.mdx) command to get this ID instead.
37
39
 
40
+ ## Permissions
41
+
42
+ <Tabs>
43
+ <TabItem value="Delegated">
44
+
45
+ | Resource | Permissions |
46
+ |-----------------|---------------------------------------------------------------------------------------------------------------------|
47
+ | Microsoft Graph | AppCatalog.Submit, TeamsAppInstallation.ReadWriteForTeam, TeamsAppInstallation.ReadWriteForUser, User.ReadBasic.All |
48
+
49
+ </TabItem>
50
+ <TabItem value="Application">
51
+
52
+ | Resource | Permissions |
53
+ |-----------------|--------------------------------------------------------------------------------------------------------------------------|
54
+ | Microsoft Graph | AppCatalog.Read.All, TeamsAppInstallation.ReadWriteForTeam.All, TeamsAppInstallation.ReadWriteForUser.All, User.Read.All |
55
+
56
+ </TabItem>
57
+ </Tabs>
58
+
38
59
  ## Examples
39
60
 
40
61
  Install an app from the catalog in a Microsoft Teams team
@@ -21,6 +21,25 @@ m365 teams app list [options]
21
21
 
22
22
  <Global />
23
23
 
24
+ ## Permissions
25
+
26
+ <Tabs>
27
+ <TabItem value="Delegated">
28
+
29
+ | Resource | Permissions |
30
+ |-----------------|-------------------|
31
+ | Microsoft Graph | AppCatalog.Submit |
32
+
33
+ </TabItem>
34
+ <TabItem value="Application">
35
+
36
+ | Resource | Permissions |
37
+ |-----------------|---------------------|
38
+ | Microsoft Graph | AppCatalog.Read.All |
39
+
40
+ </TabItem>
41
+ </Tabs>
42
+
24
43
  ## Examples
25
44
 
26
45
  List all apps from the Microsoft Teams app catalog
@@ -29,6 +29,23 @@ To use this command you must be a Global administrator.
29
29
 
30
30
  :::
31
31
 
32
+ ## Permissions
33
+
34
+ <Tabs>
35
+ <TabItem value="Delegated">
36
+
37
+ | Resource | Permissions |
38
+ |-----------------|--------------------------|
39
+ | Microsoft Graph | AppCatalog.ReadWrite.All |
40
+
41
+ </TabItem>
42
+ <TabItem value="Application">
43
+
44
+ This command does not support application permissions.
45
+
46
+ </TabItem>
47
+ </Tabs>
48
+
32
49
  ## Examples
33
50
 
34
51
  Add the _teams-manifest.zip_ file to the organization's app catalog
@@ -1,4 +1,6 @@
1
1
  import Global from '../../_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
2
4
 
3
5
  # teams app remove
4
6
 
@@ -29,6 +31,23 @@ m365 teams app remove [options]
29
31
 
30
32
  You can only remove a Teams app as a global administrator.
31
33
 
34
+ ## Permissions
35
+
36
+ <Tabs>
37
+ <TabItem value="Delegated">
38
+
39
+ | Resource | Permissions |
40
+ |-----------------|--------------------------|
41
+ | Microsoft Graph | AppCatalog.ReadWrite.All |
42
+
43
+ </TabItem>
44
+ <TabItem value="Application">
45
+
46
+ This command does not support application permissions.
47
+
48
+ </TabItem>
49
+ </Tabs>
50
+
32
51
  ## Examples
33
52
 
34
53
  Remove the Teams app by ID from the organization's app catalog. Will prompt for confirmation before actually removing the app.
@@ -1,4 +1,6 @@
1
1
  import Global from '../../_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
2
4
 
3
5
  # teams app uninstall
4
6
 
@@ -30,6 +32,25 @@ m365 teams app uninstall [options]
30
32
  The `id` has to be the id the app instance installed in the Microsoft Teams team.
31
33
  Do not use the ID from the manifest of the zip app package or the id from the Microsoft Teams App Catalog.
32
34
 
35
+ ## Permissions
36
+
37
+ <Tabs>
38
+ <TabItem value="Delegated">
39
+
40
+ | Resource | Permissions |
41
+ |-----------------|---------------------------------------|
42
+ | Microsoft Graph | TeamsAppInstallation.ReadWriteForTeam |
43
+
44
+ </TabItem>
45
+ <TabItem value="Application">
46
+
47
+ | Resource | Permissions |
48
+ |-----------------|-------------------------------------------|
49
+ | Microsoft Graph | TeamsAppInstallation.ReadWriteForTeam.All |
50
+
51
+ </TabItem>
52
+ </Tabs>
53
+
33
54
  ## Examples
34
55
 
35
56
  Uninstall an app from a Microsoft Teams team
@@ -1,4 +1,6 @@
1
1
  import Global from '../../_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
2
4
 
3
5
  # teams app update
4
6
 
@@ -29,6 +31,23 @@ m365 teams app update [options]
29
31
 
30
32
  You can only update a Teams app as a global administrator.
31
33
 
34
+ ## Permissions
35
+
36
+ <Tabs>
37
+ <TabItem value="Delegated">
38
+
39
+ | Resource | Permissions |
40
+ |-----------------|--------------------------|
41
+ | Microsoft Graph | AppCatalog.ReadWrite.All |
42
+
43
+ </TabItem>
44
+ <TabItem value="Application">
45
+
46
+ This command does not support application permissions.
47
+
48
+ </TabItem>
49
+ </Tabs>
50
+
32
51
  ## Examples
33
52
 
34
53
  Update the Teams app with ID _83cece1e-938d-44a1-8b86-918cf6151957_ from file _teams-manifest.zip_