@pnp/cli-microsoft365 7.0.0-beta.b7c2a8d → 7.0.0-beta.c0afb7b
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 -3
- package/dist/GlobalOptions.js +1 -7
- package/dist/cli/Cli.js +19 -2
- package/dist/m365/aad/commands/{o365group/o365group-add.js → m365group/m365group-add.js} +17 -17
- package/dist/m365/aad/commands/{o365group/o365group-conversation-list.js → m365group/m365group-conversation-list.js} +10 -10
- package/dist/m365/aad/commands/{o365group/o365group-conversation-post-list.js → m365group/m365group-conversation-post-list.js} +14 -14
- package/dist/m365/aad/commands/{o365group/o365group-get.js → m365group/m365group-get.js} +13 -10
- package/dist/m365/aad/commands/{o365group/o365group-list.js → m365group/m365group-list.js} +13 -28
- package/dist/m365/aad/commands/{o365group/o365group-recyclebinitem-clear.js → m365group/m365group-recyclebinitem-clear.js} +15 -15
- package/dist/m365/aad/commands/{o365group/o365group-recyclebinitem-list.js → m365group/m365group-recyclebinitem-list.js} +10 -10
- package/dist/m365/aad/commands/{o365group/o365group-recyclebinitem-remove.js → m365group/m365group-recyclebinitem-remove.js} +14 -14
- package/dist/m365/aad/commands/{o365group/o365group-recyclebinitem-restore.js → m365group/m365group-recyclebinitem-restore.js} +14 -14
- package/dist/m365/aad/commands/{o365group/o365group-remove.js → m365group/m365group-remove.js} +12 -12
- package/dist/m365/aad/commands/{o365group/o365group-renew.js → m365group/m365group-renew.js} +10 -10
- package/dist/m365/aad/commands/{o365group/o365group-report-activitycounts.js → m365group/m365group-report-activitycounts.js} +4 -4
- package/dist/m365/aad/commands/{o365group/o365group-report-activitydetail.js → m365group/m365group-report-activitydetail.js} +4 -4
- package/dist/m365/aad/commands/{o365group/o365group-report-activityfilecounts.js → m365group/m365group-report-activityfilecounts.js} +4 -4
- package/dist/m365/aad/commands/{o365group/o365group-report-activitygroupcounts.js → m365group/m365group-report-activitygroupcounts.js} +4 -4
- package/dist/m365/aad/commands/{o365group/o365group-report-activitystorage.js → m365group/m365group-report-activitystorage.js} +4 -4
- package/dist/m365/aad/commands/{o365group/o365group-set.js → m365group/m365group-set.js} +17 -17
- package/dist/m365/aad/commands/{o365group/o365group-teamify.js → m365group/m365group-teamify.js} +14 -14
- package/dist/m365/aad/commands/{o365group/o365group-user-add.js → m365group/m365group-user-add.js} +14 -14
- package/dist/m365/aad/commands/{o365group/o365group-user-list.js → m365group/m365group-user-list.js} +12 -12
- package/dist/m365/aad/commands/{o365group/o365group-user-remove.js → m365group/m365group-user-remove.js} +14 -14
- package/dist/m365/aad/commands/{o365group/o365group-user-set.js → m365group/m365group-user-set.js} +15 -15
- package/dist/m365/aad/commands.js +22 -22
- package/dist/m365/pa/commands/app/app-permission-list.js +2 -2
- package/dist/m365/pa/commands/app/app-permission-remove.js +3 -3
- package/dist/m365/pa/commands.js +1 -4
- package/dist/m365/spfx/commands/project/project-doctor/{doctor-1.18.0-beta.1.js → doctor-1.18.0-beta.5.js} +1 -1
- package/dist/m365/spfx/commands/project/project-doctor.js +1 -1
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.15.2.js +1 -1
- package/dist/m365/spfx/commands/project/project-upgrade/{upgrade-1.18.0-beta.1.js → upgrade-1.18.0-beta.5.js} +26 -26
- package/dist/m365/spfx/commands/project/project-upgrade.js +1 -1
- package/dist/m365/spfx/commands/spfx-doctor.js +3 -3
- package/dist/m365/spo/commands/app/SpoAppBaseCommand.js +27 -26
- package/dist/m365/spo/commands/app/app-add.js +9 -9
- package/dist/m365/spo/commands/file/file-copy.js +1 -1
- package/dist/m365/spo/commands/file/file-move.js +73 -97
- package/dist/m365/spo/commands/folder/folder-copy.js +89 -45
- package/dist/m365/spo/commands/folder/folder-move.js +89 -47
- package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-add.js +32 -3
- package/dist/m365/spo/commands/page/clientsidepages.js +1 -81
- package/dist/m365/spo/commands/propertybag/propertybag-base.js +63 -59
- package/dist/m365/spo/commands/propertybag/propertybag-remove.js +28 -31
- package/dist/m365/spo/commands/site/FlowsPolicy.js +7 -0
- package/dist/m365/spo/commands/site/site-ensure.js +3 -3
- package/dist/m365/spo/commands/site/site-hubsite-disconnect.js +22 -22
- package/dist/m365/spo/commands/site/site-list.js +27 -43
- package/dist/m365/spo/commands/site/site-set.js +60 -49
- package/dist/m365/spo/commands/theme/theme-list.js +1 -9
- package/dist/m365/spo/commands/theme/theme-remove.js +24 -24
- package/dist/m365/spo/commands/theme/theme-set.js +0 -1
- package/dist/m365/spo/commands/user/user-remove.js +27 -27
- package/dist/m365/spo/commands/web/web-reindex.js +35 -42
- package/dist/m365/spo/commands/web/web-remove.js +21 -21
- package/dist/m365/spo/commands/web/web-roleassignment-add.js +16 -31
- package/dist/m365/spo/commands/web/web-roleassignment-remove.js +33 -44
- package/dist/m365/spo/commands/web/web-roleinheritance-break.js +18 -18
- package/dist/m365/spo/commands/web/web-roleinheritance-reset.js +19 -19
- package/dist/m365/yammer/commands/message/message-like-set.js +27 -28
- package/dist/m365/yammer/commands/message/message-list.js +62 -81
- package/dist/m365/yammer/commands/message/message-remove.js +18 -18
- package/dist/m365/yammer/commands/yammer-search.js +53 -69
- package/dist/utils/spo.js +12 -53
- package/dist/utils/validation.js +0 -3
- package/docs/docs/cmd/aad/{o365group/o365group-add.mdx → m365group/m365group-add.mdx} +13 -13
- package/docs/docs/cmd/aad/{o365group/o365group-conversation-list.mdx → m365group/m365group-conversation-list.mdx} +4 -4
- package/docs/docs/cmd/aad/{o365group/o365group-conversation-post-list.mdx → m365group/m365group-conversation-post-list.mdx} +8 -8
- package/docs/docs/cmd/aad/{o365group/o365group-get.mdx → m365group/m365group-get.mdx} +6 -6
- package/docs/docs/cmd/aad/{o365group/o365group-list.mdx → m365group/m365group-list.mdx} +12 -29
- package/docs/docs/cmd/aad/{o365group/o365group-recyclebinitem-clear.mdx → m365group/m365group-recyclebinitem-clear.mdx} +5 -5
- package/docs/docs/cmd/aad/{o365group/o365group-recyclebinitem-list.mdx → m365group/m365group-recyclebinitem-list.mdx} +8 -8
- package/docs/docs/cmd/aad/{o365group/o365group-recyclebinitem-remove.mdx → m365group/m365group-recyclebinitem-remove.mdx} +6 -6
- package/docs/docs/cmd/aad/{o365group/o365group-recyclebinitem-restore.mdx → m365group/m365group-recyclebinitem-restore.mdx} +6 -6
- package/docs/docs/cmd/aad/{o365group/o365group-remove.mdx → m365group/m365group-remove.mdx} +6 -6
- package/docs/docs/cmd/aad/{o365group/o365group-renew.mdx → m365group/m365group-renew.mdx} +4 -4
- package/docs/docs/cmd/aad/{o365group/o365group-report-activitycounts.mdx → m365group/m365group-report-activitycounts.mdx} +6 -6
- package/docs/docs/cmd/aad/{o365group/o365group-report-activitydetail.mdx → m365group/m365group-report-activitydetail.mdx} +7 -7
- package/docs/docs/cmd/aad/{o365group/o365group-report-activityfilecounts.mdx → m365group/m365group-report-activityfilecounts.mdx} +6 -6
- package/docs/docs/cmd/aad/{o365group/o365group-report-activitygroupcounts.mdx → m365group/m365group-report-activitygroupcounts.mdx} +6 -6
- package/docs/docs/cmd/aad/{o365group/o365group-report-activitystorage.mdx → m365group/m365group-report-activitystorage.mdx} +6 -6
- package/docs/docs/cmd/aad/{o365group/o365group-set.mdx → m365group/m365group-set.mdx} +8 -8
- package/docs/docs/cmd/aad/{o365group/o365group-teamify.mdx → m365group/m365group-teamify.mdx} +5 -5
- package/docs/docs/cmd/aad/{o365group/o365group-user-add.mdx → m365group/m365group-user-add.mdx} +5 -5
- package/docs/docs/cmd/aad/{o365group/o365group-user-list.mdx → m365group/m365group-user-list.mdx} +7 -7
- package/docs/docs/cmd/aad/{o365group/o365group-user-remove.mdx → m365group/m365group-user-remove.mdx} +5 -5
- package/docs/docs/cmd/aad/{o365group/o365group-user-set.mdx → m365group/m365group-user-set.mdx} +5 -5
- package/docs/docs/cmd/pa/app/app-permission-remove.mdx +1 -1
- package/docs/docs/cmd/planner/plan/plan-add.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-move.mdx +36 -18
- package/docs/docs/cmd/spo/folder/folder-copy.mdx +39 -12
- package/docs/docs/cmd/spo/folder/folder-move.mdx +40 -13
- package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-add.mdx +14 -1
- package/docs/docs/cmd/spo/site/site-add.mdx +1 -1
- package/docs/docs/cmd/spo/site/site-ensure.mdx +1 -1
- package/docs/docs/cmd/spo/site/site-list.mdx +3 -78
- package/docs/docs/cmd/teams/team/team-add.mdx +1 -1
- package/npm-shrinkwrap.json +178 -1304
- package/package.json +5 -7
- package/dist/m365/pa/cds-project-mutator.js +0 -91
- package/dist/m365/pa/commands/pcf/pcf-init/assets/control/dataset-template/generated/ManifestTypes.d.ts +0 -11
- package/dist/m365/pa/commands/pcf/pcf-init/assets/control/dataset-template/template_ControlManifest.Input.xml +0 -31
- package/dist/m365/pa/commands/pcf/pcf-init/assets/control/dataset-template/template_index.ts +0 -51
- package/dist/m365/pa/commands/pcf/pcf-init/assets/control/field-template/generated/ManifestTypes.d.ts +0 -12
- package/dist/m365/pa/commands/pcf/pcf-init/assets/control/field-template/template_ControlManifest.Input.xml +0 -37
- package/dist/m365/pa/commands/pcf/pcf-init/assets/control/field-template/template_index.ts +0 -48
- package/dist/m365/pa/commands/pcf/pcf-init/assets/control/index.ts +0 -0
- package/dist/m365/pa/commands/pcf/pcf-init/assets/control/virtual-dataset-template/template_ControlManifest.Input.xml +0 -31
- package/dist/m365/pa/commands/pcf/pcf-init/assets/control/virtual-dataset-template/template_index.tsx +0 -58
- package/dist/m365/pa/commands/pcf/pcf-init/assets/control/virtual-field-template/template_ControlManifest.Input.xml +0 -37
- package/dist/m365/pa/commands/pcf/pcf-init/assets/control/virtual-field-template/template_index.tsx +0 -55
- package/dist/m365/pa/commands/pcf/pcf-init/assets/package.json +0 -19
- package/dist/m365/pa/commands/pcf/pcf-init/assets/pcfconfig.json +0 -3
- package/dist/m365/pa/commands/pcf/pcf-init/assets/template_.gitignore +0 -14
- package/dist/m365/pa/commands/pcf/pcf-init/assets/template_pcfprojecttype.pcfproj +0 -45
- package/dist/m365/pa/commands/pcf/pcf-init/pcf-init-variables.js +0 -2
- package/dist/m365/pa/commands/pcf/pcf-init.js +0 -120
- package/dist/m365/pa/commands/solution/solution-init/assets/Other/Customizations.xml +0 -18
- package/dist/m365/pa/commands/solution/solution-init/assets/Other/Relationships.xml +0 -2
- package/dist/m365/pa/commands/solution/solution-init/assets/Other/template_Solution.xml +0 -94
- package/dist/m365/pa/commands/solution/solution-init/assets/template_.gitignore +0 -2
- package/dist/m365/pa/commands/solution/solution-init/assets/template_solutionprojecttype.cdsproj +0 -44
- package/dist/m365/pa/commands/solution/solution-init/solution-init-variables.js +0 -2
- package/dist/m365/pa/commands/solution/solution-init.js +0 -126
- package/dist/m365/pa/commands/solution/solution-reference-add.js +0 -88
- package/dist/m365/pa/template-instantiator.js +0 -57
- package/docs/docs/cmd/pa/pcf/pcf-init.mdx +0 -56
- package/docs/docs/cmd/pa/solution/solution-init.mdx +0 -46
- package/docs/docs/cmd/pa/solution/solution-reference-add.mdx +0 -42
- /package/dist/m365/aad/commands/{o365group → m365group}/GroupExtended.js +0 -0
|
@@ -33,76 +33,60 @@ class YammerSearchCommand extends YammerCommand {
|
|
|
33
33
|
__classPrivateFieldGet(this, _YammerSearchCommand_instances, "m", _YammerSearchCommand_initOptions).call(this);
|
|
34
34
|
__classPrivateFieldGet(this, _YammerSearchCommand_instances, "m", _YammerSearchCommand_initValidators).call(this);
|
|
35
35
|
}
|
|
36
|
-
getAllItems(logger, args, page) {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
36
|
+
async getAllItems(logger, args, page) {
|
|
37
|
+
const endpoint = `${this.resource}/v1/search.json?search=${formatting.encodeQueryParameter(args.options.queryText)}&page=${page}`;
|
|
38
|
+
const requestOptions = {
|
|
39
|
+
url: endpoint,
|
|
40
|
+
responseType: 'json',
|
|
41
|
+
headers: {
|
|
42
|
+
accept: 'application/json;odata=nometadata'
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
const results = await request.get(requestOptions);
|
|
46
|
+
// results count should only read once
|
|
47
|
+
if (page === 1) {
|
|
48
|
+
this.summary = {
|
|
49
|
+
messages: results.count.messages,
|
|
50
|
+
topics: results.count.topics,
|
|
51
|
+
users: results.count.users,
|
|
52
|
+
groups: results.count.groups
|
|
45
53
|
};
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
if (args.options.limit && this.users.length > args.options.limit) {
|
|
83
|
-
this.users = this.users.slice(0, args.options.limit);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
const continueProcessing = resultMessages.length === 20 ||
|
|
87
|
-
resultUsers.length === 20 ||
|
|
88
|
-
resultGroups.length === 20 ||
|
|
89
|
-
resultTopics.length === 20;
|
|
90
|
-
if (continueProcessing) {
|
|
91
|
-
this
|
|
92
|
-
.getAllItems(logger, args, ++page)
|
|
93
|
-
.then(() => {
|
|
94
|
-
resolve();
|
|
95
|
-
}, (err) => {
|
|
96
|
-
reject(err);
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
else {
|
|
100
|
-
resolve();
|
|
101
|
-
}
|
|
102
|
-
}, (err) => {
|
|
103
|
-
reject(err);
|
|
104
|
-
});
|
|
105
|
-
});
|
|
54
|
+
}
|
|
55
|
+
const resultMessages = results.messages.messages;
|
|
56
|
+
const resultTopics = results.topics;
|
|
57
|
+
const resultGroups = results.groups;
|
|
58
|
+
const resultUsers = results.users;
|
|
59
|
+
if (resultMessages.length > 0) {
|
|
60
|
+
this.messages = this.messages.concat(resultMessages);
|
|
61
|
+
if (args.options.limit && this.messages.length > args.options.limit) {
|
|
62
|
+
this.messages = this.messages.slice(0, args.options.limit);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
if (resultTopics.length > 0) {
|
|
66
|
+
this.topics = this.topics.concat(resultTopics);
|
|
67
|
+
if (args.options.limit && this.topics.length > args.options.limit) {
|
|
68
|
+
this.topics = this.topics.slice(0, args.options.limit);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
if (resultGroups.length > 0) {
|
|
72
|
+
this.groups = this.groups.concat(resultGroups);
|
|
73
|
+
if (args.options.limit && this.groups.length > args.options.limit) {
|
|
74
|
+
this.groups = this.groups.slice(0, args.options.limit);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
if (resultUsers.length > 0) {
|
|
78
|
+
this.users = this.users.concat(resultUsers);
|
|
79
|
+
if (args.options.limit && this.users.length > args.options.limit) {
|
|
80
|
+
this.users = this.users.slice(0, args.options.limit);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
const continueProcessing = resultMessages.length === 20 ||
|
|
84
|
+
resultUsers.length === 20 ||
|
|
85
|
+
resultGroups.length === 20 ||
|
|
86
|
+
resultTopics.length === 20;
|
|
87
|
+
if (continueProcessing) {
|
|
88
|
+
await this.getAllItems(logger, args, ++page);
|
|
89
|
+
}
|
|
106
90
|
}
|
|
107
91
|
async commandAction(logger, args) {
|
|
108
92
|
this.summary = {
|
package/dist/utils/spo.js
CHANGED
|
@@ -93,47 +93,6 @@ export const spo = {
|
|
|
93
93
|
}
|
|
94
94
|
});
|
|
95
95
|
},
|
|
96
|
-
waitUntilCopyJobFinished({ copyJobInfo, siteUrl, pollingInterval, resolve, reject, logger, debug, verbose }) {
|
|
97
|
-
const requestUrl = `${siteUrl}/_api/site/GetCopyJobProgress`;
|
|
98
|
-
const requestOptions = {
|
|
99
|
-
url: requestUrl,
|
|
100
|
-
headers: {
|
|
101
|
-
'accept': 'application/json;odata=nometadata'
|
|
102
|
-
},
|
|
103
|
-
data: { "copyJobInfo": copyJobInfo },
|
|
104
|
-
responseType: 'json'
|
|
105
|
-
};
|
|
106
|
-
request
|
|
107
|
-
.post(requestOptions)
|
|
108
|
-
.then(async (resp) => {
|
|
109
|
-
if (debug) {
|
|
110
|
-
await logger.logToStderr('getCopyJobProgress response...');
|
|
111
|
-
await logger.logToStderr(resp);
|
|
112
|
-
}
|
|
113
|
-
for (const item of resp.Logs) {
|
|
114
|
-
const log = JSON.parse(item);
|
|
115
|
-
// reject if progress error
|
|
116
|
-
if (log.Event === "JobError" || log.Event === "JobFatalError") {
|
|
117
|
-
return reject(log.Message);
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
// two possible scenarios
|
|
121
|
-
// job done = success promise returned
|
|
122
|
-
// job in progress = recursive call using setTimeout returned
|
|
123
|
-
if (resp.JobState === 0) {
|
|
124
|
-
// job done
|
|
125
|
-
if (verbose) {
|
|
126
|
-
process.stdout.write('\n');
|
|
127
|
-
}
|
|
128
|
-
resolve();
|
|
129
|
-
}
|
|
130
|
-
else {
|
|
131
|
-
setTimeout(() => {
|
|
132
|
-
spo.waitUntilCopyJobFinished({ copyJobInfo, siteUrl, pollingInterval, resolve, reject, logger, debug, verbose });
|
|
133
|
-
}, pollingInterval);
|
|
134
|
-
}
|
|
135
|
-
});
|
|
136
|
-
},
|
|
137
96
|
async getSpoUrl(logger, debug) {
|
|
138
97
|
if (auth.service.spoUrl) {
|
|
139
98
|
if (debug) {
|
|
@@ -619,12 +578,12 @@ export const spo = {
|
|
|
619
578
|
return request.post(requestOptions);
|
|
620
579
|
},
|
|
621
580
|
/**
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
581
|
+
* Retrieves the spo group by name.
|
|
582
|
+
* @param webUrl Web url
|
|
583
|
+
* @param name The name of the group
|
|
584
|
+
* @param logger the Logger object
|
|
585
|
+
* @param debug set if debug logging should be logged
|
|
586
|
+
*/
|
|
628
587
|
async getGroupByName(webUrl, name, logger, debug) {
|
|
629
588
|
if (debug) {
|
|
630
589
|
await logger.logToStderr(`Retrieving the group by name ${name}`);
|
|
@@ -641,12 +600,12 @@ export const spo = {
|
|
|
641
600
|
return groupInstance;
|
|
642
601
|
},
|
|
643
602
|
/**
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
603
|
+
* Retrieves the role definition by name.
|
|
604
|
+
* @param webUrl Web url
|
|
605
|
+
* @param name the name of the role definition
|
|
606
|
+
* @param logger the Logger object
|
|
607
|
+
* @param debug set if debug logging should be logged
|
|
608
|
+
*/
|
|
650
609
|
async getRoleDefinitionByName(webUrl, name, logger, debug) {
|
|
651
610
|
if (debug) {
|
|
652
611
|
await logger.logToStderr(`Retrieving the role definitions for ${name}`);
|
package/dist/utils/validation.js
CHANGED
|
@@ -244,9 +244,6 @@ export const validation = {
|
|
|
244
244
|
];
|
|
245
245
|
return !!input && !input.split('.').every(value => !~javascriptReservedWords.indexOf(value));
|
|
246
246
|
},
|
|
247
|
-
isValidFileName(input) {
|
|
248
|
-
return !!input && !/^((\..*)|COM\d|CLOCK\$|LPT\d|AUX|NUL|CON|PRN|(.*[\u{d800}-\u{dfff}]+.*))$/iu.test(input) && !/^(.*\.\..*)$/i.test(input);
|
|
249
|
-
},
|
|
250
247
|
isValidTheme(input) {
|
|
251
248
|
const validThemeProperties = [
|
|
252
249
|
"themePrimary",
|
|
@@ -2,14 +2,14 @@ import Global from '/docs/cmd/_global.mdx';
|
|
|
2
2
|
import Tabs from '@theme/Tabs';
|
|
3
3
|
import TabItem from '@theme/TabItem';
|
|
4
4
|
|
|
5
|
-
# aad
|
|
5
|
+
# aad m365group add
|
|
6
6
|
|
|
7
7
|
Creates a Microsoft 365 Group
|
|
8
8
|
|
|
9
9
|
## Usage
|
|
10
10
|
|
|
11
11
|
```sh
|
|
12
|
-
m365 aad
|
|
12
|
+
m365 aad m365group add [options]
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Options
|
|
@@ -61,55 +61,55 @@ If an invalid user is provided in the comma-separated list of Owners or Members,
|
|
|
61
61
|
Create a public Microsoft 365 Group
|
|
62
62
|
|
|
63
63
|
```sh
|
|
64
|
-
m365 aad
|
|
64
|
+
m365 aad m365group add --displayName Finance --description "This is the Contoso Finance Group. Please come here and check out the latest news, posts, files, and more." --mailNickname finance
|
|
65
65
|
```
|
|
66
66
|
|
|
67
67
|
Create a private Microsoft 365 Group
|
|
68
68
|
|
|
69
69
|
```sh
|
|
70
|
-
m365 aad
|
|
70
|
+
m365 aad m365group add --displayName Finance --description "This is the Contoso Finance Group. Please come here and check out the latest news, posts, files, and more." --mailNickname finance --isPrivate
|
|
71
71
|
```
|
|
72
72
|
|
|
73
73
|
Create a public Microsoft 365 Group and set specified users as its owners
|
|
74
74
|
|
|
75
75
|
```sh
|
|
76
|
-
m365 aad
|
|
76
|
+
m365 aad m365group add --displayName Finance --description "This is the Contoso Finance Group. Please come here and check out the latest news, posts, files, and more." --mailNickname finance --owners "DebraB@contoso.onmicrosoft.com,DiegoS@contoso.onmicrosoft.com"
|
|
77
77
|
```
|
|
78
78
|
|
|
79
79
|
Create a public Microsoft 365 Group and set specified users as its members
|
|
80
80
|
|
|
81
81
|
```sh
|
|
82
|
-
m365 aad
|
|
82
|
+
m365 aad m365group add --displayName Finance --description "This is the Contoso Finance Group. Please come here and check out the latest news, posts, files, and more." --mailNickname finance --members "DebraB@contoso.onmicrosoft.com,DiegoS@contoso.onmicrosoft.com"
|
|
83
83
|
```
|
|
84
84
|
|
|
85
85
|
Create a public Microsoft 365 Group and allow only group members to be able to post conversations to the group.
|
|
86
86
|
|
|
87
87
|
```sh
|
|
88
|
-
m365 aad
|
|
88
|
+
m365 aad m365group add --displayName Finance --description "This is the Contoso Finance Group. Please come here and check out the latest news, posts, files, and more." --mailNickname finance --allowMembersToPost
|
|
89
89
|
```
|
|
90
90
|
|
|
91
91
|
Create a public Microsoft 365 Group and hide it from the Outlook experiences (web and client).
|
|
92
92
|
|
|
93
93
|
```sh
|
|
94
|
-
m365 aad
|
|
94
|
+
m365 aad m365group add --displayName Finance --description "This is the Contoso Finance Group. Please come here and check out the latest news, posts, files, and more." --mailNickname finance --hideGroupInOutlook
|
|
95
95
|
```
|
|
96
96
|
|
|
97
97
|
Create a public Microsoft 365 Group and subscribe all new group members to receive group conversation emails when new messages are posted in the group.
|
|
98
98
|
|
|
99
99
|
```sh
|
|
100
|
-
m365 aad
|
|
100
|
+
m365 aad m365group add --displayName Finance --description "This is the Contoso Finance Group. Please come here and check out the latest news, posts, files, and more." --mailNickname finance --subscribeNewGroupMembers
|
|
101
101
|
```
|
|
102
102
|
|
|
103
103
|
Create a public Microsoft 365 Group and set to not send welcome emails to new group members.
|
|
104
104
|
|
|
105
105
|
```sh
|
|
106
|
-
m365 aad
|
|
106
|
+
m365 aad m365group add --displayName Finance --description "This is the Contoso Finance Group. Please come here and check out the latest news, posts, files, and more." --mailNickname finance --welcomeEmailDisabled
|
|
107
107
|
```
|
|
108
108
|
|
|
109
109
|
Create a public Microsoft 365 Group and set its logo
|
|
110
110
|
|
|
111
111
|
```sh
|
|
112
|
-
m365 aad
|
|
112
|
+
m365 aad m365group add --displayName Finance --description "This is the Contoso Finance Group. Please come here and check out the latest news, posts, files, and more." --mailNickname finance --logoPath images/logo.png
|
|
113
113
|
```
|
|
114
114
|
|
|
115
115
|
## Response
|
|
@@ -208,7 +208,7 @@ m365 aad o365group add --displayName Finance --description "This is the Contoso
|
|
|
208
208
|
<TabItem value="Markdown">
|
|
209
209
|
|
|
210
210
|
```md
|
|
211
|
-
# aad
|
|
211
|
+
# aad m365group add --displayName "Finance" --description "This is the Contoso Finance Group. Please come here and check out the latest news, posts, files, and more." --mailNickname "finance"
|
|
212
212
|
|
|
213
213
|
Date: 2023-06-01
|
|
214
214
|
|
|
@@ -230,4 +230,4 @@ m365 aad o365group add --displayName Finance --description "This is the Contoso
|
|
|
230
230
|
```
|
|
231
231
|
|
|
232
232
|
</TabItem>
|
|
233
|
-
</Tabs>
|
|
233
|
+
</Tabs>
|
|
@@ -2,14 +2,14 @@ import Global from '/docs/cmd/_global.mdx';
|
|
|
2
2
|
import Tabs from '@theme/Tabs';
|
|
3
3
|
import TabItem from '@theme/TabItem';
|
|
4
4
|
|
|
5
|
-
# aad
|
|
5
|
+
# aad m365group conversation list
|
|
6
6
|
|
|
7
7
|
Lists conversations for the specified Microsoft 365 group
|
|
8
8
|
|
|
9
9
|
## Usage
|
|
10
10
|
|
|
11
11
|
```sh
|
|
12
|
-
m365 aad
|
|
12
|
+
m365 aad m365group conversation list [options]
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Options
|
|
@@ -26,7 +26,7 @@ m365 aad o365group conversation list [options]
|
|
|
26
26
|
Lists conversations for the specified Microsoft 365 group
|
|
27
27
|
|
|
28
28
|
```sh
|
|
29
|
-
m365 aad
|
|
29
|
+
m365 aad m365group conversation list --groupId '00000000-0000-0000-0000-000000000000'
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
## Response
|
|
@@ -77,7 +77,7 @@ m365 aad o365group conversation list --groupId '00000000-0000-0000-0000-00000000
|
|
|
77
77
|
<TabItem value="Markdown">
|
|
78
78
|
|
|
79
79
|
```md
|
|
80
|
-
# aad
|
|
80
|
+
# aad m365group conversation list --groupId "1cdce329-46a9-4fd3-8826-fe6587d25a8c"
|
|
81
81
|
|
|
82
82
|
Date: 2023-06-01
|
|
83
83
|
|
|
@@ -2,24 +2,24 @@ import Global from '/docs/cmd/_global.mdx';
|
|
|
2
2
|
import Tabs from '@theme/Tabs';
|
|
3
3
|
import TabItem from '@theme/TabItem';
|
|
4
4
|
|
|
5
|
-
# aad
|
|
5
|
+
# aad m365group conversation post list
|
|
6
6
|
|
|
7
7
|
Lists conversation posts of a Microsoft 365 group
|
|
8
8
|
|
|
9
9
|
## Usage
|
|
10
10
|
|
|
11
11
|
```sh
|
|
12
|
-
m365 aad
|
|
12
|
+
m365 aad m365group conversation post list [options]
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Options
|
|
16
16
|
|
|
17
17
|
```md definition-list
|
|
18
18
|
`-i, --groupId [groupId]`
|
|
19
|
-
: The Id of the
|
|
19
|
+
: The Id of the Microsoft 365 Group. You can specify the groupId or groupDisplayName, but not both.
|
|
20
20
|
|
|
21
21
|
`-d, --groupDisplayName [groupDisplayName]`
|
|
22
|
-
: The Displayname of the
|
|
22
|
+
: The Displayname of the Microsoft 365 Group. You can specify the groupId or groupDisplayName, but not both.
|
|
23
23
|
|
|
24
24
|
`-t, --threadId <threadId>`
|
|
25
25
|
: The ID of the thread to retrieve details for
|
|
@@ -32,13 +32,13 @@ m365 aad o365group conversation post list [options]
|
|
|
32
32
|
Lists the posts of the specific conversation of Microsoft 365 group by groupId
|
|
33
33
|
|
|
34
34
|
```sh
|
|
35
|
-
m365 aad
|
|
35
|
+
m365 aad m365group conversation post list --groupId '00000000-0000-0000-0000-000000000000' --threadId 'AAQkADkwN2Q2NDg1LWQ3ZGYtNDViZi1iNGRiLTVhYjJmN2Q5NDkxZQAQAOnRAfDf71lIvrdK85FAn5E='
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
Lists the posts of the specific conversation of Microsoft 365 group by groupDisplayName
|
|
39
39
|
|
|
40
40
|
```sh
|
|
41
|
-
m365 aad
|
|
41
|
+
m365 aad m365group conversation post list --groupDisplayName 'MyGroup' --threadId 'AAQkADkwN2Q2NDg1LWQ3ZGYtNDViZi1iNGRiLTVhYjJmN2Q5NDkxZQAQAOnRAfDf71lIvrdK85FAn5E='
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
## Response
|
|
@@ -97,7 +97,7 @@ m365 aad o365group conversation post list --groupDisplayName 'MyGroup' --threadI
|
|
|
97
97
|
<TabItem value="Markdown">
|
|
98
98
|
|
|
99
99
|
```md
|
|
100
|
-
# aad
|
|
100
|
+
# aad m365group conversation post list --groupId "1cdce329-46a9-4fd3-8826-fe6587d25a8c" --threadId "AAQkADEzYjY5N2FmLTVmZDYtNDgyYi1iZjBlLTgyNDU5ZTYyNGFkZQAQAGhnITi5DTNEgxisPwMQu74="
|
|
101
101
|
|
|
102
102
|
Date: 2023-06-02
|
|
103
103
|
|
|
@@ -114,4 +114,4 @@ m365 aad o365group conversation post list --groupDisplayName 'MyGroup' --threadI
|
|
|
114
114
|
```
|
|
115
115
|
|
|
116
116
|
</TabItem>
|
|
117
|
-
</Tabs>
|
|
117
|
+
</Tabs>
|
|
@@ -2,14 +2,14 @@ import Global from '/docs/cmd/_global.mdx';
|
|
|
2
2
|
import Tabs from '@theme/Tabs';
|
|
3
3
|
import TabItem from '@theme/TabItem';
|
|
4
4
|
|
|
5
|
-
# aad
|
|
5
|
+
# aad m365group get
|
|
6
6
|
|
|
7
7
|
Gets information about the specified Microsoft 365 Group or Microsoft Teams team
|
|
8
8
|
|
|
9
9
|
## Usage
|
|
10
10
|
|
|
11
11
|
```sh
|
|
12
|
-
m365 aad
|
|
12
|
+
m365 aad m365group get [options]
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Options
|
|
@@ -29,13 +29,13 @@ m365 aad o365group get [options]
|
|
|
29
29
|
Get information about the Microsoft 365 Group with id _1caf7dcd-7e83-4c3a-94f7-932a1299c844_
|
|
30
30
|
|
|
31
31
|
```sh
|
|
32
|
-
m365 aad
|
|
32
|
+
m365 aad m365group get --id 1caf7dcd-7e83-4c3a-94f7-932a1299c844
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
Get information about the Microsoft 365 Group with id _1caf7dcd-7e83-4c3a-94f7-932a1299c844_ and also retrieve the URL of the corresponding SharePoint site
|
|
36
36
|
|
|
37
37
|
```sh
|
|
38
|
-
m365 aad
|
|
38
|
+
m365 aad m365group get --id 1caf7dcd-7e83-4c3a-94f7-932a1299c844 --includeSiteUrl
|
|
39
39
|
```
|
|
40
40
|
|
|
41
41
|
## Response
|
|
@@ -134,7 +134,7 @@ m365 aad o365group get --id 1caf7dcd-7e83-4c3a-94f7-932a1299c844 --includeSiteUr
|
|
|
134
134
|
<TabItem value="Markdown">
|
|
135
135
|
|
|
136
136
|
```md
|
|
137
|
-
# aad
|
|
137
|
+
# aad m365group get --id "ff99b38f-0a4b-4fbb-a034-b86988061e6d"
|
|
138
138
|
|
|
139
139
|
Date: 2023-06-01
|
|
140
140
|
|
|
@@ -156,4 +156,4 @@ m365 aad o365group get --id 1caf7dcd-7e83-4c3a-94f7-932a1299c844 --includeSiteUr
|
|
|
156
156
|
```
|
|
157
157
|
|
|
158
158
|
</TabItem>
|
|
159
|
-
</Tabs>
|
|
159
|
+
</Tabs>
|
|
@@ -2,14 +2,14 @@ import Global from '/docs/cmd/_global.mdx';
|
|
|
2
2
|
import Tabs from '@theme/Tabs';
|
|
3
3
|
import TabItem from '@theme/TabItem';
|
|
4
4
|
|
|
5
|
-
# aad
|
|
5
|
+
# aad m365group list
|
|
6
6
|
|
|
7
7
|
Lists Microsoft 365 Groups in the current tenant
|
|
8
8
|
|
|
9
9
|
## Usage
|
|
10
10
|
|
|
11
11
|
```sh
|
|
12
|
-
m365 aad
|
|
12
|
+
m365 aad m365group list [options]
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Options
|
|
@@ -24,9 +24,6 @@ m365 aad o365group list [options]
|
|
|
24
24
|
`--includeSiteUrl`
|
|
25
25
|
: Set to retrieve the site URL for each group
|
|
26
26
|
|
|
27
|
-
`--deleted`
|
|
28
|
-
: Set to only retrieve deleted groups
|
|
29
|
-
|
|
30
27
|
`--orphaned`
|
|
31
28
|
: Set to only retrieve groups without owners
|
|
32
29
|
```
|
|
@@ -37,8 +34,6 @@ m365 aad o365group list [options]
|
|
|
37
34
|
|
|
38
35
|
Using the `--includeSiteUrl` option, you can retrieve the URL of the site associated with the particular Microsoft 365 Group. If you however retrieve too many groups and will try to get their site URLs, you will most likely get an error as the command will get throttled, issuing too many requests, too frequently. If you get an error, consider narrowing down the result set using the `--displayName` and `--mailNickname` filters.
|
|
39
36
|
|
|
40
|
-
Retrieving the URL of the site associated with the particular Microsoft 365 Group is not possible when retrieving deleted groups.
|
|
41
|
-
|
|
42
37
|
Using the `--orphaned` option, you can retrieve Microsoft 365 Groups without owners.
|
|
43
38
|
|
|
44
39
|
## Examples
|
|
@@ -46,44 +41,32 @@ Using the `--orphaned` option, you can retrieve Microsoft 365 Groups without own
|
|
|
46
41
|
List all Microsoft 365 Groups in the tenant
|
|
47
42
|
|
|
48
43
|
```sh
|
|
49
|
-
m365 aad
|
|
44
|
+
m365 aad m365group list
|
|
50
45
|
```
|
|
51
46
|
|
|
52
47
|
List Microsoft 365 Groups with display name starting with _Project_
|
|
53
48
|
|
|
54
49
|
```sh
|
|
55
|
-
m365 aad
|
|
50
|
+
m365 aad m365group list --displayName Project
|
|
56
51
|
```
|
|
57
52
|
|
|
58
53
|
List Microsoft 365 Groups mail nick name starting with _team_
|
|
59
54
|
|
|
60
55
|
```sh
|
|
61
|
-
m365 aad
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
List deleted Microsoft 365 Groups with display name starting with _Project_
|
|
65
|
-
|
|
66
|
-
```sh
|
|
67
|
-
m365 aad o365group list --displayName Project --deleted
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
List deleted Microsoft 365 Groups mail nick name starting with _team_
|
|
71
|
-
|
|
72
|
-
```sh
|
|
73
|
-
m365 aad o365group list --mailNickname team --deleted
|
|
56
|
+
m365 aad m365group list --mailNickname team
|
|
74
57
|
```
|
|
75
58
|
|
|
76
59
|
List Microsoft 365 Groups with display name starting with _Project_ including
|
|
77
60
|
the URL of the corresponding SharePoint site
|
|
78
61
|
|
|
79
62
|
```sh
|
|
80
|
-
m365 aad
|
|
63
|
+
m365 aad m365group list --displayName Project --includeSiteUrl
|
|
81
64
|
```
|
|
82
65
|
|
|
83
66
|
List Microsoft 365 Groups without owners
|
|
84
67
|
|
|
85
68
|
```sh
|
|
86
|
-
m365 aad
|
|
69
|
+
m365 aad m365group list --orphaned
|
|
87
70
|
```
|
|
88
71
|
|
|
89
72
|
## Response
|
|
@@ -142,9 +125,9 @@ m365 aad o365group list --orphaned
|
|
|
142
125
|
<TabItem value="Text">
|
|
143
126
|
|
|
144
127
|
```text
|
|
145
|
-
id displayName
|
|
146
|
-
------------------------------------
|
|
147
|
-
0bc3d172-dfab-463f-b79a-ed8ec5d3d455 Leadership
|
|
128
|
+
id displayName mailNickname
|
|
129
|
+
------------------------------------ ----------- ------------
|
|
130
|
+
0bc3d172-dfab-463f-b79a-ed8ec5d3d455 Leadership leadership
|
|
148
131
|
```
|
|
149
132
|
|
|
150
133
|
</TabItem>
|
|
@@ -159,7 +142,7 @@ m365 aad o365group list --orphaned
|
|
|
159
142
|
<TabItem value="Markdown">
|
|
160
143
|
|
|
161
144
|
```md
|
|
162
|
-
# aad
|
|
145
|
+
# aad m365group list
|
|
163
146
|
|
|
164
147
|
Date: 2023-06-01
|
|
165
148
|
|
|
@@ -181,4 +164,4 @@ m365 aad o365group list --orphaned
|
|
|
181
164
|
```
|
|
182
165
|
|
|
183
166
|
</TabItem>
|
|
184
|
-
</Tabs>
|
|
167
|
+
</Tabs>
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import Global from '/docs/cmd/_global.mdx';
|
|
2
2
|
|
|
3
|
-
# aad
|
|
3
|
+
# aad m365group recyclebinitem clear
|
|
4
4
|
|
|
5
5
|
Clears Microsoft 365 Groups from the recycle bin in the current tenant
|
|
6
6
|
|
|
7
7
|
## Usage
|
|
8
8
|
|
|
9
9
|
```sh
|
|
10
|
-
m365 aad
|
|
10
|
+
m365 aad m365group recyclebinitem clear [options]
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
## Options
|
|
@@ -24,15 +24,15 @@ m365 aad o365group recyclebinitem clear [options]
|
|
|
24
24
|
Removes all deleted Microsoft 365 Groups in the tenant. Will prompt for confirmation before permanently removing groups.
|
|
25
25
|
|
|
26
26
|
```sh
|
|
27
|
-
m365 aad
|
|
27
|
+
m365 aad m365group recyclebinitem clear
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
Removes all deleted Microsoft 365 Groups in the tenant. Will NOT prompt for confirmation before permanently removing groups.
|
|
31
31
|
|
|
32
32
|
```sh
|
|
33
|
-
m365 aad
|
|
33
|
+
m365 aad m365group recyclebinitem clear --force
|
|
34
34
|
```
|
|
35
35
|
|
|
36
36
|
## Response
|
|
37
37
|
|
|
38
|
-
The command won't return a response on success.
|
|
38
|
+
The command won't return a response on success.
|