@pnp/cli-microsoft365 6.5.0 → 6.6.0-beta.e7055b5
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.
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
12
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
13
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
14
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
|
+
};
|
|
16
|
+
var _PpTenantSettingsSetCommand_instances, _PpTenantSettingsSetCommand_initTelemetry, _PpTenantSettingsSetCommand_initOptions, _PpTenantSettingsSetCommand_initTypes, _PpTenantSettingsSetCommand_initValidators;
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
const request_1 = require("../../../../request");
|
|
19
|
+
const PowerPlatformCommand_1 = require("../../../base/PowerPlatformCommand");
|
|
20
|
+
const commands_1 = require("../../commands");
|
|
21
|
+
class PpTenantSettingsSetCommand extends PowerPlatformCommand_1.default {
|
|
22
|
+
get name() {
|
|
23
|
+
return commands_1.default.TENANT_SETTINGS_SET;
|
|
24
|
+
}
|
|
25
|
+
get description() {
|
|
26
|
+
return 'Sets the global Power Platform configuration of the tenant';
|
|
27
|
+
}
|
|
28
|
+
constructor() {
|
|
29
|
+
super();
|
|
30
|
+
_PpTenantSettingsSetCommand_instances.add(this);
|
|
31
|
+
__classPrivateFieldGet(this, _PpTenantSettingsSetCommand_instances, "m", _PpTenantSettingsSetCommand_initTelemetry).call(this);
|
|
32
|
+
__classPrivateFieldGet(this, _PpTenantSettingsSetCommand_instances, "m", _PpTenantSettingsSetCommand_initOptions).call(this);
|
|
33
|
+
__classPrivateFieldGet(this, _PpTenantSettingsSetCommand_instances, "m", _PpTenantSettingsSetCommand_initTypes).call(this);
|
|
34
|
+
__classPrivateFieldGet(this, _PpTenantSettingsSetCommand_instances, "m", _PpTenantSettingsSetCommand_initValidators).call(this);
|
|
35
|
+
}
|
|
36
|
+
commandAction(logger, args) {
|
|
37
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
+
const data = {
|
|
39
|
+
walkMeOptOut: args.options.walkMeOptOut,
|
|
40
|
+
disableNPSCommentsReachout: args.options.disableNPSCommentsReachout,
|
|
41
|
+
disableNewsletterSendout: args.options.disableNewsletterSendout,
|
|
42
|
+
disableEnvironmentCreationByNonAdminUsers: args.options.disableEnvironmentCreationByNonAdminUsers,
|
|
43
|
+
disablePortalsCreationByNonAdminUsers: args.options.disablePortalsCreationByNonAdminUsers,
|
|
44
|
+
disableSurveyFeedback: args.options.disableSurveyFeedback,
|
|
45
|
+
disableTrialEnvironmentCreationByNonAdminUsers: args.options.disableTrialEnvironmentCreationByNonAdminUsers,
|
|
46
|
+
disableCapacityAllocationByEnvironmentAdmins: args.options.disableCapacityAllocationByEnvironmentAdmins,
|
|
47
|
+
disableSupportTicketsVisibleByAllUsers: args.options.disableSupportTicketsVisibleByAllUsers,
|
|
48
|
+
powerPlatform: {
|
|
49
|
+
search: {
|
|
50
|
+
disableDocsSearch: args.options.disableDocsSearch,
|
|
51
|
+
disableCommunitySearch: args.options.disableCommunitySearch,
|
|
52
|
+
disableBingVideoSearch: args.options.disableBingVideoSearch
|
|
53
|
+
},
|
|
54
|
+
teamsIntegration: {
|
|
55
|
+
shareWithColleaguesUserLimit: args.options.shareWithColleaguesUserLimit
|
|
56
|
+
},
|
|
57
|
+
powerApps: {
|
|
58
|
+
disableShareWithEveryone: args.options.disableShareWithEveryone,
|
|
59
|
+
enableGuestsToMake: args.options.enableGuestsToMake,
|
|
60
|
+
disableMembersIndicator: args.options.disableMembersIndicator,
|
|
61
|
+
disableMakerMatch: args.options.disableMakerMatch
|
|
62
|
+
},
|
|
63
|
+
environments: {
|
|
64
|
+
disablePreferredDataLocationForTeamsEnvironment: args.options.disablePreferredDataLocationForTeamsEnvironment
|
|
65
|
+
},
|
|
66
|
+
governance: {
|
|
67
|
+
disableAdminDigest: args.options.disableAdminDigest,
|
|
68
|
+
disableDeveloperEnvironmentCreationByNonAdminUsers: args.options.disableDeveloperEnvironmentCreationByNonAdminUsers
|
|
69
|
+
},
|
|
70
|
+
licensing: {
|
|
71
|
+
disableBillingPolicyCreationByNonAdminUsers: args.options.disableBillingPolicyCreationByNonAdminUsers,
|
|
72
|
+
storageCapacityConsumptionWarningThreshold: args.options.storageCapacityConsumptionWarningThreshold
|
|
73
|
+
},
|
|
74
|
+
champions: {
|
|
75
|
+
disableChampionsInvitationReachout: args.options.disableChampionsInvitationReachout,
|
|
76
|
+
disableSkillsMatchInvitationReachout: args.options.disableSkillsMatchInvitationReachout
|
|
77
|
+
},
|
|
78
|
+
intelligence: {
|
|
79
|
+
disableCopilot: args.options.disableCopilot,
|
|
80
|
+
enableOpenAiBotPublishing: args.options.enableOpenAiBotPublishing
|
|
81
|
+
},
|
|
82
|
+
modelExperimentation: {
|
|
83
|
+
enableModelDataSharing: args.options.enableModelDataSharing
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
const requestOptions = {
|
|
88
|
+
url: `${this.resource}/providers/Microsoft.BusinessAppPlatform/scopes/admin/updateTenantSettings?api-version=2020-10-01`,
|
|
89
|
+
headers: {
|
|
90
|
+
accept: 'application/json'
|
|
91
|
+
},
|
|
92
|
+
responseType: 'json',
|
|
93
|
+
data: data
|
|
94
|
+
};
|
|
95
|
+
try {
|
|
96
|
+
const res = yield request_1.default.post(requestOptions);
|
|
97
|
+
logger.log(res);
|
|
98
|
+
}
|
|
99
|
+
catch (err) {
|
|
100
|
+
this.handleRejectedODataJsonPromise(err);
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
_PpTenantSettingsSetCommand_instances = new WeakSet(), _PpTenantSettingsSetCommand_initTelemetry = function _PpTenantSettingsSetCommand_initTelemetry() {
|
|
106
|
+
this.telemetry.push((args) => {
|
|
107
|
+
Object.assign(this.telemetryProperties, {
|
|
108
|
+
walkMeOptOut: typeof args.options.walkMeOptOut !== 'undefined',
|
|
109
|
+
disableNPSCommentsReachout: typeof args.options.disableNPSCommentsReachout !== 'undefined',
|
|
110
|
+
disableNewsletterSendout: typeof args.options.disableNewsletterSendout !== 'undefined',
|
|
111
|
+
disableEnvironmentCreationByNonAdminUsers: typeof args.options.disableEnvironmentCreationByNonAdminUsers !== 'undefined',
|
|
112
|
+
disablePortalsCreationByNonAdminUsers: typeof args.options.disablePortalsCreationByNonAdminUsers !== 'undefined',
|
|
113
|
+
disableSurveyFeedback: typeof args.options.disableSurveyFeedback !== 'undefined',
|
|
114
|
+
disableTrialEnvironmentCreationByNonAdminUsers: typeof args.options.disableTrialEnvironmentCreationByNonAdminUsers !== 'undefined',
|
|
115
|
+
disableCapacityAllocationByEnvironmentAdmins: typeof args.options.disableCapacityAllocationByEnvironmentAdmins !== 'undefined',
|
|
116
|
+
disableSupportTicketsVisibleByAllUsers: typeof args.options.disableSupportTicketsVisibleByAllUsers !== 'undefined',
|
|
117
|
+
disableDocsSearch: typeof args.options.disableDocsSearch !== 'undefined',
|
|
118
|
+
disableCommunitySearch: typeof args.options.disableCommunitySearch !== 'undefined',
|
|
119
|
+
disableBingVideoSearch: typeof args.options.disableBingVideoSearch !== 'undefined',
|
|
120
|
+
shareWithColleaguesUserLimit: typeof args.options.shareWithColleaguesUserLimit !== 'undefined',
|
|
121
|
+
disableShareWithEveryone: typeof args.options.disableShareWithEveryone !== 'undefined',
|
|
122
|
+
enableGuestsToMake: typeof args.options.enableGuestsToMake !== 'undefined',
|
|
123
|
+
disableMembersIndicator: typeof args.options.disableMembersIndicator !== 'undefined',
|
|
124
|
+
disableMakerMatch: typeof args.options.disableMakerMatch !== 'undefined',
|
|
125
|
+
disablePreferredDataLocationForTeamsEnvironment: typeof args.options.disablePreferredDataLocationForTeamsEnvironment !== 'undefined',
|
|
126
|
+
disableAdminDigest: typeof args.options.disableAdminDigest !== 'undefined',
|
|
127
|
+
disableDeveloperEnvironmentCreationByNonAdminUsers: typeof args.options.disableDeveloperEnvironmentCreationByNonAdminUsers !== 'undefined',
|
|
128
|
+
disableBillingPolicyCreationByNonAdminUsers: typeof args.options.disableBillingPolicyCreationByNonAdminUsers !== 'undefined',
|
|
129
|
+
storageCapacityConsumptionWarningThreshold: typeof args.options.storageCapacityConsumptionWarningThreshold !== 'undefined',
|
|
130
|
+
disableChampionsInvitationReachout: typeof args.options.disableChampionsInvitationReachout !== 'undefined',
|
|
131
|
+
disableSkillsMatchInvitationReachout: typeof args.options.disableSkillsMatchInvitationReachout !== 'undefined',
|
|
132
|
+
disableCopilot: typeof args.options.disableCopilot !== 'undefined',
|
|
133
|
+
enableOpenAiBotPublishing: typeof args.options.enableOpenAiBotPublishing !== 'undefined',
|
|
134
|
+
enableModelDataSharing: typeof args.options.enableModelDataSharing !== 'undefined'
|
|
135
|
+
});
|
|
136
|
+
});
|
|
137
|
+
}, _PpTenantSettingsSetCommand_initOptions = function _PpTenantSettingsSetCommand_initOptions() {
|
|
138
|
+
this.options.unshift({
|
|
139
|
+
option: '--walkMeOptOut [walkMeOptOut]',
|
|
140
|
+
autocomplete: ['true', 'false']
|
|
141
|
+
}, {
|
|
142
|
+
option: '--disableNPSCommentsReachout [disableNPSCommentsReachout]',
|
|
143
|
+
autocomplete: ['true', 'false']
|
|
144
|
+
}, {
|
|
145
|
+
option: '--disableNewsletterSendout [disableNewsletterSendout]',
|
|
146
|
+
autocomplete: ['true', 'false']
|
|
147
|
+
}, {
|
|
148
|
+
option: '--disableEnvironmentCreationByNonAdminUsers [disableEnvironmentCreationByNonAdminUsers]',
|
|
149
|
+
autocomplete: ['true', 'false']
|
|
150
|
+
}, {
|
|
151
|
+
option: '--disablePortalsCreationByNonAdminUsers [disablePortalsCreationByNonAdminUsers]',
|
|
152
|
+
autocomplete: ['true', 'false']
|
|
153
|
+
}, {
|
|
154
|
+
option: '--disableSurveyFeedback [disableSurveyFeedback]',
|
|
155
|
+
autocomplete: ['true', 'false']
|
|
156
|
+
}, {
|
|
157
|
+
option: '--disableTrialEnvironmentCreationByNonAdminUsers [disableTrialEnvironmentCreationByNonAdminUsers]',
|
|
158
|
+
autocomplete: ['true', 'false']
|
|
159
|
+
}, {
|
|
160
|
+
option: '--disableCapacityAllocationByEnvironmentAdmins [disableCapacityAllocationByEnvironmentAdmins]',
|
|
161
|
+
autocomplete: ['true', 'false']
|
|
162
|
+
}, {
|
|
163
|
+
option: '--disableSupportTicketsVisibleByAllUsers [disableSupportTicketsVisibleByAllUsers]',
|
|
164
|
+
autocomplete: ['true', 'false']
|
|
165
|
+
}, {
|
|
166
|
+
option: '--disableDocsSearch [disableDocsSearch]',
|
|
167
|
+
autocomplete: ['true', 'false']
|
|
168
|
+
}, {
|
|
169
|
+
option: '--disableCommunitySearch [disableCommunitySearch]',
|
|
170
|
+
autocomplete: ['true', 'false']
|
|
171
|
+
}, {
|
|
172
|
+
option: '--disableBingVideoSearch [disableBingVideoSearch]',
|
|
173
|
+
autocomplete: ['true', 'false']
|
|
174
|
+
}, {
|
|
175
|
+
option: '--shareWithColleaguesUserLimit [shareWithColleaguesUserLimit]'
|
|
176
|
+
}, {
|
|
177
|
+
option: '--disableShareWithEveryone [disableShareWithEveryone]',
|
|
178
|
+
autocomplete: ['true', 'false']
|
|
179
|
+
}, {
|
|
180
|
+
option: '--enableGuestsToMake [enableGuestsToMake]',
|
|
181
|
+
autocomplete: ['true', 'false']
|
|
182
|
+
}, {
|
|
183
|
+
option: '--disableMembersIndicator [disableMembersIndicator]',
|
|
184
|
+
autocomplete: ['true', 'false']
|
|
185
|
+
}, {
|
|
186
|
+
option: '--disableMakerMatch [disableMakerMatch]',
|
|
187
|
+
autocomplete: ['true', 'false']
|
|
188
|
+
}, {
|
|
189
|
+
option: '--disablePreferredDataLocationForTeamsEnvironment [disablePreferredDataLocationForTeamsEnvironment]',
|
|
190
|
+
autocomplete: ['true', 'false']
|
|
191
|
+
}, {
|
|
192
|
+
option: '--disableAdminDigest [disableAdminDigest]',
|
|
193
|
+
autocomplete: ['true', 'false']
|
|
194
|
+
}, {
|
|
195
|
+
option: '--disableDeveloperEnvironmentCreationByNonAdminUsers [disableDeveloperEnvironmentCreationByNonAdminUsers]',
|
|
196
|
+
autocomplete: ['true', 'false']
|
|
197
|
+
}, {
|
|
198
|
+
option: '--disableBillingPolicyCreationByNonAdminUsers [disableBillingPolicyCreationByNonAdminUsers]',
|
|
199
|
+
autocomplete: ['true', 'false']
|
|
200
|
+
}, {
|
|
201
|
+
option: '--storageCapacityConsumptionWarningThreshold [storageCapacityConsumptionWarningThreshold]'
|
|
202
|
+
}, {
|
|
203
|
+
option: '--disableChampionsInvitationReachout [disableChampionsInvitationReachout]',
|
|
204
|
+
autocomplete: ['true', 'false']
|
|
205
|
+
}, {
|
|
206
|
+
option: '--disableSkillsMatchInvitationReachout [disableSkillsMatchInvitationReachout]',
|
|
207
|
+
autocomplete: ['true', 'false']
|
|
208
|
+
}, {
|
|
209
|
+
option: '--disableCopilot [disableCopilot]',
|
|
210
|
+
autocomplete: ['true', 'false']
|
|
211
|
+
}, {
|
|
212
|
+
option: '--enableOpenAiBotPublishing [enableOpenAiBotPublishing]',
|
|
213
|
+
autocomplete: ['true', 'false']
|
|
214
|
+
}, {
|
|
215
|
+
option: '--enableModelDataSharing [enableModelDataSharing]',
|
|
216
|
+
autocomplete: ['true', 'false']
|
|
217
|
+
});
|
|
218
|
+
}, _PpTenantSettingsSetCommand_initTypes = function _PpTenantSettingsSetCommand_initTypes() {
|
|
219
|
+
this.types.boolean.push('walkMeOptOut', 'disableNPSCommentsReachout', 'disableNewsletterSendout', 'disableEnvironmentCreationByNonAdminUsers', 'disablePortalsCreationByNonAdminUsers', 'disableSurveyFeedback', 'disableTrialEnvironmentCreationByNonAdminUsers', 'disableCapacityAllocationByEnvironmentAdmins', 'disableSupportTicketsVisibleByAllUsers', 'disableDocsSearch', 'disableCommunitySearch', 'disableBingVideoSearch', 'disableShareWithEveryone', 'enableGuestsToMake', 'disableMembersIndicator', 'disableMakerMatch', 'disablePreferredDataLocationForTeamsEnvironment', 'disableAdminDigest', 'disableDeveloperEnvironmentCreationByNonAdminUsers', 'disableBillingPolicyCreationByNonAdminUsers', 'disableChampionsInvitationReachout', 'disableSkillsMatchInvitationReachout', 'disableCopilot', 'enableOpenAiBotPublishing', 'enableModelDataSharing');
|
|
220
|
+
}, _PpTenantSettingsSetCommand_initValidators = function _PpTenantSettingsSetCommand_initValidators() {
|
|
221
|
+
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
222
|
+
if (args.options.shareWithColleaguesUserLimit !== undefined && (!Number.isInteger(args.options.shareWithColleaguesUserLimit) || args.options.shareWithColleaguesUserLimit < 0)) {
|
|
223
|
+
return `'${args.options.shareWithColleaguesUserLimit}' is not a valid number.`;
|
|
224
|
+
}
|
|
225
|
+
if (args.options.storageCapacityConsumptionWarningThreshold !== undefined && (!Number.isInteger(args.options.storageCapacityConsumptionWarningThreshold) || args.options.storageCapacityConsumptionWarningThreshold < 0)) {
|
|
226
|
+
return `'${args.options.storageCapacityConsumptionWarningThreshold}' is not a valid number.`;
|
|
227
|
+
}
|
|
228
|
+
if (typeof args.options.walkMeOptOut === 'undefined' &&
|
|
229
|
+
typeof args.options.disableNPSCommentsReachout === 'undefined' &&
|
|
230
|
+
typeof args.options.disableNewsletterSendout === 'undefined' &&
|
|
231
|
+
typeof args.options.disableEnvironmentCreationByNonAdminUsers === 'undefined' &&
|
|
232
|
+
typeof args.options.disablePortalsCreationByNonAdminUsers === 'undefined' &&
|
|
233
|
+
typeof args.options.disableSurveyFeedback === 'undefined' &&
|
|
234
|
+
typeof args.options.disableTrialEnvironmentCreationByNonAdminUsers === 'undefined' &&
|
|
235
|
+
typeof args.options.disableCapacityAllocationByEnvironmentAdmins === 'undefined' &&
|
|
236
|
+
typeof args.options.disableSupportTicketsVisibleByAllUsers === 'undefined' &&
|
|
237
|
+
typeof args.options.disableDocsSearch === 'undefined' &&
|
|
238
|
+
typeof args.options.disableCommunitySearch === 'undefined' &&
|
|
239
|
+
typeof args.options.disableBingVideoSearch === 'undefined' &&
|
|
240
|
+
typeof args.options.shareWithColleaguesUserLimit === 'undefined' &&
|
|
241
|
+
typeof args.options.disableShareWithEveryone === 'undefined' &&
|
|
242
|
+
typeof args.options.enableGuestsToMake === 'undefined' &&
|
|
243
|
+
typeof args.options.disableMembersIndicator === 'undefined' &&
|
|
244
|
+
typeof args.options.disableMakerMatch === 'undefined' &&
|
|
245
|
+
typeof args.options.disablePreferredDataLocationForTeamsEnvironment === 'undefined' &&
|
|
246
|
+
typeof args.options.disableAdminDigest === 'undefined' &&
|
|
247
|
+
typeof args.options.disableDeveloperEnvironmentCreationByNonAdminUsers === 'undefined' &&
|
|
248
|
+
typeof args.options.disableBillingPolicyCreationByNonAdminUsers === 'undefined' &&
|
|
249
|
+
typeof args.options.storageCapacityConsumptionWarningThreshold === 'undefined' &&
|
|
250
|
+
typeof args.options.disableChampionsInvitationReachout === 'undefined' &&
|
|
251
|
+
typeof args.options.disableSkillsMatchInvitationReachout === 'undefined' &&
|
|
252
|
+
typeof args.options.disableCopilot === 'undefined' &&
|
|
253
|
+
typeof args.options.enableOpenAiBotPublishing === 'undefined' &&
|
|
254
|
+
typeof args.options.enableModelDataSharing === 'undefined') {
|
|
255
|
+
return 'Specify at least one option.';
|
|
256
|
+
}
|
|
257
|
+
return true;
|
|
258
|
+
}));
|
|
259
|
+
};
|
|
260
|
+
module.exports = new PpTenantSettingsSetCommand();
|
|
261
|
+
//# sourceMappingURL=tenant-settings-set.js.map
|
package/dist/m365/pp/commands.js
CHANGED
|
@@ -31,6 +31,7 @@ exports.default = {
|
|
|
31
31
|
SOLUTION_PUBLISHER_GET: `${prefix} solution publisher get`,
|
|
32
32
|
SOLUTION_PUBLISHER_LIST: `${prefix} solution publisher list`,
|
|
33
33
|
SOLUTION_PUBLISHER_REMOVE: `${prefix} solution publisher remove`,
|
|
34
|
-
TENANT_SETTINGS_LIST: `${prefix} tenant settings list
|
|
34
|
+
TENANT_SETTINGS_LIST: `${prefix} tenant settings list`,
|
|
35
|
+
TENANT_SETTINGS_SET: `${prefix} tenant settings set`
|
|
35
36
|
};
|
|
36
37
|
//# sourceMappingURL=commands.js.map
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
# pp tenant settings set
|
|
2
|
+
|
|
3
|
+
Sets the global Power Platform configuration of the tenant
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 pp tenant settings set [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`--walkMeOptOut [walkMeOptOut]`
|
|
14
|
+
: Ability to opt out of guided experiences using WalkMe in Power Platform. Valid values: `true`, `false`.
|
|
15
|
+
|
|
16
|
+
`--disableNPSCommentsReachout [disableNPSCommentsReachout]`
|
|
17
|
+
: Ability to disable re-surveying users who left prior feedback via NPS prompts in Power Platform. Valid values: `true`, `false`.
|
|
18
|
+
|
|
19
|
+
`--disableNewsletterSendout [disableNewsletterSendout]`
|
|
20
|
+
: Ability to disable the newsletter sendout feature. Valid values: `true`, `false`.
|
|
21
|
+
|
|
22
|
+
`--disableEnvironmentCreationByNonAdminUsers [disableEnvironmentCreationByNonAdminUsers]`
|
|
23
|
+
: Restrict all environments to be created by Global Admins, Power Platform Admins, or Dynamics365 Service Admins. Valid values: `true`, `false`.
|
|
24
|
+
|
|
25
|
+
`--disablePortalsCreationByNonAdminUsers [disablePortalsCreationByNonAdminUsers]`
|
|
26
|
+
: Restrict all portals to be created by Global Admins, Power Platform Admins, or Dynamics365 Service Admins. Valid values: `true`, `false`.
|
|
27
|
+
|
|
28
|
+
`--disableSurveyFeedback [disableSurveyFeedback]`
|
|
29
|
+
: Ability to disable all NPS survey feedback prompts in Power Platform. Valid values: `true`, `false`.
|
|
30
|
+
|
|
31
|
+
`--disableTrialEnvironmentCreationByNonAdminUsers [disableTrialEnvironmentCreationByNonAdminUsers]`
|
|
32
|
+
: Restrict all trial environments to be created by Global Admins, Power Platform Admins, or Dynamics365 Service Admins. Valid values: `true`, `false`.
|
|
33
|
+
|
|
34
|
+
`--disableCapacityAllocationByEnvironmentAdmins [disableCapacityAllocationByEnvironmentAdmins]`
|
|
35
|
+
: Ability to disable capacity allocation by environment administrators. Valid values: `true`, `false`.
|
|
36
|
+
|
|
37
|
+
`--disableSupportTicketsVisibleByAllUsers [disableSupportTicketsVisibleByAllUsers]`
|
|
38
|
+
: Ability to disable support ticket creation by non-admin users in the tenant. Valid values: `true`, `false`.
|
|
39
|
+
|
|
40
|
+
`--disableDocsSearch [disableDocsSearch]`
|
|
41
|
+
: When this setting is true, users in the environment will see a message that Microsoft Learn and Documentation search categories have been turned off by the administrator in the search results page. Valid values: `true`, `false`.
|
|
42
|
+
|
|
43
|
+
`--disableCommunitySearch [disableCommunitySearch]`
|
|
44
|
+
: When this setting is true, users in the environment will see a message that Community and Blog search categories have been turned off by the administrator in the search results page. Valid values: `true`, `false`.
|
|
45
|
+
|
|
46
|
+
`--disableBingVideoSearch [disableBingVideoSearch]`
|
|
47
|
+
: When this setting is true, users in the environment will see a message that video search categories have been turned off by the administrator in the search results page. Valid values: `true`, `false`.
|
|
48
|
+
|
|
49
|
+
`--shareWithColleaguesUserLimit [shareWithColleaguesUserLimit]`
|
|
50
|
+
: Maximum value setting for the number of users in a security group used to share an app built using Power Apps on Microsoft Teams. Specify any number as a value.
|
|
51
|
+
|
|
52
|
+
`--disableShareWithEveryone [disableShareWithEveryone]`
|
|
53
|
+
: Ability to disable the Share With Everyone capability in all Power Apps. Valid values: `true`, `false`.
|
|
54
|
+
|
|
55
|
+
`--enableGuestsToMake [enableGuestsToMake]`
|
|
56
|
+
: Ability to allow guest users in your tenant to create Power Apps. Valid values: `true`, `false`.
|
|
57
|
+
|
|
58
|
+
`--disableMembersIndicator [disableMembersIndicator]`
|
|
59
|
+
: Ability to disable the display of a members indicator. Valid values: `true`, `false`.
|
|
60
|
+
|
|
61
|
+
`--disableMakerMatch [disableMakerMatch]`
|
|
62
|
+
: Ability to disable the Maker Match feature, which helps organizations find internal resources with the necessary skills to develop custom apps and solutions using Power Platform. Valid values: `true`, `false`.
|
|
63
|
+
|
|
64
|
+
`--disablePreferredDataLocationForTeamsEnvironment [disablePreferredDataLocationForTeamsEnvironment]`
|
|
65
|
+
: Ability to disable the selection of a preferred data location for Teams environment. Valid values: `true`, `false`.
|
|
66
|
+
|
|
67
|
+
`--disableAdminDigest [disableAdminDigest]`
|
|
68
|
+
: When true, the entire organization is unsubscribed from the weekly digest. Valid values: `true`, `false`.
|
|
69
|
+
|
|
70
|
+
`--disableDeveloperEnvironmentCreationByNonAdminUsers [disableDeveloperEnvironmentCreationByNonAdminUsers]`
|
|
71
|
+
: Restrict all developer environments to be created by Global Admins, Power Platform Admins, or Dynamics365 Service Admins. Valid values: `true`, `false`.
|
|
72
|
+
|
|
73
|
+
`--disableBillingPolicyCreationByNonAdminUsers [disableBillingPolicyCreationByNonAdminUsers]`
|
|
74
|
+
: Restrict billing policies to be created by Global Admins, Power Platform Admins, or Dynamics365 Service Admins. Valid values: `true`, `false`.
|
|
75
|
+
|
|
76
|
+
`--storageCapacityConsumptionWarningThreshold [storageCapacityConsumptionWarningThreshold]`
|
|
77
|
+
: Ability to set a threshold for storage capacity consumption warnings. Specify any number as a value.
|
|
78
|
+
|
|
79
|
+
`--disableChampionsInvitationReachout [disableChampionsInvitationReachout]`
|
|
80
|
+
: Ability to disable all invitations to become a Power Platform champion. Valid values: `true`, `false`.
|
|
81
|
+
|
|
82
|
+
`--disableSkillsMatchInvitationReachout [disableSkillsMatchInvitationReachout]`
|
|
83
|
+
: Ability to disable all skills match invitations to become part of the makers community. Valid values: `true`, `false`.
|
|
84
|
+
|
|
85
|
+
`--disableCopilot [disableCopilot]`
|
|
86
|
+
: Ability to turn off or disable the Copilot feature. Valid values: `true`, `false`.
|
|
87
|
+
|
|
88
|
+
`--enableOpenAiBotPublishing [enableOpenAiBotPublishing]`
|
|
89
|
+
: Ability to enable or disable the publishing of OpenAI bots within the organization's environment. Valid values: `true`, `false`.
|
|
90
|
+
|
|
91
|
+
`--enableModelDataSharing [enableModelDataSharing]`
|
|
92
|
+
: Ability to enable or disable the sharing of model data within the organization's environment. Valid values: `true`, `false`.
|
|
93
|
+
|
|
94
|
+
--8<-- "docs/cmd/_global.md"
|
|
95
|
+
|
|
96
|
+
## Remarks
|
|
97
|
+
|
|
98
|
+
!!! attention
|
|
99
|
+
This command is based on an API that is currently in preview and is subject to change once the API reached general availability.
|
|
100
|
+
|
|
101
|
+
## Examples
|
|
102
|
+
|
|
103
|
+
Disable environment creation for non-admin users
|
|
104
|
+
|
|
105
|
+
```sh
|
|
106
|
+
m365 pp tenant settings set --disableEnvironmentCreationByNonAdminUsers true --disableTrialEnvironmentCreationByNonAdminUsers true --disableDeveloperEnvironmentCreationByNonAdminUsers true
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
Enable Power App creation for guest users
|
|
110
|
+
|
|
111
|
+
```sh
|
|
112
|
+
m365 pp tenant settings set --enableGuestsToMake true
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
Disable guided experience, survey feedback and newsletter
|
|
116
|
+
|
|
117
|
+
```sh
|
|
118
|
+
m365 pp tenant settings set --walkMeOptOut true --disableNewsletterSendout true --disableSurveyFeedback true
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
## Response
|
|
122
|
+
|
|
123
|
+
=== "JSON"
|
|
124
|
+
|
|
125
|
+
```json
|
|
126
|
+
{
|
|
127
|
+
"walkMeOptOut": false,
|
|
128
|
+
"disableNPSCommentsReachout": false,
|
|
129
|
+
"disableNewsletterSendout": false,
|
|
130
|
+
"disableEnvironmentCreationByNonAdminUsers": false,
|
|
131
|
+
"disablePortalsCreationByNonAdminUsers": false,
|
|
132
|
+
"disableSurveyFeedback": false,
|
|
133
|
+
"disableTrialEnvironmentCreationByNonAdminUsers": false,
|
|
134
|
+
"disableCapacityAllocationByEnvironmentAdmins": false,
|
|
135
|
+
"disableSupportTicketsVisibleByAllUsers": false,
|
|
136
|
+
"powerPlatform": {
|
|
137
|
+
"search": {
|
|
138
|
+
"disableDocsSearch": false,
|
|
139
|
+
"disableCommunitySearch": false,
|
|
140
|
+
"disableBingVideoSearch": false
|
|
141
|
+
},
|
|
142
|
+
"teamsIntegration": {
|
|
143
|
+
"shareWithColleaguesUserLimit": 10000
|
|
144
|
+
},
|
|
145
|
+
"powerApps": {
|
|
146
|
+
"disableShareWithEveryone": false,
|
|
147
|
+
"enableGuestsToMake": false,
|
|
148
|
+
"disableMembersIndicator": false,
|
|
149
|
+
"disableMakerMatch": false
|
|
150
|
+
},
|
|
151
|
+
"environments": {
|
|
152
|
+
"disablePreferredDataLocationForTeamsEnvironment": false
|
|
153
|
+
},
|
|
154
|
+
"governance": {
|
|
155
|
+
"disableAdminDigest": false,
|
|
156
|
+
"disableDeveloperEnvironmentCreationByNonAdminUsers": false
|
|
157
|
+
},
|
|
158
|
+
"licensing": {
|
|
159
|
+
"disableBillingPolicyCreationByNonAdminUsers": false,
|
|
160
|
+
"storageCapacityConsumptionWarningThreshold": 85
|
|
161
|
+
},
|
|
162
|
+
"powerPages": {},
|
|
163
|
+
"champions": {
|
|
164
|
+
"disableChampionsInvitationReachout": false,
|
|
165
|
+
"disableSkillsMatchInvitationReachout": false
|
|
166
|
+
},
|
|
167
|
+
"intelligence": {
|
|
168
|
+
"disableCopilot": false,
|
|
169
|
+
"enableOpenAiBotPublishing": false
|
|
170
|
+
},
|
|
171
|
+
"modelExperimentation": {
|
|
172
|
+
"enableModelDataSharing": false
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
=== "Text"
|
|
179
|
+
|
|
180
|
+
```text
|
|
181
|
+
disableCapacityAllocationByEnvironmentAdmins : false
|
|
182
|
+
disableEnvironmentCreationByNonAdminUsers : false
|
|
183
|
+
disableNPSCommentsReachout : false
|
|
184
|
+
disableNewsletterSendout : false
|
|
185
|
+
disablePortalsCreationByNonAdminUsers : false
|
|
186
|
+
disableSupportTicketsVisibleByAllUsers : false
|
|
187
|
+
disableSurveyFeedback : false
|
|
188
|
+
disableTrialEnvironmentCreationByNonAdminUsers: false
|
|
189
|
+
powerPlatform : {"search":{"disableDocsSearch":false,"disableCommunitySearch":false,"disableBingVideoSearch":false},"teamsIntegration":{"shareWithColleaguesUserLimit":10000},"powerApps":{"disableShareWithEveryone":false,"enableGuestsToMake":false,"disableMembersIndicator":false,"disableMakerMatch":false},"environments":{"disablePreferredDataLocationForTeamsEnvironment":false},"governance":{"disableAdminDigest":false,"disableDeveloperEnvironmentCreationByNonAdminUsers":false},"licensing":{"disableBillingPolicyCreationByNonAdminUsers":false,"storageCapacityConsumptionWarningThreshold":85},"powerPages":{},"champions":{"disableChampionsInvitationReachout":false,"disableSkillsMatchInvitationReachout":false},"intelligence":{"disableCopilot":false,"enableOpenAiBotPublishing":false},"modelExperimentation":{"enableModelDataSharing":false}}
|
|
190
|
+
walkMeOptOut : false
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
=== "CSV"
|
|
194
|
+
|
|
195
|
+
```csv
|
|
196
|
+
walkMeOptOut,disableNPSCommentsReachout,disableNewsletterSendout,disableEnvironmentCreationByNonAdminUsers,disablePortalsCreationByNonAdminUsers,disableSurveyFeedback,disableTrialEnvironmentCreationByNonAdminUsers,disableCapacityAllocationByEnvironmentAdmins,disableSupportTicketsVisibleByAllUsers
|
|
197
|
+
,,,,,,,,
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
=== "Markdown"
|
|
201
|
+
|
|
202
|
+
```md
|
|
203
|
+
# pp tenant settings set --disableEnvironmentCreationByNonAdminUsers false --disableTrialEnvironmentCreationByNonAdminUsers false --disableDeveloperEnvironmentCreationByNonAdminUsers false
|
|
204
|
+
|
|
205
|
+
Date: 14/3/2023
|
|
206
|
+
|
|
207
|
+
Property | Value
|
|
208
|
+
---------|-------
|
|
209
|
+
walkMeOptOut | false
|
|
210
|
+
disableNPSCommentsReachout | false
|
|
211
|
+
disableNewsletterSendout | false
|
|
212
|
+
disableEnvironmentCreationByNonAdminUsers | false
|
|
213
|
+
disablePortalsCreationByNonAdminUsers | false
|
|
214
|
+
disableSurveyFeedback | false
|
|
215
|
+
disableTrialEnvironmentCreationByNonAdminUsers | false
|
|
216
|
+
disableCapacityAllocationByEnvironmentAdmins | false
|
|
217
|
+
disableSupportTicketsVisibleByAllUsers | false
|
|
218
|
+
```
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnp/cli-microsoft365",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.6.0",
|
|
4
4
|
"lockfileVersion": 2,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@pnp/cli-microsoft365",
|
|
9
|
-
"version": "6.
|
|
9
|
+
"version": "6.6.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@azure/msal-node": "^1.16.0",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnp/cli-microsoft365",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.6.0-beta.e7055b5",
|
|
4
4
|
"description": "Manage Microsoft 365 and SharePoint Framework projects on any platform",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/api.js",
|
|
@@ -217,7 +217,8 @@
|
|
|
217
217
|
"Waegebaert, Jasey <jaseyw@gmigroup.be>",
|
|
218
218
|
"Wilen, Wictor <wictor@wictorwilen.se>",
|
|
219
219
|
"Williams, Rabia <rabiawilliams@gmail.com>",
|
|
220
|
-
"Wojcik, Adam <adam.wojcik.it@gmail.com>"
|
|
220
|
+
"Wojcik, Adam <adam.wojcik.it@gmail.com>",
|
|
221
|
+
"Zachariassen Laksafoss, Trygvi <trygvi.laksafoss@gmail.com>"
|
|
221
222
|
],
|
|
222
223
|
"dependencies": {
|
|
223
224
|
"@azure/msal-node": "^1.16.0",
|
|
@@ -275,4 +276,4 @@
|
|
|
275
276
|
"sinon": "^15.0.3",
|
|
276
277
|
"source-map-support": "^0.5.21"
|
|
277
278
|
}
|
|
278
|
-
}
|
|
279
|
+
}
|