@pnp/cli-microsoft365 7.9.0-beta.884c943 → 7.9.0-beta.c7bc5b8
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/.eslintrc.cjs +1 -0
- package/allCommands.json +1 -1
- package/allCommandsFull.json +1 -1
- package/dist/m365/base/DelegatedGraphCommand.js +17 -0
- package/dist/m365/base/PowerAppsCommand.js +2 -0
- package/dist/m365/base/PowerAutomateCommand.js +2 -0
- package/dist/m365/base/PowerBICommand.js +10 -0
- package/dist/m365/base/PowerPlatformCommand.js +2 -0
- package/dist/m365/base/VivaEngageCommand.js +10 -0
- package/dist/m365/entra/commands/user/user-list.js +47 -44
- package/dist/m365/outlook/commands/message/message-move.js +2 -2
- package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-restore.js +44 -23
- package/dist/m365/teams/commands/chat/chat-message-send.js +2 -2
- package/dist/m365/todo/commands/list/list-add.js +2 -2
- package/dist/m365/todo/commands/list/list-get.js +2 -2
- package/dist/m365/todo/commands/list/list-list.js +2 -2
- package/dist/m365/todo/commands/list/list-remove.js +2 -2
- package/dist/m365/todo/commands/list/list-set.js +2 -2
- package/dist/m365/todo/commands/task/task-add.js +2 -2
- package/dist/m365/todo/commands/task/task-get.js +2 -2
- package/dist/m365/todo/commands/task/task-list.js +2 -2
- package/dist/m365/todo/commands/task/task-remove.js +2 -2
- package/dist/m365/todo/commands/task/task-set.js +2 -2
- package/dist/m365/viva/commands/engage/engage-community-get.js +49 -0
- package/dist/m365/viva/commands.js +1 -0
- package/dist/utils/accessToken.js +16 -0
- package/dist/utils/validation.js +3 -3
- package/docs/docs/cmd/entra/user/user-list.mdx +24 -9
- package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-restore.mdx +3 -11
- package/docs/docs/cmd/viva/engage/engage-community-get.mdx +94 -0
- package/package.json +1 -1
|
@@ -32,7 +32,7 @@ m365 aad user list [options]
|
|
|
32
32
|
|
|
33
33
|
## Remarks
|
|
34
34
|
|
|
35
|
-
Using the `--properties` option, you can specify a comma-separated list of user properties to retrieve from the Microsoft Graph. If you don't specify any properties, the command will
|
|
35
|
+
Using the `--properties` option, you can specify a comma-separated list of user properties to retrieve from the Microsoft Graph. If you don't specify any properties, the command will output the default properties returned by Graph.
|
|
36
36
|
|
|
37
37
|
When the `properties` option includes values with a `/`, for example: `manager/displayName`, an additional `$expand` query parameter will be included on `manager`.
|
|
38
38
|
|
|
@@ -86,10 +86,19 @@ m365 entra user list --properties "displayName,mail,manager/*"
|
|
|
86
86
|
```json
|
|
87
87
|
[
|
|
88
88
|
{
|
|
89
|
-
"
|
|
89
|
+
"businessPhones": [
|
|
90
|
+
"+32 456 789 123"
|
|
91
|
+
],
|
|
90
92
|
"displayName": "John Doe",
|
|
93
|
+
"givenName": "John",
|
|
94
|
+
"jobTitle": "Sales Manager",
|
|
91
95
|
"mail": "John@contoso.onmicrosoft.com",
|
|
92
|
-
"
|
|
96
|
+
"mobilePhone": "+32 456 789 123",
|
|
97
|
+
"officeLocation": "Antwerp",
|
|
98
|
+
"preferredLanguage": "nl-BE",
|
|
99
|
+
"surname": "Doe",
|
|
100
|
+
"userPrincipalName": "John@contoso.onmicrosoft.com",
|
|
101
|
+
"id": "ef0d4f29-e359-4443-a15d-bc3dccc8143f"
|
|
93
102
|
}
|
|
94
103
|
]
|
|
95
104
|
```
|
|
@@ -98,17 +107,17 @@ m365 entra user list --properties "displayName,mail,manager/*"
|
|
|
98
107
|
<TabItem value="Text">
|
|
99
108
|
|
|
100
109
|
```text
|
|
101
|
-
id displayName
|
|
102
|
-
------------------------------------
|
|
103
|
-
|
|
110
|
+
id displayName mail userPrincipalName
|
|
111
|
+
------------------------------------ ----------- ---------------------------- ----------------------------
|
|
112
|
+
ef0d4f29-e359-4443-a15d-bc3dccc8143f John Doe John@contoso.onmicrosoft.com John@contoso.onmicrosoft.com
|
|
104
113
|
```
|
|
105
114
|
|
|
106
115
|
</TabItem>
|
|
107
116
|
<TabItem value="CSV">
|
|
108
117
|
|
|
109
118
|
```csv
|
|
110
|
-
|
|
111
|
-
|
|
119
|
+
displayName,givenName,jobTitle,mail,mobilePhone,officeLocation,preferredLanguage,surname,userPrincipalName,id
|
|
120
|
+
John Doe,John,Sales Manager,John@contoso.onmicrosoft.com,+32 456 789 123,Antwerp,nl-BE,Doe,John@contoso.onmicrosoft.com,ef0d4f29-e359-4443-a15d-bc3dccc8143f
|
|
112
121
|
```
|
|
113
122
|
|
|
114
123
|
</TabItem>
|
|
@@ -123,10 +132,16 @@ m365 entra user list --properties "displayName,mail,manager/*"
|
|
|
123
132
|
|
|
124
133
|
Property | Value
|
|
125
134
|
---------|-------
|
|
126
|
-
id | 1f5595b2-aa07-445d-9801-a45ea18160b2
|
|
127
135
|
displayName | John Doe
|
|
136
|
+
givenName | John
|
|
137
|
+
jobTitle | Sales Manager
|
|
128
138
|
mail | John@contoso.onmicrosoft.com
|
|
139
|
+
mobilePhone | +32 456 789 123
|
|
140
|
+
officeLocation | Antwerp
|
|
141
|
+
preferredLanguage | nl-BE
|
|
142
|
+
surname | Doe
|
|
129
143
|
userPrincipalName | John@contoso.onmicrosoft.com
|
|
144
|
+
id | 1f5595b2-aa07-445d-9801-a45ea18160b2
|
|
130
145
|
```
|
|
131
146
|
|
|
132
147
|
</TabItem>
|
|
@@ -16,21 +16,19 @@ m365 spo tenant recyclebinitem restore [options]
|
|
|
16
16
|
|
|
17
17
|
```md definition-list
|
|
18
18
|
`-u, --siteUrl <siteUrl>`
|
|
19
|
-
: URL of the site
|
|
19
|
+
: URL of the site.
|
|
20
20
|
|
|
21
21
|
`--wait`
|
|
22
|
-
: Wait for the site collection to be restored before completing the command
|
|
22
|
+
: (deprecated) Wait for the site collection to be restored before completing the command.
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
<Global />
|
|
26
26
|
|
|
27
27
|
## Remarks
|
|
28
28
|
|
|
29
|
-
Restoring deleted site collections is by default asynchronous and depending on the current state of Microsoft 365, might take up to few minutes. If you're building a script with steps that require the site to be fully restored, you should use the `--wait` flag. When using this flag, the `spo tenant recyclebinitem restore` command will keep running until it received confirmation from Microsoft 365 that the site has been fully restored.
|
|
30
|
-
|
|
31
29
|
:::info
|
|
32
30
|
|
|
33
|
-
To use this command you
|
|
31
|
+
To use this command you must be a Global or SharePoint administrator.
|
|
34
32
|
|
|
35
33
|
:::
|
|
36
34
|
|
|
@@ -42,12 +40,6 @@ Restore a deleted site collection from tenant recycle bin
|
|
|
42
40
|
m365 spo tenant recyclebinitem restore --siteUrl https://contoso.sharepoint.com/sites/team
|
|
43
41
|
```
|
|
44
42
|
|
|
45
|
-
Restore a deleted site collection from tenant recycle bin and wait for completion
|
|
46
|
-
|
|
47
|
-
```sh
|
|
48
|
-
m365 spo tenant recyclebinitem restore --siteUrl https://contoso.sharepoint.com/sites/team --wait
|
|
49
|
-
```
|
|
50
|
-
|
|
51
43
|
## Response
|
|
52
44
|
|
|
53
45
|
<Tabs>
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
4
|
+
|
|
5
|
+
# viva engage community get
|
|
6
|
+
|
|
7
|
+
Gets information of a Viva Engage community
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
m365 viva engage community get [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Options
|
|
16
|
+
|
|
17
|
+
```md definition-list
|
|
18
|
+
`-i, --id <id>`
|
|
19
|
+
: The unique identifier of the community.
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
<Global />
|
|
23
|
+
|
|
24
|
+
## Remarks
|
|
25
|
+
|
|
26
|
+
:::warning
|
|
27
|
+
|
|
28
|
+
This command is based on an API that is currently in preview and is subject to change once the API reached general availability.
|
|
29
|
+
|
|
30
|
+
:::
|
|
31
|
+
|
|
32
|
+
## Examples
|
|
33
|
+
|
|
34
|
+
Get a specific community by ID.
|
|
35
|
+
|
|
36
|
+
```sh
|
|
37
|
+
m365 viva engage community get --id eyJfdHlwZSI6Ikdyb3VwIiwiaWQiOiI0Mjg1NzkwNjE3NyJ9
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Response
|
|
41
|
+
|
|
42
|
+
<Tabs>
|
|
43
|
+
<TabItem value="JSON">
|
|
44
|
+
|
|
45
|
+
```json
|
|
46
|
+
{
|
|
47
|
+
"id": "eyJfdHlwZSI6Ikdyb3VwIiwiaWQiOiIxNTU1MjcwOTQyNzIifQ",
|
|
48
|
+
"displayName": "New Employee Onboarding",
|
|
49
|
+
"description": "New Employee Onboarding",
|
|
50
|
+
"privacy": "public",
|
|
51
|
+
"groupId": "54dda9b2-2df1-4ce8-ae1e-b400956b5b34"
|
|
52
|
+
}
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
</TabItem>
|
|
56
|
+
<TabItem value="Text">
|
|
57
|
+
|
|
58
|
+
```text
|
|
59
|
+
description: New Employee Onboarding
|
|
60
|
+
displayName: New Employee Onboarding
|
|
61
|
+
groupId : 54dda9b2-2df1-4ce8-ae1e-b400956b5b34
|
|
62
|
+
id : eyJfdHlwZSI6Ikdyb3VwIiwiaWQiOiIxNTU1MjcwOTQyNzIifQ
|
|
63
|
+
privacy : public
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
</TabItem>
|
|
67
|
+
<TabItem value="CSV">
|
|
68
|
+
|
|
69
|
+
```csv
|
|
70
|
+
id,displayName,description,privacy,groupId
|
|
71
|
+
eyJfdHlwZSI6Ikdyb3VwIiwiaWQiOiIxNTU1MjcwOTQyNzIifQ,New Employee Onboarding,New Employee Onboarding,public,54dda9b2-2df1-4ce8-ae1e-b400956b5b34
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
</TabItem>
|
|
75
|
+
<TabItem value="Markdown">
|
|
76
|
+
|
|
77
|
+
```md
|
|
78
|
+
# viva engage community get --id "eyJfdHlwZSI6Ikdyb3VwIiwiaWQiOiIxNTU1MjcwOTQyNzIifQ"
|
|
79
|
+
|
|
80
|
+
Date: 14/03/2024
|
|
81
|
+
|
|
82
|
+
## New Employee Onboarding (eyJfdHlwZSI6Ikdyb3VwIiwiaWQiOiIxNTU1MjcwOTQyNzIifQ)
|
|
83
|
+
|
|
84
|
+
Property | Value
|
|
85
|
+
---------|-------
|
|
86
|
+
id | eyJfdHlwZSI6Ikdyb3VwIiwiaWQiOiIxNTU1MjcwOTQyNzIifQ
|
|
87
|
+
displayName | New Employee Onboarding
|
|
88
|
+
description | New Employee Onboarding
|
|
89
|
+
privacy | public
|
|
90
|
+
groupId | 54dda9b2-2df1-4ce8-ae1e-b400956b5b34
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
</TabItem>
|
|
94
|
+
</Tabs>
|
package/package.json
CHANGED