@pnp/cli-microsoft365 12.0.0-beta.0be7d8d → 12.0.0-beta.c9bd7f3
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.
- package/allCommands.json +1 -1
- package/allCommandsFull.json +1 -1
- package/dist/Auth.js +2 -6
- package/dist/auth/FileTokenStorage.js +0 -3
- package/dist/auth/msalCachePlugin.js +201 -12
- package/dist/m365/commands/logout.js +2 -4
- package/dist/m365/entra/commands/m365group/m365group-remove.js +9 -2
- package/dist/m365/spe/commands/container/container-remove.js +6 -7
- package/dist/m365/spo/commands/file/file-archive.js +1 -1
- package/dist/m365/spo/commands/file/file-remove.js +5 -5
- package/dist/m365/spo/commands/file/file-unarchive.js +1 -1
- package/dist/m365/spo/commands/folder/folder-archive.js +1 -1
- package/dist/m365/spo/commands/folder/folder-remove.js +5 -5
- package/dist/m365/spo/commands/hidedefaultthemes/hidedefaultthemes-get.js +5 -0
- package/dist/m365/spo/commands/hidedefaultthemes/hidedefaultthemes-set.js +8 -26
- package/dist/m365/spo/commands/homesite/homesite-list.js +5 -0
- package/dist/m365/spo/commands/list/list-remove.js +4 -4
- package/dist/m365/spo/commands/listitem/listitem-batch-remove.js +5 -4
- package/dist/m365/spo/commands/listitem/listitem-remove.js +8 -5
- package/dist/m365/spo/commands/page/page-remove.js +7 -7
- package/dist/m365/spo/commands/site/site-list.js +60 -49
- package/dist/m365/spo/commands/site/site-remove.js +12 -6
- package/dist/m365/spo/commands/spo-get.js +5 -0
- package/dist/m365/spo/commands/spo-set.js +10 -21
- package/dist/m365/spo/commands/storageentity/storageentity-get.js +23 -17
- package/dist/m365/spo/commands/storageentity/storageentity-list.js +39 -36
- package/dist/m365/spo/commands/storageentity/storageentity-remove.js +26 -33
- package/dist/m365/spo/commands/storageentity/storageentity-set.js +26 -36
- package/dist/m365/spo/commands/user/user-ensure.js +24 -60
- package/dist/m365/spo/commands/user/user-get.js +25 -65
- package/dist/m365/spo/commands/user/user-list.js +10 -18
- package/dist/m365/spo/commands/user/user-remove.js +26 -68
- package/dist/m365/spo/commands/userprofile/userprofile-get.js +10 -23
- package/dist/m365/spo/commands/userprofile/userprofile-set.js +10 -19
- package/dist/m365/spo/commands/web/web-add.js +20 -55
- package/dist/m365/spo/commands/web/web-clientsidewebpart-list.js +10 -18
- package/dist/m365/spo/commands/web/web-get.js +12 -30
- package/dist/m365/spo/commands/web/web-installedlanguage-list.js +10 -18
- package/dist/m365/spo/commands/web/web-list.js +10 -18
- package/dist/m365/spo/commands/web/web-reindex.js +10 -18
- package/dist/m365/spo/commands/web/web-remove.js +11 -27
- package/dist/m365/spo/commands/web/web-retentionlabel-list.js +10 -18
- package/dist/m365/spo/commands/web/web-roleassignment-add.js +40 -64
- package/dist/m365/spo/commands/web/web-roleassignment-remove.js +31 -58
- package/dist/m365/spo/commands/web/web-roleinheritance-break.js +12 -36
- package/dist/m365/spo/commands/web/web-roleinheritance-reset.js +11 -29
- package/dist/m365/spo/commands/web/web-set.js +26 -96
- package/dist/m365/spo/commands.js +0 -4
- package/dist/m365/teams/commands/channel/channel-list.js +2 -6
- package/dist/m365/teams/commands/channel/channel-member-add.js +2 -6
- package/dist/m365/teams/commands/channel/channel-member-list.js +2 -6
- package/dist/m365/teams/commands/channel/channel-member-remove.js +2 -6
- package/dist/m365/teams/commands/channel/channel-member-set.js +2 -6
- package/dist/m365/teams/commands/channel/channel-remove.js +2 -8
- package/dist/m365/teams/commands/channel/channel-set.js +2 -8
- package/dist/m365/teams/commands/tab/tab-get.js +2 -6
- package/dist/m365/teams/commands/team/team-archive.js +2 -6
- package/dist/m365/teams/commands/team/team-remove.js +2 -6
- package/dist/m365/teams/commands/team/team-unarchive.js +2 -6
- package/docs/docs/cmd/entra/m365group/m365group-remove.mdx +6 -3
- package/docs/docs/cmd/spe/container/container-remove.mdx +5 -5
- package/docs/docs/cmd/spo/file/file-archive.mdx +8 -0
- package/docs/docs/cmd/spo/file/file-remove.mdx +4 -4
- package/docs/docs/cmd/spo/file/file-unarchive.mdx +8 -0
- package/docs/docs/cmd/spo/folder/folder-archive.mdx +6 -0
- package/docs/docs/cmd/spo/folder/folder-remove.mdx +4 -4
- package/docs/docs/cmd/spo/list/list-remove.mdx +4 -4
- package/docs/docs/cmd/spo/listitem/listitem-batch-remove.mdx +8 -2
- package/docs/docs/cmd/spo/listitem/listitem-remove.mdx +8 -2
- package/docs/docs/cmd/spo/page/page-remove.mdx +4 -4
- package/docs/docs/cmd/spo/site/site-apppermission-add.mdx +52 -21
- package/docs/docs/cmd/spo/site/site-list.mdx +22 -1
- package/docs/docs/cmd/spo/site/site-remove.mdx +5 -2
- package/docs/docs/cmd/spo/storageentity/storageentity-get.mdx +11 -2
- package/docs/docs/cmd/spo/storageentity/storageentity-list.mdx +9 -3
- package/docs/docs/cmd/spo/storageentity/storageentity-remove.mdx +6 -6
- package/docs/docs/cmd/spo/storageentity/storageentity-set.mdx +10 -4
- package/docs/docs/cmd/teams/app/app-install.mdx +21 -0
- package/docs/docs/cmd/teams/app/app-list.mdx +19 -0
- package/docs/docs/cmd/teams/app/app-publish.mdx +17 -0
- package/docs/docs/cmd/teams/app/app-remove.mdx +19 -0
- package/docs/docs/cmd/teams/app/app-uninstall.mdx +21 -0
- package/docs/docs/cmd/teams/app/app-update.mdx +19 -0
- package/npm-shrinkwrap.json +432 -0
- package/package.json +6 -1
- package/dist/m365/spo/commands/web/web-rule-list.js +0 -111
- package/dist/m365/spo/commands/web/web-rule-remove.js +0 -57
- package/docs/docs/cmd/spo/web/web-rule-list.mdx +0 -193
- package/docs/docs/cmd/spo/web/web-rule-remove.mdx +0 -71
|
@@ -15,18 +15,24 @@ m365 spo storageentity list [options]
|
|
|
15
15
|
## Options
|
|
16
16
|
|
|
17
17
|
```md definition-list
|
|
18
|
-
`-u, --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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
@@ -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_
|