@pnp/cli-microsoft365 8.0.0-beta.5dade25 → 8.0.0-beta.630e741
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 +1 -9
- package/dist/chili/chili.js +0 -23
- package/dist/cli/cli.js +1 -63
- package/dist/m365/commands/setup.js +0 -4
- package/dist/m365/external/commands/connection/connection-doctor.js +10 -24
- package/dist/m365/flow/commands/flow-list.js +21 -23
- package/dist/m365/spfx/commands/project/base-project-command.js +36 -126
- package/dist/m365/spo/commands/cdn/cdn-get.js +12 -15
- package/dist/m365/spo/commands/cdn/cdn-set.js +6 -4
- package/dist/m365/spo/commands/contenttype/contenttype-field-list.js +124 -0
- package/dist/m365/spo/commands/field/field-list.js +1 -1
- package/dist/m365/spo/commands/group/group-member-add.js +103 -99
- package/dist/m365/spo/commands/page/page-clientsidewebpart-add.js +2 -3
- package/dist/m365/spo/commands/page/page-text-add.js +2 -3
- package/dist/m365/spo/commands/spo-search.js +3 -4
- package/dist/m365/spo/commands.js +1 -0
- package/dist/m365/teams/commands/meeting/meeting-attendancereport-get.js +119 -0
- package/dist/m365/teams/commands.js +1 -0
- package/dist/utils/formatting.js +14 -1
- package/dist/utils/validation.js +19 -0
- package/docs/docs/cmd/external/connection/connection-doctor.mdx +9 -9
- package/docs/docs/cmd/flow/flow-list.mdx +114 -56
- package/docs/docs/cmd/spo/cdn/cdn-set.mdx +3 -3
- package/docs/docs/cmd/spo/contenttype/contenttype-field-list.mdx +172 -0
- package/docs/docs/cmd/spo/field/field-list.mdx +3 -3
- package/docs/docs/cmd/spo/group/group-member-add.mdx +34 -27
- package/docs/docs/cmd/teams/meeting/meeting-attendancereport-get.mdx +138 -0
- package/npm-shrinkwrap.json +0 -195
- package/package.json +2 -2
|
@@ -30,6 +30,7 @@ export default {
|
|
|
30
30
|
MEETING_ADD: `${prefix} meeting add`,
|
|
31
31
|
MEETING_GET: `${prefix} meeting get`,
|
|
32
32
|
MEETING_LIST: `${prefix} meeting list`,
|
|
33
|
+
MEETING_ATTENDANCEREPORT_GET: `${prefix} meeting attendancereport get`,
|
|
33
34
|
MEETING_ATTENDANCEREPORT_LIST: `${prefix} meeting attendancereport list`,
|
|
34
35
|
MEETING_TRANSCRIPT_LIST: `${prefix} meeting transcript list`,
|
|
35
36
|
MEMBERSETTINGS_LIST: `${prefix} membersettings list`,
|
package/dist/utils/formatting.js
CHANGED
|
@@ -9,6 +9,8 @@ export var CheckStatus;
|
|
|
9
9
|
(function (CheckStatus) {
|
|
10
10
|
CheckStatus[CheckStatus["Success"] = 0] = "Success";
|
|
11
11
|
CheckStatus[CheckStatus["Failure"] = 1] = "Failure";
|
|
12
|
+
CheckStatus[CheckStatus["Information"] = 2] = "Information";
|
|
13
|
+
CheckStatus[CheckStatus["Warning"] = 3] = "Warning";
|
|
12
14
|
})(CheckStatus || (CheckStatus = {}));
|
|
13
15
|
export const formatting = {
|
|
14
16
|
escapeXml(s) {
|
|
@@ -152,7 +154,18 @@ export const formatting = {
|
|
|
152
154
|
process.env.TERM === 'xterm-256color';
|
|
153
155
|
const success = primarySupported ? '✔' : '√';
|
|
154
156
|
const failure = primarySupported ? '✖' : '×';
|
|
155
|
-
|
|
157
|
+
const information = 'i';
|
|
158
|
+
const warning = '!';
|
|
159
|
+
switch (result) {
|
|
160
|
+
case CheckStatus.Success:
|
|
161
|
+
return `${chalk.green(success)} ${message}`;
|
|
162
|
+
case CheckStatus.Failure:
|
|
163
|
+
return `${chalk.red(failure)} ${message}`;
|
|
164
|
+
case CheckStatus.Information:
|
|
165
|
+
return `${chalk.blue(information)} ${message}`;
|
|
166
|
+
case CheckStatus.Warning:
|
|
167
|
+
return `${chalk.yellow(warning)} ${message}`;
|
|
168
|
+
}
|
|
156
169
|
},
|
|
157
170
|
convertArrayToHashTable(key, array) {
|
|
158
171
|
const resultAsKeyValuePair = {};
|
package/dist/utils/validation.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { formatting } from "./formatting.js";
|
|
1
2
|
export const validation = {
|
|
2
3
|
isValidGuidArray(guidsString) {
|
|
3
4
|
const guids = guidsString.split(',').map(guid => guid.trim());
|
|
@@ -33,6 +34,24 @@ export const validation = {
|
|
|
33
34
|
// verify if the upn is a valid upn. @meusername will be replaced in a later stage with the actual username of the logged in user
|
|
34
35
|
return upnRegEx.test(upn) || upn.toLowerCase().trim() === '@meusername';
|
|
35
36
|
},
|
|
37
|
+
/**
|
|
38
|
+
* Validates if the provided number is a valid positive integer (1 or higher).
|
|
39
|
+
* @param integer Integer value.
|
|
40
|
+
* @returns True if integer, false otherwise.
|
|
41
|
+
*/
|
|
42
|
+
isValidPositiveInteger(integer) {
|
|
43
|
+
return !isNaN(Number(integer)) && Number.isInteger(+integer) && +integer > 0;
|
|
44
|
+
},
|
|
45
|
+
/**
|
|
46
|
+
* Validates an array of integers. The integers must be positive (1 or higher).
|
|
47
|
+
* @param integerString Comma-separated string of integers.
|
|
48
|
+
* @returns True if the integers are valid, an error message with the invalid integers otherwise.
|
|
49
|
+
*/
|
|
50
|
+
isValidPositiveIntegerArray(integerString) {
|
|
51
|
+
const integers = formatting.splitAndTrim(integerString);
|
|
52
|
+
const invalidIntegers = integers.filter(integer => !this.isValidPositiveInteger(integer));
|
|
53
|
+
return invalidIntegers.length > 0 ? invalidIntegers.join(', ') : true;
|
|
54
|
+
},
|
|
36
55
|
isDateInRange(date, monthOffset) {
|
|
37
56
|
const d = new Date(date);
|
|
38
57
|
const cutoffDate = new Date();
|
|
@@ -126,15 +126,15 @@ m365 external connection doctor --id contosoproducts --ux copilot
|
|
|
126
126
|
<TabItem value="Text">
|
|
127
127
|
|
|
128
128
|
```text
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
129
|
+
√ Load connection
|
|
130
|
+
√ Load schema
|
|
131
|
+
× Required semantic labels: Missing label iconUrl
|
|
132
|
+
√ Searchable properties
|
|
133
|
+
√ Items have content ingested
|
|
134
|
+
i Connection configured for inline results (manual)
|
|
135
|
+
i Items have activities recorded (manual)
|
|
136
|
+
i Meaningful connection name and description (manual)
|
|
137
|
+
√ urlToItemResolver configured
|
|
138
138
|
```
|
|
139
139
|
|
|
140
140
|
</TabItem>
|
|
@@ -4,7 +4,7 @@ import TabItem from '@theme/TabItem';
|
|
|
4
4
|
|
|
5
5
|
# flow list
|
|
6
6
|
|
|
7
|
-
Lists Power Automate
|
|
7
|
+
Lists Power Automate flows in the given environment
|
|
8
8
|
|
|
9
9
|
## Usage
|
|
10
10
|
|
|
@@ -83,85 +83,61 @@ m365 flow list --environmentName Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --
|
|
|
83
83
|
```json
|
|
84
84
|
[
|
|
85
85
|
{
|
|
86
|
-
"name": "
|
|
87
|
-
"id": "/providers/Microsoft.ProcessSimple/environments/Default-
|
|
86
|
+
"name": "fc2d4ef5-4151-4e93-9aaa-1f380d7ed95d",
|
|
87
|
+
"id": "/providers/Microsoft.ProcessSimple/environments/Default-1e852b49-bf4b-4ba5-bcd4-a8c4706c8ed4/flows/fc2d4ef5-4151-4e93-9aaa-1f380d7ed95d",
|
|
88
88
|
"type": "Microsoft.ProcessSimple/environments/flows",
|
|
89
89
|
"properties": {
|
|
90
90
|
"apiId": "/providers/Microsoft.PowerApps/apis/shared_logicflows",
|
|
91
|
-
"displayName": "
|
|
91
|
+
"displayName": "Invoicing flow",
|
|
92
92
|
"userType": "Owner",
|
|
93
93
|
"state": "Started",
|
|
94
94
|
"connectionReferences": {
|
|
95
|
-
"
|
|
96
|
-
"connectionName": "
|
|
97
|
-
"source": "
|
|
98
|
-
"id": "/providers/Microsoft.PowerApps/apis/
|
|
99
|
-
"displayName": "
|
|
100
|
-
"iconUri": "https://
|
|
101
|
-
"brandColor": "#
|
|
102
|
-
"tier": "NotSpecified"
|
|
103
|
-
},
|
|
104
|
-
"shared_flowpush": {
|
|
105
|
-
"connectionName": "shared-flowpush-d2c01136-3f7d-4449-b4f1-cb2d03a35ba8",
|
|
106
|
-
"source": "Invoker",
|
|
107
|
-
"id": "/providers/Microsoft.PowerApps/apis/shared_flowpush",
|
|
108
|
-
"displayName": "Notifications",
|
|
109
|
-
"iconUri": "https://connectoricons-prod.azureedge.net/releases/v1.0.1599/1.0.1599.3017/flowpush/icon.png",
|
|
110
|
-
"brandColor": "#FF3B30",
|
|
95
|
+
"shared_office365": {
|
|
96
|
+
"connectionName": "shared-office365-19528cc4-23c1-4b39-abea-f010eb9fe3f9",
|
|
97
|
+
"source": "Embedded",
|
|
98
|
+
"id": "/providers/Microsoft.PowerApps/apis/shared_office365",
|
|
99
|
+
"displayName": "Office 365 Outlook",
|
|
100
|
+
"iconUri": "https://connectoricons-prod.azureedge.net/releases/v1.0.1686/1.0.1686.3706/office365/icon.png",
|
|
101
|
+
"brandColor": "#0078D4",
|
|
111
102
|
"tier": "Standard"
|
|
112
103
|
}
|
|
113
104
|
},
|
|
114
|
-
"createdTime": "
|
|
115
|
-
"lastModifiedTime": "
|
|
105
|
+
"createdTime": "2024-07-09T21:32:14.5918501Z",
|
|
106
|
+
"lastModifiedTime": "2024-07-09T21:32:15.2349507Z",
|
|
116
107
|
"environment": {
|
|
117
|
-
"name": "Default-
|
|
108
|
+
"name": "Default-1e852b49-bf4b-4ba5-bcd4-a8c4706c8ed4",
|
|
118
109
|
"type": "Microsoft.ProcessSimple/environments",
|
|
119
|
-
"id": "/providers/Microsoft.ProcessSimple/environments/Default-
|
|
110
|
+
"id": "/providers/Microsoft.ProcessSimple/environments/Default-1e852b49-bf4b-4ba5-bcd4-a8c4706c8ed4"
|
|
120
111
|
},
|
|
121
112
|
"definitionSummary": {
|
|
122
113
|
"triggers": [
|
|
123
114
|
{
|
|
124
|
-
"type": "
|
|
125
|
-
"kind": "Button",
|
|
115
|
+
"type": "Recurrence",
|
|
126
116
|
"metadata": {
|
|
127
|
-
"operationMetadataId": "
|
|
117
|
+
"operationMetadataId": "57317efe-4f87-47bc-b69c-179452c75f87"
|
|
128
118
|
}
|
|
129
119
|
}
|
|
130
120
|
],
|
|
131
121
|
"actions": [
|
|
132
122
|
{
|
|
133
123
|
"type": "OpenApiConnection",
|
|
134
|
-
"swaggerOperationId": "
|
|
124
|
+
"swaggerOperationId": "SendEmailV2",
|
|
135
125
|
"metadata": {
|
|
136
|
-
"operationMetadataId": "
|
|
137
|
-
}
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
"type": "Table",
|
|
141
|
-
"metadata": {
|
|
142
|
-
"operationMetadataId": "1164ebc4-b501-46bc-bc88-cc99660f92c3"
|
|
143
|
-
}
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
"type": "OpenApiConnection",
|
|
147
|
-
"swaggerOperationId": "SendEmailNotification",
|
|
148
|
-
"metadata": {
|
|
149
|
-
"operationMetadataId": "9febe29f-2e36-4765-81ab-83645d28332d"
|
|
126
|
+
"operationMetadataId": "474e8016-6a45-466a-a021-3fedf5a766be"
|
|
150
127
|
}
|
|
151
128
|
}
|
|
152
129
|
]
|
|
153
130
|
},
|
|
154
131
|
"creator": {
|
|
155
|
-
"tenantId": "
|
|
156
|
-
"objectId": "
|
|
157
|
-
"userId": "
|
|
132
|
+
"tenantId": "1e852b49-bf4b-4ba5-bcd4-a8c4706c8ed4",
|
|
133
|
+
"objectId": "9723d9b0-b8d6-48af-b381-fb4a9f0403e4",
|
|
134
|
+
"userId": "9723d9b0-b8d6-48af-b381-fb4a9f0403e4",
|
|
158
135
|
"userType": "ActiveDirectory"
|
|
159
136
|
},
|
|
160
137
|
"provisioningMethod": "FromDefinition",
|
|
161
138
|
"flowFailureAlertSubscribed": true,
|
|
162
139
|
"isManaged": false
|
|
163
|
-
}
|
|
164
|
-
"displayName": "Contoso Invoicing Flow"
|
|
140
|
+
}
|
|
165
141
|
}
|
|
166
142
|
]
|
|
167
143
|
```
|
|
@@ -171,16 +147,16 @@ m365 flow list --environmentName Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --
|
|
|
171
147
|
|
|
172
148
|
```text
|
|
173
149
|
name displayName
|
|
174
|
-
------------------------------------
|
|
175
|
-
|
|
150
|
+
------------------------------------ --------------
|
|
151
|
+
fc2d4ef5-4151-4e93-9aaa-1f380d7ed95d Invoicing Flow
|
|
176
152
|
```
|
|
177
153
|
|
|
178
154
|
</TabItem>
|
|
179
155
|
<TabItem value="CSV">
|
|
180
156
|
|
|
181
157
|
```csv
|
|
182
|
-
name,displayName
|
|
183
|
-
|
|
158
|
+
name,id,type,displayName
|
|
159
|
+
fc2d4ef5-4151-4e93-9aaa-1f380d7ed95d,/providers/Microsoft.ProcessSimple/environments/Default-1e852b49-bf4b-4ba5-bcd4-a8c4706c8ed4/flows/fc2d4ef5-4151-4e93-9aaa-1f380d7ed95d,Microsoft.ProcessSimple/environments/flows,Invoicing flow
|
|
184
160
|
```
|
|
185
161
|
|
|
186
162
|
</TabItem>
|
|
@@ -189,18 +165,100 @@ m365 flow list --environmentName Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --
|
|
|
189
165
|
```md
|
|
190
166
|
# flow list --environmentName "Default-1e852b49-bf4b-4ba5-bcd4-a8c4706c8ed4"
|
|
191
167
|
|
|
192
|
-
Date:
|
|
168
|
+
Date: 09/07/2024
|
|
193
169
|
|
|
194
|
-
##
|
|
170
|
+
## Invoicing flow (/providers/Microsoft.ProcessSimple/environments/Default-1e852b49-bf4b-4ba5-bcd4-a8c4706c8ed4/flows/fc2d4ef5-4151-4e93-9aaa-1f380d7ed95d)
|
|
195
171
|
|
|
196
172
|
Property | Value
|
|
197
173
|
---------|-------
|
|
198
|
-
name |
|
|
199
|
-
id | /providers/Microsoft.ProcessSimple/environments/Default-1e852b49-bf4b-4ba5-bcd4-a8c4706c8ed4/flows/
|
|
174
|
+
name | fc2d4ef5-4151-4e93-9aaa-1f380d7ed95d
|
|
175
|
+
id | /providers/Microsoft.ProcessSimple/environments/Default-1e852b49-bf4b-4ba5-bcd4-a8c4706c8ed4/flows/fc2d4ef5-4151-4e93-9aaa-1f380d7ed95d
|
|
200
176
|
type | Microsoft.ProcessSimple/environments/flows
|
|
201
|
-
displayName |
|
|
177
|
+
displayName | Invoicing flow
|
|
202
178
|
```
|
|
203
179
|
|
|
204
180
|
</TabItem>
|
|
205
181
|
</Tabs>
|
|
206
182
|
|
|
183
|
+
### `asAdmin` response
|
|
184
|
+
|
|
185
|
+
<Tabs>
|
|
186
|
+
<TabItem value="JSON">
|
|
187
|
+
|
|
188
|
+
```json
|
|
189
|
+
[
|
|
190
|
+
{
|
|
191
|
+
"name": "fc2d4ef5-4151-4e93-9aaa-1f380d7ed95d",
|
|
192
|
+
"id": "/providers/Microsoft.ProcessSimple/environments/Default-1e852b49-bf4b-4ba5-bcd4-a8c4706c8ed4/flows/fc2d4ef5-4151-4e93-9aaa-1f380d7ed95d",
|
|
193
|
+
"type": "Microsoft.ProcessSimple/environments/flows",
|
|
194
|
+
"properties": {
|
|
195
|
+
"apiId": "/providers/Microsoft.PowerApps/apis/shared_logicflows",
|
|
196
|
+
"displayName": "Invoicing flow",
|
|
197
|
+
"state": "Started",
|
|
198
|
+
"createdTime": "2024-07-09T21:32:15Z",
|
|
199
|
+
"lastModifiedTime": "2024-07-09T21:32:15Z",
|
|
200
|
+
"flowSuspensionReason": "None",
|
|
201
|
+
"environment": {
|
|
202
|
+
"name": "Default-1e852b49-bf4b-4ba5-bcd4-a8c4706c8ed4",
|
|
203
|
+
"type": "Microsoft.ProcessSimple/environments",
|
|
204
|
+
"id": "/providers/Microsoft.ProcessSimple/environments/Default-1e852b49-bf4b-4ba5-bcd4-a8c4706c8ed4"
|
|
205
|
+
},
|
|
206
|
+
"definitionSummary": {
|
|
207
|
+
"triggers": [],
|
|
208
|
+
"actions": []
|
|
209
|
+
},
|
|
210
|
+
"creator": {
|
|
211
|
+
"tenantId": "1e852b49-bf4b-4ba5-bcd4-a8c4706c8ed4",
|
|
212
|
+
"objectId": "9723d9b0-b8d6-48af-b381-fb4a9f0403e4",
|
|
213
|
+
"userId": "9723d9b0-b8d6-48af-b381-fb4a9f0403e4",
|
|
214
|
+
"userType": "ActiveDirectory"
|
|
215
|
+
},
|
|
216
|
+
"flowFailureAlertSubscribed": false,
|
|
217
|
+
"isManaged": false,
|
|
218
|
+
"machineDescriptionData": {},
|
|
219
|
+
"flowOpenAiData": {
|
|
220
|
+
"isConsequential": false,
|
|
221
|
+
"isConsequentialFlagOverwritten": false
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
]
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
</TabItem>
|
|
229
|
+
<TabItem value="Text">
|
|
230
|
+
|
|
231
|
+
```text
|
|
232
|
+
name displayName
|
|
233
|
+
------------------------------------ --------------
|
|
234
|
+
fc2d4ef5-4151-4e93-9aaa-1f380d7ed95d Invoicing Flow
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
</TabItem>
|
|
238
|
+
<TabItem value="CSV">
|
|
239
|
+
|
|
240
|
+
```csv
|
|
241
|
+
name,id,type,displayName
|
|
242
|
+
fc2d4ef5-4151-4e93-9aaa-1f380d7ed95d,/providers/Microsoft.ProcessSimple/environments/Default-1e852b49-bf4b-4ba5-bcd4-a8c4706c8ed4/flows/fc2d4ef5-4151-4e93-9aaa-1f380d7ed95d,Microsoft.ProcessSimple/environments/flows,Invoicing flow
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
</TabItem>
|
|
246
|
+
<TabItem value="Markdown">
|
|
247
|
+
|
|
248
|
+
```md
|
|
249
|
+
# flow list --environmentName "Default-1e852b49-bf4b-4ba5-bcd4-a8c4706c8ed4"
|
|
250
|
+
|
|
251
|
+
Date: 09/07/2024
|
|
252
|
+
|
|
253
|
+
## Invoicing flow (/providers/Microsoft.ProcessSimple/environments/Default-1e852b49-bf4b-4ba5-bcd4-a8c4706c8ed4/flows/fc2d4ef5-4151-4e93-9aaa-1f380d7ed95d)
|
|
254
|
+
|
|
255
|
+
Property | Value
|
|
256
|
+
---------|-------
|
|
257
|
+
name | fc2d4ef5-4151-4e93-9aaa-1f380d7ed95d
|
|
258
|
+
id | /providers/Microsoft.ProcessSimple/environments/Default-1e852b49-bf4b-4ba5-bcd4-a8c4706c8ed4/flows/fc2d4ef5-4151-4e93-9aaa-1f380d7ed95d
|
|
259
|
+
type | Microsoft.ProcessSimple/environments/flows
|
|
260
|
+
displayName | Invoicing flow
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
</TabItem>
|
|
264
|
+
</Tabs>
|
|
@@ -17,10 +17,10 @@ m365 spo cdn set [options]
|
|
|
17
17
|
: Set to true to enable CDN or to false to disable it. Allowed values: `true`, `false`.
|
|
18
18
|
|
|
19
19
|
`-t, --type [type]`
|
|
20
|
-
: Type of CDN to
|
|
20
|
+
: Type of CDN to update. Allowed values: `Public`, `Private`, `Both`. Defaults to `Public`.
|
|
21
21
|
|
|
22
22
|
`--noDefaultOrigins`
|
|
23
|
-
:
|
|
23
|
+
: Specify this flag to not create the default origins.
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
<Global />
|
|
@@ -35,7 +35,7 @@ Using the `--noDefaultOrigins` option you can specify to skip the creation of th
|
|
|
35
35
|
|
|
36
36
|
:::info
|
|
37
37
|
|
|
38
|
-
To use this command you
|
|
38
|
+
To use this command you must be a Global or SharePoint administrator.
|
|
39
39
|
|
|
40
40
|
:::
|
|
41
41
|
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
4
|
+
|
|
5
|
+
# spo contenttype field list
|
|
6
|
+
|
|
7
|
+
Lists fields for a given site or list content type
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
m365 spo contenttype field list [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Options
|
|
16
|
+
|
|
17
|
+
```md definition-list
|
|
18
|
+
`-u, --webUrl <webUrl>`
|
|
19
|
+
: Absolute URL of the site where the content type is located.
|
|
20
|
+
|
|
21
|
+
`-i, --contentTypeId [contentTypeId]`
|
|
22
|
+
: The ID of the content type for which to list fields. Specify either `contentTypeId` or `contentTypeName`.
|
|
23
|
+
|
|
24
|
+
`-n, --contentTypeName [contentTypeName]`
|
|
25
|
+
: The name of the content type for which to list fields. Specify either `contentTypeId` or `contentTypeName`.
|
|
26
|
+
|
|
27
|
+
`-l, --listTitle [listTitle]`
|
|
28
|
+
: Optional title of the list where the content type is located. Specify either `listTitle`, `listId` or `listUrl`.
|
|
29
|
+
|
|
30
|
+
`--listId [listId]`
|
|
31
|
+
: Optional ID of the list where the content type is located. Specify either `listTitle`, `listId` or `listUrl`.
|
|
32
|
+
|
|
33
|
+
`--listUrl [listUrl]`
|
|
34
|
+
: Optional server- or web-relative URL of the list where the content type is located. Specify either `listTitle`, `listId` or `listUrl`.
|
|
35
|
+
|
|
36
|
+
`-p, --properties [properties]`
|
|
37
|
+
: Comma-separated list of properties to retrieve. Will retrieve all properties if not specified.
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
<Global />
|
|
41
|
+
|
|
42
|
+
## Examples
|
|
43
|
+
|
|
44
|
+
Retrieves fields for the specified site content type.
|
|
45
|
+
|
|
46
|
+
```sh
|
|
47
|
+
m365 spo contenttype field list --webUrl https://contoso.sharepoint.com/sites/contoso-sales --contentTypeId "0x01"
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Retrieves fields for the specified list content type in the Documents library.
|
|
51
|
+
|
|
52
|
+
```sh
|
|
53
|
+
m365 spo contenttype field list --webUrl https://contoso.sharepoint.com/sites/contoso-sales --contentTypeName "Document" --listTitle "Documents"
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Response
|
|
57
|
+
|
|
58
|
+
<Tabs>
|
|
59
|
+
<TabItem value="JSON">
|
|
60
|
+
|
|
61
|
+
```json
|
|
62
|
+
[
|
|
63
|
+
{
|
|
64
|
+
"AutoIndexed": false,
|
|
65
|
+
"CanBeDeleted": false,
|
|
66
|
+
"ClientSideComponentId": "00000000-0000-0000-0000-000000000000",
|
|
67
|
+
"ClientSideComponentProperties": null,
|
|
68
|
+
"ClientValidationFormula": null,
|
|
69
|
+
"ClientValidationMessage": null,
|
|
70
|
+
"CustomFormatter": null,
|
|
71
|
+
"DefaultFormula": null,
|
|
72
|
+
"DefaultValue": null,
|
|
73
|
+
"Description": "",
|
|
74
|
+
"Direction": "none",
|
|
75
|
+
"EnforceUniqueValues": false,
|
|
76
|
+
"EntityPropertyName": "Title",
|
|
77
|
+
"Filterable": true,
|
|
78
|
+
"FromBaseType": true,
|
|
79
|
+
"Group": "_Hidden",
|
|
80
|
+
"Hidden": false,
|
|
81
|
+
"Id": "fa564e0f-0c70-4ab9-b863-0177e6ddd247",
|
|
82
|
+
"Indexed": false,
|
|
83
|
+
"IndexStatus": 0,
|
|
84
|
+
"InternalName": "Title",
|
|
85
|
+
"IsModern": false,
|
|
86
|
+
"JSLink": "clienttemplates.js",
|
|
87
|
+
"PinnedToFiltersPane": false,
|
|
88
|
+
"ReadOnlyField": false,
|
|
89
|
+
"Required": true,
|
|
90
|
+
"SchemaXml": "<Field ID=\"{fa564e0f-0c70-4ab9-b863-0177e6ddd247}\" Name=\"Title\" SourceID=\"http://schemas.microsoft.com/sharepoint/v3\" StaticName=\"Title\" Group=\"_Hidden\" Type=\"Text\" DisplayName=\"Title\" Required=\"TRUE\" FromBaseType=\"TRUE\" DelayActivateTemplateBinding=\"GROUP,SPSPERS,SITEPAGEPUBLISHING\" Customization=\"\" ShowInNewForm=\"TRUE\" ShowInEditForm=\"TRUE\"></Field>",
|
|
91
|
+
"Scope": "/",
|
|
92
|
+
"Sealed": false,
|
|
93
|
+
"ShowInFiltersPane": 0,
|
|
94
|
+
"Sortable": true,
|
|
95
|
+
"StaticName": "Title",
|
|
96
|
+
"Title": "Title",
|
|
97
|
+
"FieldTypeKind": 2,
|
|
98
|
+
"TypeAsString": "Text",
|
|
99
|
+
"TypeDisplayName": "Single line of text",
|
|
100
|
+
"TypeShortDescription": "Single line of text",
|
|
101
|
+
"ValidationFormula": null,
|
|
102
|
+
"ValidationMessage": null,
|
|
103
|
+
"MaxLength": 255
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
</TabItem>
|
|
109
|
+
<TabItem value="Text">
|
|
110
|
+
|
|
111
|
+
```text
|
|
112
|
+
Id Title InternalName Hidden
|
|
113
|
+
------------------------------------ ------ ------------ ------
|
|
114
|
+
5ee2dd25-d941-455a-9bdb-7f2c54aed11b Title Title false
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
</TabItem>
|
|
118
|
+
<TabItem value="CSV">
|
|
119
|
+
|
|
120
|
+
```csv
|
|
121
|
+
AutoIndexed,CanBeDeleted,ClientSideComponentId,ClientSideComponentProperties,ClientValidationFormula,ClientValidationMessage,CustomFormatter,DefaultFormula,DefaultValue,Description,Direction,EnforceUniqueValues,EntityPropertyName,Filterable,FromBaseType,Group,Hidden,Id,Indexed,IndexStatus,InternalName,IsModern,JSLink,PinnedToFiltersPane,ReadOnlyField,Required,SchemaXml,Scope,Sealed,ShowInFiltersPane,Sortable,StaticName,Title,FieldTypeKind,TypeAsString,TypeDisplayName,TypeShortDescription,ValidationFormula,ValidationMessage,EnableLookup
|
|
122
|
+
,,00000000-0000-0000-0000-000000000000,,,,,,,,none,,ContentType,1,,_Hidden,,c042a256-787d-4a6f-8a8a-cf6ab767f12d,,0,ContentType,,,,,,"<Field ID=""{c042a256-787d-4a6f-8a8a-cf6ab767f12d}"" Name=""ContentType"" SourceID=""http://schemas.microsoft.com/sharepoint/v3"" StaticName=""ContentType"" Group=""_Hidden"" Type=""Computed"" DisplayName=""Content Type"" Sealed=""TRUE"" Sortable=""FALSE"" RenderXMLUsingPattern=""TRUE"" PITarget=""MicrosoftWindowsSharePointServices"" PIAttribute=""ContentTypeID"" DelayActivateTemplateBinding=""GROUP,SPSPERS,SITEPAGEPUBLISHING"" Customization=""""><FieldRefs><FieldRef ID=""{03e45e84-1992-4d42-9116-26f756012634}"" Name=""ContentTypeId"" /></FieldRefs><DisplayPattern><MapToContentType><Column Name=""ContentTypeId"" /></MapToContentType></DisplayPattern></Field>",/,1,0,,ContentType,Content Type,12,Computed,Computed,Computed,,,
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
</TabItem>
|
|
126
|
+
<TabItem value="Markdown">
|
|
127
|
+
|
|
128
|
+
```md
|
|
129
|
+
# spo contenttype field list --webUrl "https://contoso.sharepoint.com/sites/contoso-sales" --contentTypeId "0x01"
|
|
130
|
+
|
|
131
|
+
Date: 10/04/2024
|
|
132
|
+
|
|
133
|
+
## Title (fa564e0f-0c70-4ab9-b863-0177e6ddd247)
|
|
134
|
+
|
|
135
|
+
Property | Value
|
|
136
|
+
---------|-------
|
|
137
|
+
AutoIndexed | false
|
|
138
|
+
CanBeDeleted | false
|
|
139
|
+
ClientSideComponentId | 00000000-0000-0000-0000-000000000000
|
|
140
|
+
Description |
|
|
141
|
+
Direction | none
|
|
142
|
+
EnforceUniqueValues | false
|
|
143
|
+
EntityPropertyName | Title
|
|
144
|
+
Filterable | true
|
|
145
|
+
FromBaseType | true
|
|
146
|
+
Group | \_Hidden
|
|
147
|
+
Hidden | false
|
|
148
|
+
Id | fa564e0f-0c70-4ab9-b863-0177e6ddd247
|
|
149
|
+
Indexed | false
|
|
150
|
+
IndexStatus | 0
|
|
151
|
+
InternalName | Title
|
|
152
|
+
IsModern | false
|
|
153
|
+
JSLink | clienttemplates.js
|
|
154
|
+
PinnedToFiltersPane | false
|
|
155
|
+
ReadOnlyField | false
|
|
156
|
+
Required | true
|
|
157
|
+
SchemaXml | <Field ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" Name="Title" SourceID="http://schemas.microsoft.com/sharepoint/v3" StaticName="Title" Group="\_Hidden" Type="Text" DisplayName="Title" Required="TRUE" FromBaseType="TRUE" DelayActivateTemplateBinding="GROUP,SPSPERS,SITEPAGEPUBLISHING" Customization="" ShowInNewForm="TRUE" ShowInEditForm="TRUE"></Field>
|
|
158
|
+
Scope | /
|
|
159
|
+
Sealed | false
|
|
160
|
+
ShowInFiltersPane | 0
|
|
161
|
+
Sortable | true
|
|
162
|
+
StaticName | Title
|
|
163
|
+
Title | Title
|
|
164
|
+
FieldTypeKind | 2
|
|
165
|
+
TypeAsString | Text
|
|
166
|
+
TypeDisplayName | Single line of text
|
|
167
|
+
TypeShortDescription | Single line of text
|
|
168
|
+
MaxLength | 255
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
</TabItem>
|
|
172
|
+
</Tabs>
|
|
@@ -116,9 +116,9 @@ m365 spo field list --webUrl https://contoso.sharepoint.com/sites/contoso-sales
|
|
|
116
116
|
<TabItem value="Text">
|
|
117
117
|
|
|
118
118
|
```text
|
|
119
|
-
Id Title
|
|
120
|
-
------------------------------------
|
|
121
|
-
5ee2dd25-d941-455a-9bdb-7f2c54aed11b Start date-time
|
|
119
|
+
Id Title InternalName Hidden
|
|
120
|
+
------------------------------------ --------------- --------------------- ------
|
|
121
|
+
5ee2dd25-d941-455a-9bdb-7f2c54aed11b Start date-time PnPAlertStartDateTime false
|
|
122
122
|
```
|
|
123
123
|
|
|
124
124
|
</TabItem>
|
|
@@ -110,17 +110,21 @@ m365 spo group member add --webUrl https://contoso.sharepoint.com/sites/SiteA --
|
|
|
110
110
|
```json
|
|
111
111
|
[
|
|
112
112
|
{
|
|
113
|
-
"
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
"
|
|
117
|
-
"
|
|
118
|
-
"Email": "
|
|
119
|
-
"
|
|
120
|
-
"
|
|
121
|
-
"
|
|
122
|
-
"
|
|
123
|
-
"
|
|
113
|
+
"Id": 11,
|
|
114
|
+
"IsHiddenInUI": false,
|
|
115
|
+
"LoginName": "i:0#.f|membership|adelev@contoso.onmicrosoft.com",
|
|
116
|
+
"Title": "Adele Vance",
|
|
117
|
+
"PrincipalType": 1,
|
|
118
|
+
"Email": "Adele.Vance@contoso.onmicrosoft.com",
|
|
119
|
+
"Expiration": "",
|
|
120
|
+
"IsEmailAuthenticationGuestUser": false,
|
|
121
|
+
"IsShareByEmailGuestUser": false,
|
|
122
|
+
"IsSiteAdmin": false,
|
|
123
|
+
"UserId": {
|
|
124
|
+
"NameId": "10032001f5ac2029",
|
|
125
|
+
"NameIdIssuer": "urn:federation:microsoftonline"
|
|
126
|
+
},
|
|
127
|
+
"UserPrincipalName": "adelev@contoso.onmicrosoft.com"
|
|
124
128
|
}
|
|
125
129
|
]
|
|
126
130
|
```
|
|
@@ -129,39 +133,42 @@ m365 spo group member add --webUrl https://contoso.sharepoint.com/sites/SiteA --
|
|
|
129
133
|
<TabItem value="Text">
|
|
130
134
|
|
|
131
135
|
```text
|
|
132
|
-
|
|
133
|
-
-----------
|
|
134
|
-
|
|
136
|
+
Title UserPrincipalName
|
|
137
|
+
----------- -------------------------------------
|
|
138
|
+
Adele Vance Adele.Vance@contoso.onmicrosoft.com
|
|
135
139
|
```
|
|
136
140
|
|
|
137
141
|
</TabItem>
|
|
138
142
|
<TabItem value="CSV">
|
|
139
143
|
|
|
140
144
|
```csv
|
|
141
|
-
|
|
142
|
-
|
|
145
|
+
Id,IsHiddenInUI,LoginName,Title,PrincipalType,Email,Expiration,IsEmailAuthenticationGuestUser,IsShareByEmailGuestUser,IsSiteAdmin,UserPrincipalName
|
|
146
|
+
11,,i:0#.f|membership|adelev@contoso.onmicrosoft.com,Adele Vance,1,Adele.Vance@contoso.onmicrosoft.com,,,,,adelev@contoso.onmicrosoft.com
|
|
143
147
|
```
|
|
144
148
|
|
|
145
149
|
</TabItem>
|
|
146
150
|
<TabItem value="Markdown">
|
|
147
151
|
|
|
148
152
|
```md
|
|
149
|
-
# spo group member add --webUrl "https://contoso.sharepoint.com" --groupId "5" --
|
|
153
|
+
# spo group member add --webUrl "https://contoso.sharepoint.com/sites/Marketing" --groupId "5" --userNames "AdeleV@contoso.onmicrosoft.com"
|
|
150
154
|
|
|
151
|
-
Date:
|
|
155
|
+
Date: 10/07/2024
|
|
152
156
|
|
|
153
|
-
##
|
|
157
|
+
## Adele Vance (11)
|
|
154
158
|
|
|
155
159
|
Property | Value
|
|
156
160
|
---------|-------
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
161
|
+
Id | 11
|
|
162
|
+
IsHiddenInUI | false
|
|
163
|
+
LoginName | i:0#.f\|membership\|adelev@contoso.onmicrosoft.com
|
|
164
|
+
Title | Adele Vance
|
|
165
|
+
PrincipalType | 1
|
|
166
|
+
Email | Adele.Vance@contoso.onmicrosoft.com
|
|
167
|
+
Expiration |
|
|
168
|
+
IsEmailAuthenticationGuestUser | false
|
|
169
|
+
IsShareByEmailGuestUser | false
|
|
170
|
+
IsSiteAdmin | false
|
|
171
|
+
UserPrincipalName | adelev@contoso.onmicrosoft.com
|
|
165
172
|
```
|
|
166
173
|
|
|
167
174
|
</TabItem>
|