@pnp/cli-microsoft365 9.0.0-beta.1cfb646 → 9.0.0-beta.2b15817
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/m365/entra/commands/enterpriseapp/enterpriseapp-remove.js +123 -0
- package/dist/m365/entra/commands/group/group-set.js +256 -0
- package/dist/m365/entra/commands/m365group/m365group-user-add.js +109 -32
- package/dist/m365/entra/commands/m365group/m365group-user-set.js +159 -84
- package/dist/m365/entra/commands.js +3 -0
- package/dist/m365/flow/commands/flow-get.js +1 -1
- package/dist/m365/pa/commands/app/app-export.js +13 -7
- package/dist/m365/spo/commands/folder/folder-sharinglink-get.js +86 -0
- package/dist/m365/spo/commands/folder/folder-sharinglink-list.js +110 -0
- package/dist/m365/spo/commands/list/ListInstance.js +6 -1
- package/dist/m365/spo/commands/list/list-get.js +9 -3
- package/dist/m365/spo/commands.js +2 -0
- package/dist/m365/teams/commands/message/message-restore.js +106 -0
- package/dist/m365/teams/commands.js +1 -0
- package/dist/utils/drive.js +61 -0
- package/dist/utils/spo.js +32 -0
- package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-remove.mdx +65 -0
- package/docs/docs/cmd/entra/group/group-add.mdx +0 -4
- package/docs/docs/cmd/entra/group/group-set.mdx +89 -0
- package/docs/docs/cmd/entra/m365group/m365group-user-add.mdx +28 -10
- package/docs/docs/cmd/entra/m365group/m365group-user-set.mdx +35 -11
- package/docs/docs/cmd/flow/flow-get.mdx +149 -283
- package/docs/docs/cmd/pa/app/app-export.mdx +15 -9
- package/docs/docs/cmd/spo/app/app-uninstall.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-sharinglink-get.mdx +110 -0
- package/docs/docs/cmd/spo/folder/folder-sharinglink-list.mdx +114 -0
- package/docs/docs/cmd/spo/list/list-get.mdx +6 -0
- package/docs/docs/cmd/teams/message/message-remove.mdx +2 -1
- package/docs/docs/cmd/teams/message/message-restore.mdx +62 -0
- package/npm-shrinkwrap.json +572 -477
- package/package.json +22 -22
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
4
|
+
|
|
5
|
+
# spo folder sharinglink get
|
|
6
|
+
|
|
7
|
+
Gets details about a specific sharing link on a folder
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
m365 spo folder sharinglink get [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Options
|
|
16
|
+
|
|
17
|
+
```md definition-list
|
|
18
|
+
`-u, --webUrl <webUrl>`
|
|
19
|
+
: The URL of the site where the folder is located.
|
|
20
|
+
|
|
21
|
+
`--folderUrl [folderUrl]`
|
|
22
|
+
: The server- or site-relative decoded URL of the folder. Specify either `folderUrl` or `folderId` but not both.
|
|
23
|
+
|
|
24
|
+
`--folderId [folderId]`
|
|
25
|
+
: The Unique ID (GUID) of the folder. Specify either `folderUrl` or `folderId` but not both.
|
|
26
|
+
|
|
27
|
+
`-i, --id <id>`
|
|
28
|
+
: The sharing link ID.
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
<Global />
|
|
32
|
+
|
|
33
|
+
## Examples
|
|
34
|
+
|
|
35
|
+
Gets a specific sharing link of a folder by id.
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
m365 spo folder sharinglink get --webUrl https://contoso.sharepoint.com/sites/demo --id 45fa6aed-362f-48b1-b04e-6da85a526506 --folderId daebb04b-a773-4baa-b1d1-3625418e3234
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Gets a specific sharing link of a folder by url.
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
m365 spo folder sharinglink get --webUrl https://contoso.sharepoint.com/sites/demo --id 45fa6aed-362f-48b1-b04e-6da85a526506 --folderUrl "/sites/demo/shared documents/folder"
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Response
|
|
48
|
+
|
|
49
|
+
<Tabs>
|
|
50
|
+
<TabItem value="JSON">
|
|
51
|
+
|
|
52
|
+
```json
|
|
53
|
+
{
|
|
54
|
+
"id": "d6f6a428-9857-471f-9635-edd68d5aa6c1",
|
|
55
|
+
"roles": [
|
|
56
|
+
"write"
|
|
57
|
+
],
|
|
58
|
+
"shareId": "u!aHR0cHM6Ly9uYWNoYW4zNjUuc2hhcmVwb2ludC5jb20vOmY6L3MvU1BEZW1vL0VxXzlYcXRIdks1RW9wd3NfX1kteko0QlNybFFNUy1qUTBFOWJsazhVLVNTdVE",
|
|
59
|
+
"hasPassword": false,
|
|
60
|
+
"grantedToIdentitiesV2": [],
|
|
61
|
+
"grantedToIdentities": [],
|
|
62
|
+
"link": {
|
|
63
|
+
"scope": "anonymous",
|
|
64
|
+
"type": "edit",
|
|
65
|
+
"webUrl": "https://contoso.sharepoint.com/:f:/s/demo/Eq_9XqtHvK5Eopws__Y-zJ4BSrlQMS-jQ0E9blk8U-SSuQ",
|
|
66
|
+
"preventsDownload": false
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
</TabItem>
|
|
72
|
+
<TabItem value="Text">
|
|
73
|
+
|
|
74
|
+
```text
|
|
75
|
+
grantedToIdentities : []
|
|
76
|
+
grantedToIdentitiesV2 : []
|
|
77
|
+
hasPassword : false
|
|
78
|
+
id : d6f6a428-9857-471f-9635-edd68d5aa6c1
|
|
79
|
+
link : {"scope":"anonymous","type":"edit","webUrl":"https://contoso.sharepoint.com/:f:/s/demo/Eq_9XqtHvK5Eopws__Y-zJ4BSrlQMS-jQ0E9blk8U-SSuQ","preventsDownload":false}
|
|
80
|
+
roles : ["write"]
|
|
81
|
+
shareId : u!aHR0cHM6Ly9uYWNoYW4zNjUuc2hhcmVwb2ludC5jb20vOmY6L3MvU1BEZW1vL0VxXzlYcXRIdks1RW9wd3NfX1kteko0QlNybFFNUy1qUTBFOWJsazhVLVNTdVE
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
</TabItem>
|
|
85
|
+
<TabItem value="CSV">
|
|
86
|
+
|
|
87
|
+
```csv
|
|
88
|
+
id,shareId,hasPassword
|
|
89
|
+
d6f6a428-9857-471f-9635-edd68d5aa6c1,u!aHR0cHM6Ly9uYWNoYW4zNjUuc2hhcmVwb2ludC5jb20vOmY6L3MvU1BEZW1vL0VxXzlYcXRIdks1RW9wd3NfX1kteko0QlNybFFNUy1qUTBFOWJsazhVLVNTdVE,
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
</TabItem>
|
|
93
|
+
<TabItem value="Markdown">
|
|
94
|
+
|
|
95
|
+
```md
|
|
96
|
+
# spo folder sharinglink get --webUrl "https://contoso.sharepoint.com/sites/demo" --id "d6f6a428-9857-471f-9635-edd68d5aa6c1" --folderUrl "/sites/demo/shared documents/Test"
|
|
97
|
+
|
|
98
|
+
Date: 5/2/2024
|
|
99
|
+
|
|
100
|
+
## d6f6a428-9857-471f-9635-edd68d5aa6c1
|
|
101
|
+
|
|
102
|
+
Property | Value
|
|
103
|
+
---------|-------
|
|
104
|
+
id | d6f6a428-9857-471f-9635-edd68d5aa6c1
|
|
105
|
+
shareId | u!aHR0cHM6Ly9uYWNoYW4zNjUuc2hhcmVwb2ludC5jb20vOmY6L3MvU1BEZW1vL0VxXzlYcXRIdks1RW9wd3NfX1kteko0QlNybFFNUy1qUTBFOWJsazhVLVNTdVE
|
|
106
|
+
hasPassword | false
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
</TabItem>
|
|
110
|
+
</Tabs>
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
4
|
+
|
|
5
|
+
# spo folder sharinglink list
|
|
6
|
+
|
|
7
|
+
Lists all the sharing links of a specific folder
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
m365 spo folder sharinglink list [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Options
|
|
16
|
+
|
|
17
|
+
```md definition-list
|
|
18
|
+
`-u, --webUrl <webUrl>`
|
|
19
|
+
: The URL of the site where the folder is located.
|
|
20
|
+
|
|
21
|
+
`--folderUrl [folderUrl]`
|
|
22
|
+
: The server- or site-relative decoded URL of the folder. Specify either `folderUrl` or `folderId` but not both.
|
|
23
|
+
|
|
24
|
+
`--folderId [folderId]`
|
|
25
|
+
: The UniqueId (GUID) of the folder. Specify either `folderUrl` or `folderId` but not both.
|
|
26
|
+
|
|
27
|
+
`-s, --scope [scope]`
|
|
28
|
+
: Filter the results to only sharing links of a given scope: `anonymous`, `users` or `organization`. By default all sharing links are listed.
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
<Global />
|
|
32
|
+
|
|
33
|
+
## Examples
|
|
34
|
+
|
|
35
|
+
List sharing links of a folder by id.
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
m365 spo folder sharinglink list --webUrl https://contoso.sharepoint.com/sites/demo --folderId daebb04b-a773-4baa-b1d1-3625418e3234
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
List sharing links of a folder by url.
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
m365 spo folder sharinglink list --webUrl https://contoso.sharepoint.com/sites/demo --folderUrl "/sites/demo/shared documents/folder"
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
List anonymous sharing links of a folder by url.
|
|
48
|
+
|
|
49
|
+
```sh
|
|
50
|
+
m365 spo folder sharinglink list --webUrl https://contoso.sharepoint.com/sites/demo --folderUrl "/sites/demo/shared documents/folder" --scope anonymous
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Response
|
|
54
|
+
|
|
55
|
+
<Tabs>
|
|
56
|
+
<TabItem value="JSON">
|
|
57
|
+
|
|
58
|
+
```json
|
|
59
|
+
[
|
|
60
|
+
{
|
|
61
|
+
"id": "e6100f73-981c-4bde-986b-eed262f04659",
|
|
62
|
+
"roles": [
|
|
63
|
+
"write"
|
|
64
|
+
],
|
|
65
|
+
"shareId": "u!aHR0cHM6Ly83NTY2YXZhLnNoYXJlcG9pbnQuY29tLzpmOi9nL0V2QVFpdnpLV2ZoT3ZJOHJiNm1UVEhjQmQzUUxCOXVsUGIyQTQ1UG81ZmRuYWc",
|
|
66
|
+
"hasPassword": false,
|
|
67
|
+
"grantedToIdentitiesV2": [],
|
|
68
|
+
"grantedToIdentities": [],
|
|
69
|
+
"link": {
|
|
70
|
+
"scope": "anonymous",
|
|
71
|
+
"type": "edit",
|
|
72
|
+
"webUrl": "https://contoso.sharepoint.com/:f:/g/EvAQivzKWfhOvI8rb6mTTHcBd3QLB9ulPb2A45Po5fdnag",
|
|
73
|
+
"preventsDownload": false
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
]
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
</TabItem>
|
|
80
|
+
<TabItem value="Text">
|
|
81
|
+
|
|
82
|
+
```text
|
|
83
|
+
id scope roles link
|
|
84
|
+
------------------------------------ ------------ ----- -----------------------------------------------------------------------------------
|
|
85
|
+
e6100f73-981c-4bde-986b-eed262f04659 anonymous write https://contoso.sharepoint.com/:f:/g/EvAQivzKWfhOvI8rb6mTTHcBd3QLB9ulPb2A45Po5fdnag
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
</TabItem>
|
|
89
|
+
<TabItem value="CSV">
|
|
90
|
+
|
|
91
|
+
```csv
|
|
92
|
+
id,shareId,hasPassword
|
|
93
|
+
e6100f73-981c-4bde-986b-eed262f04659,u!aHR0cHM6Ly83NTY2YXZhLnNoYXJlcG9pbnQuY29tLzpmOi9nL0V2QVFpdnpLV2ZoT3ZJOHJiNm1UVEhjQmQzUUxCOXVsUGIyQTQ1UG81ZmRuYWc,
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
</TabItem>
|
|
97
|
+
<TabItem value="Markdown">
|
|
98
|
+
|
|
99
|
+
```md
|
|
100
|
+
# spo folder sharinglink list --webUrl "https://contoso.sharepoint.com/" --folderUrl "/shared documents/folder1"
|
|
101
|
+
|
|
102
|
+
Date: 24/04/2024
|
|
103
|
+
|
|
104
|
+
## e6100f73-981c-4bde-986b-eed262f04659
|
|
105
|
+
|
|
106
|
+
Property | Value
|
|
107
|
+
---------|-------
|
|
108
|
+
id | e6100f73-981c-4bde-986b-eed262f04659
|
|
109
|
+
shareId | u!aHR0cHM6Ly83NTY2YXZhLnNoYXJlcG9pbnQuY29tLzpmOi9nL0V2QVFpdnpLV2ZoT3ZJOHJiNm1UVEhjQmQzUUxCOXVsUGIyQTQ1UG81ZmRuYWc
|
|
110
|
+
hasPassword | false
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
</TabItem>
|
|
114
|
+
</Tabs>
|
|
@@ -91,6 +91,11 @@ m365 spo list get --title Documents --webUrl https://contoso.sharepoint.com/site
|
|
|
91
91
|
|
|
92
92
|
```json
|
|
93
93
|
{
|
|
94
|
+
"VersionPolicies": {
|
|
95
|
+
"DefaultExpireAfterDays": 0,
|
|
96
|
+
"DefaultTrimMode": 0,
|
|
97
|
+
"DefaultTrimModeValue": "NoExpiration"
|
|
98
|
+
},
|
|
94
99
|
"AllowContentTypes": true,
|
|
95
100
|
"BaseTemplate": 100,
|
|
96
101
|
"BaseType": 0,
|
|
@@ -210,6 +215,7 @@ m365 spo list get --title Documents --webUrl https://contoso.sharepoint.com/site
|
|
|
210
215
|
ServerTemplateCanCreateFolders : true
|
|
211
216
|
TemplateFeatureId : 00bfea71-de22-43b2-a848-c05709900100
|
|
212
217
|
Title : Test
|
|
218
|
+
VersionPolicies : {"DefaultExpireAfterDays": 0,"DefaultTrimMode": 0,"DefaultTrimModeValue": "NoExpiration"}
|
|
213
219
|
```
|
|
214
220
|
|
|
215
221
|
</TabItem>
|
|
@@ -36,7 +36,6 @@ m365 teams message remove [options]
|
|
|
36
36
|
|
|
37
37
|
## Remarks
|
|
38
38
|
|
|
39
|
-
You can only remove Microsoft Teams messages that you created yourself.
|
|
40
39
|
|
|
41
40
|
:::info
|
|
42
41
|
|
|
@@ -44,6 +43,8 @@ This command does only support delegated permissions.
|
|
|
44
43
|
|
|
45
44
|
:::
|
|
46
45
|
|
|
46
|
+
You can only remove Microsoft Teams messages that you created yourself.
|
|
47
|
+
|
|
47
48
|
## Examples
|
|
48
49
|
|
|
49
50
|
Remove a message by using IDs
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
4
|
+
|
|
5
|
+
# teams message restore
|
|
6
|
+
|
|
7
|
+
Restores a deleted message from a channel in a Microsoft Teams team
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
m365 teams message restore [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Options
|
|
16
|
+
|
|
17
|
+
```md definition-list
|
|
18
|
+
`--teamId [teamId]`
|
|
19
|
+
: ID of the Microsoft Teams team. Specify either `teamId` or `teamName` but not both.
|
|
20
|
+
|
|
21
|
+
`--teamName [teamName]`
|
|
22
|
+
: Name of the Microsoft Teams team. Specify either `teamId` or `teamName` but not both.
|
|
23
|
+
|
|
24
|
+
`--channelId [channelId]`
|
|
25
|
+
: Channel ID of the Microsoft Teams team. Specify either `channelId` or `channelName` but not both.
|
|
26
|
+
|
|
27
|
+
`--channelName [channelName]`
|
|
28
|
+
: Channel name of the Microsoft Teams team. Specify either `channelId` or `channelName` but not both.
|
|
29
|
+
|
|
30
|
+
`-i, --id <id>`
|
|
31
|
+
: The ID of the Teams message.
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
<Global />
|
|
35
|
+
|
|
36
|
+
## Remarks
|
|
37
|
+
|
|
38
|
+
:::info
|
|
39
|
+
|
|
40
|
+
This command does only support delegated permissions.
|
|
41
|
+
|
|
42
|
+
:::
|
|
43
|
+
|
|
44
|
+
You can only restore Microsoft Teams messages that you created yourself.
|
|
45
|
+
|
|
46
|
+
## Examples
|
|
47
|
+
|
|
48
|
+
Restore a deleted message by using IDs
|
|
49
|
+
|
|
50
|
+
```sh
|
|
51
|
+
m365 teams message restore --teamId 5f5d7b71-1161-44d8-bcc1-3da710eb4171 --channelId 19:4a95f7d8db4c4e7fae857bcebe0623e6@thread.tacv2 --id 1540747442203
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Restore a deleted message by using display names
|
|
55
|
+
|
|
56
|
+
```sh
|
|
57
|
+
m365 teams message restore --teamName Marketing --channelName Branding --id 1540747442203
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## Response
|
|
61
|
+
|
|
62
|
+
The command won't return a response on success.
|