@pnp/cli-microsoft365 5.2.0-beta.a4da212 → 5.2.0-beta.bc072bc
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.js +0 -1
- package/dist/m365/aad/commands/user/user-signin-list.js +81 -0
- package/dist/m365/aad/commands.js +2 -1
- package/dist/m365/planner/commands/bucket/bucket-set.js +208 -0
- package/dist/m365/planner/commands.js +1 -0
- package/dist/m365/pp/commands/environment/environment-list.js +57 -0
- package/dist/m365/pp/commands/managementapp/managementapp-list.js +24 -0
- package/dist/m365/pp/commands.js +3 -1
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002019_DEVDEP_spfx_fast_serve_helpers.js +14 -0
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.12.0.js +2 -0
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.13.0.js +2 -0
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.14.0.js +2 -0
- package/dist/m365/spfx/commands/project/project-upgrade/{upgrade-1.15.0-beta.1.js → upgrade-1.15.0-beta.6.js} +27 -27
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.4.1.js +2 -0
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.9.1.js +2 -0
- package/dist/m365/spfx/commands/project/project-upgrade.js +1 -1
- package/dist/m365/spfx/commands/spfx-doctor.js +1 -105
- package/dist/m365/teams/commands/app/app-install.js +1 -1
- package/dist/m365/teams/commands/channel/channel-add.js +44 -14
- package/dist/m365/teams/commands/channel/channel-list.js +11 -1
- package/dist/m365/teams/commands/{conversationmember/conversationmember-add.js → channel/channel-member-add.js} +15 -22
- package/dist/m365/teams/commands/channel/{channel-membership-list.js → channel-member-list.js} +14 -7
- package/dist/m365/teams/commands/channel/channel-member-remove.js +214 -0
- package/dist/m365/teams/commands/channel/channel-member-set.js +206 -0
- package/dist/m365/teams/commands.js +5 -1
- package/docs/docs/cmd/aad/approleassignment/approleassignment-list.md +1 -1
- package/docs/docs/cmd/aad/group/group-list.md +1 -1
- package/docs/docs/cmd/aad/groupsetting/groupsetting-add.md +1 -1
- package/docs/docs/cmd/aad/groupsetting/groupsetting-get.md +1 -1
- package/docs/docs/cmd/aad/groupsetting/groupsetting-list.md +1 -1
- package/docs/docs/cmd/aad/groupsetting/groupsetting-remove.md +1 -1
- package/docs/docs/cmd/aad/groupsetting/groupsetting-set.md +1 -1
- package/docs/docs/cmd/aad/groupsettingtemplate/groupsettingtemplate-get.md +1 -1
- package/docs/docs/cmd/aad/groupsettingtemplate/groupsettingtemplate-list.md +1 -1
- package/docs/docs/cmd/aad/o365group/o365group-recyclebinitem-clear.md +1 -1
- package/docs/docs/cmd/aad/o365group/o365group-remove.md +1 -1
- package/docs/docs/cmd/aad/o365group/o365group-renew.md +1 -1
- package/docs/docs/cmd/aad/o365group/o365group-report-activitycounts.md +1 -1
- package/docs/docs/cmd/aad/o365group/o365group-report-activityfilecounts.md +1 -1
- package/docs/docs/cmd/aad/o365group/o365group-report-activitygroupcounts.md +1 -1
- package/docs/docs/cmd/aad/o365group/o365group-teamify.md +1 -1
- package/docs/docs/cmd/aad/o365group/o365group-user-add.md +1 -1
- package/docs/docs/cmd/aad/o365group/o365group-user-remove.md +1 -1
- package/docs/docs/cmd/aad/oauth2grant/oauth2grant-add.md +1 -1
- package/docs/docs/cmd/aad/oauth2grant/oauth2grant-list.md +1 -1
- package/docs/docs/cmd/aad/oauth2grant/oauth2grant-remove.md +1 -1
- package/docs/docs/cmd/aad/oauth2grant/oauth2grant-set.md +1 -1
- package/docs/docs/cmd/aad/siteclassification/siteclassification-disable.md +1 -1
- package/docs/docs/cmd/aad/siteclassification/siteclassification-enable.md +1 -1
- package/docs/docs/cmd/aad/siteclassification/siteclassification-get.md +1 -1
- package/docs/docs/cmd/aad/siteclassification/siteclassification-set.md +1 -1
- package/docs/docs/cmd/aad/sp/sp-get.md +1 -1
- package/docs/docs/cmd/aad/user/user-password-validate.md +1 -1
- package/docs/docs/cmd/aad/user/user-signin-list.md +81 -0
- package/docs/docs/cmd/cli/cli-doctor.md +1 -1
- package/docs/docs/cmd/flow/environment/environment-get.md +1 -1
- package/docs/docs/cmd/flow/environment/environment-list.md +1 -1
- package/docs/docs/cmd/flow/run/run-list.md +1 -1
- package/docs/docs/cmd/graph/schemaextension/schemaextension-add.md +1 -1
- package/docs/docs/cmd/logout.md +1 -1
- package/docs/docs/cmd/onedrive/onedrive-list.md +1 -1
- package/docs/docs/cmd/planner/bucket/bucket-list.md +1 -1
- package/docs/docs/cmd/planner/bucket/bucket-set.md +57 -0
- package/docs/docs/cmd/planner/task/task-list.md +1 -1
- package/docs/docs/cmd/planner/task/task-set.md +2 -2
- package/docs/docs/cmd/pp/environment/environment-list.md +37 -0
- package/docs/docs/cmd/pp/managementapp/managementapp-list.md +21 -0
- package/docs/docs/cmd/spfx/project/project-upgrade.md +1 -1
- package/docs/docs/cmd/spfx/spfx-doctor.md +1 -1
- package/docs/docs/cmd/spo/app/app-add.md +1 -1
- package/docs/docs/cmd/spo/app/app-deploy.md +1 -1
- package/docs/docs/cmd/spo/app/app-get.md +1 -1
- package/docs/docs/cmd/spo/app/app-install.md +1 -1
- package/docs/docs/cmd/spo/app/app-instance-list.md +1 -1
- package/docs/docs/cmd/spo/app/app-list.md +1 -1
- package/docs/docs/cmd/spo/app/app-remove.md +1 -1
- package/docs/docs/cmd/spo/app/app-retract.md +1 -1
- package/docs/docs/cmd/spo/app/app-uninstall.md +1 -1
- package/docs/docs/cmd/spo/app/app-upgrade.md +1 -1
- package/docs/docs/cmd/spo/apppage/apppage-add.md +1 -1
- package/docs/docs/cmd/spo/cdn/cdn-get.md +1 -1
- package/docs/docs/cmd/spo/cdn/cdn-origin-add.md +1 -1
- package/docs/docs/cmd/spo/cdn/cdn-origin-list.md +1 -1
- package/docs/docs/cmd/spo/cdn/cdn-policy-set.md +1 -1
- package/docs/docs/cmd/spo/contenttype/contenttype-add.md +1 -1
- package/docs/docs/cmd/spo/contenttype/contenttype-field-remove.md +1 -1
- package/docs/docs/cmd/spo/contenttype/contenttype-field-set.md +1 -1
- package/docs/docs/cmd/spo/contenttype/contenttype-remove.md +1 -1
- package/docs/docs/cmd/spo/customaction/customaction-add.md +1 -1
- package/docs/docs/cmd/spo/customaction/customaction-clear.md +1 -1
- package/docs/docs/cmd/spo/customaction/customaction-get.md +1 -1
- package/docs/docs/cmd/spo/customaction/customaction-list.md +1 -1
- package/docs/docs/cmd/spo/customaction/customaction-remove.md +1 -1
- package/docs/docs/cmd/spo/customaction/customaction-set.md +1 -1
- package/docs/docs/cmd/spo/externaluser/externaluser-list.md +1 -1
- package/docs/docs/cmd/spo/feature/feature-list.md +1 -1
- package/docs/docs/cmd/spo/field/field-add.md +1 -1
- package/docs/docs/cmd/spo/field/field-get.md +1 -1
- package/docs/docs/cmd/spo/field/field-set.md +1 -1
- package/docs/docs/cmd/spo/file/file-add.md +1 -1
- package/docs/docs/cmd/spo/file/file-checkin.md +1 -1
- package/docs/docs/cmd/spo/file/file-checkout.md +1 -1
- package/docs/docs/cmd/spo/file/file-copy.md +1 -1
- package/docs/docs/cmd/spo/file/file-get.md +1 -1
- package/docs/docs/cmd/spo/file/file-move.md +1 -1
- package/docs/docs/cmd/spo/file/file-remove.md +1 -1
- package/docs/docs/cmd/spo/folder/folder-add.md +1 -1
- package/docs/docs/cmd/spo/folder/folder-copy.md +1 -1
- package/docs/docs/cmd/spo/folder/folder-get.md +1 -1
- package/docs/docs/cmd/spo/folder/folder-list.md +1 -1
- package/docs/docs/cmd/spo/folder/folder-move.md +1 -1
- package/docs/docs/cmd/spo/folder/folder-remove.md +1 -1
- package/docs/docs/cmd/spo/folder/folder-rename.md +1 -1
- package/docs/docs/cmd/spo/group/group-user-add.md +1 -1
- package/docs/docs/cmd/spo/hidedefaultthemes/hidedefaultthemes-get.md +1 -1
- package/docs/docs/cmd/spo/hidedefaultthemes/hidedefaultthemes-set.md +1 -1
- package/docs/docs/cmd/spo/homesite/homesite-get.md +1 -1
- package/docs/docs/cmd/spo/homesite/homesite-set.md +1 -1
- package/docs/docs/cmd/spo/hubsite/hubsite-connect.md +1 -1
- package/docs/docs/cmd/spo/hubsite/hubsite-data-get.md +1 -1
- package/docs/docs/cmd/spo/hubsite/hubsite-disconnect.md +1 -1
- package/docs/docs/cmd/spo/hubsite/hubsite-get.md +1 -1
- package/docs/docs/cmd/spo/hubsite/hubsite-list.md +1 -1
- package/docs/docs/cmd/spo/hubsite/hubsite-register.md +1 -1
- package/docs/docs/cmd/spo/hubsite/hubsite-set.md +1 -1
- package/docs/docs/cmd/spo/hubsite/hubsite-theme-sync.md +1 -1
- package/docs/docs/cmd/spo/hubsite/hubsite-unregister.md +1 -1
- package/docs/docs/cmd/spo/list/list-add.md +1 -1
- package/docs/docs/cmd/spo/list/list-contenttype-add.md +1 -1
- package/docs/docs/cmd/spo/list/list-contenttype-list.md +1 -1
- package/docs/docs/cmd/spo/list/list-contenttype-remove.md +1 -1
- package/docs/docs/cmd/spo/list/list-get.md +1 -1
- package/docs/docs/cmd/spo/list/list-label-get.md +1 -1
- package/docs/docs/cmd/spo/list/list-label-set.md +1 -1
- package/docs/docs/cmd/spo/list/list-list.md +1 -1
- package/docs/docs/cmd/spo/list/list-remove.md +1 -1
- package/docs/docs/cmd/spo/list/list-set.md +1 -1
- package/docs/docs/cmd/spo/list/list-sitescript-get.md +1 -1
- package/docs/docs/cmd/spo/list/list-view-field-add.md +1 -1
- package/docs/docs/cmd/spo/list/list-view-field-remove.md +1 -1
- package/docs/docs/cmd/spo/list/list-view-get.md +1 -1
- package/docs/docs/cmd/spo/list/list-view-remove.md +1 -1
- package/docs/docs/cmd/spo/list/list-view-set.md +1 -1
- package/docs/docs/cmd/spo/list/list-webhook-add.md +1 -1
- package/docs/docs/cmd/spo/list/list-webhook-get.md +1 -1
- package/docs/docs/cmd/spo/list/list-webhook-list.md +1 -1
- package/docs/docs/cmd/spo/list/list-webhook-remove.md +1 -1
- package/docs/docs/cmd/spo/list/list-webhook-set.md +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-add.md +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-list.md +2 -2
- package/docs/docs/cmd/spo/listitem/listitem-record-declare.md +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-record-undeclare.md +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-set.md +1 -1
- package/docs/docs/cmd/spo/navigation/navigation-node-add.md +1 -1
- package/docs/docs/cmd/spo/navigation/navigation-node-list.md +1 -1
- package/docs/docs/cmd/spo/navigation/navigation-node-remove.md +1 -1
- package/docs/docs/cmd/spo/orgnewssite/orgnewssite-list.md +1 -1
- package/docs/docs/cmd/spo/orgnewssite/orgnewssite-remove.md +1 -1
- package/docs/docs/cmd/spo/page/page-add.md +1 -1
- package/docs/docs/cmd/spo/page/page-clientsidewebpart-add.md +1 -1
- package/docs/docs/cmd/spo/page/page-column-get.md +1 -1
- package/docs/docs/cmd/spo/page/page-column-list.md +1 -1
- package/docs/docs/cmd/spo/page/page-control-get.md +1 -1
- package/docs/docs/cmd/spo/page/page-control-list.md +1 -1
- package/docs/docs/cmd/spo/page/page-list.md +1 -1
- package/docs/docs/cmd/spo/page/page-remove.md +1 -1
- package/docs/docs/cmd/spo/page/page-section-add.md +1 -1
- package/docs/docs/cmd/spo/page/page-section-get.md +1 -1
- package/docs/docs/cmd/spo/page/page-section-list.md +1 -1
- package/docs/docs/cmd/spo/page/page-set.md +1 -1
- package/docs/docs/cmd/spo/page/page-template-list.md +1 -1
- package/docs/docs/cmd/spo/page/page-text-add.md +1 -1
- package/docs/docs/cmd/spo/propertybag/propertybag-get.md +1 -1
- package/docs/docs/cmd/spo/propertybag/propertybag-list.md +1 -1
- package/docs/docs/cmd/spo/propertybag/propertybag-remove.md +1 -1
- package/docs/docs/cmd/spo/propertybag/propertybag-set.md +1 -1
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-add.md +1 -1
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-list.md +1 -1
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-revoke.md +1 -1
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-approve.md +1 -1
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-deny.md +1 -1
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-list.md +1 -1
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-set.md +1 -1
- package/docs/docs/cmd/spo/site/site-add.md +1 -1
- package/docs/docs/cmd/spo/site/site-appcatalog-add.md +1 -1
- package/docs/docs/cmd/spo/site/site-appcatalog-remove.md +1 -1
- package/docs/docs/cmd/spo/site/site-classic-add.md +1 -1
- package/docs/docs/cmd/spo/site/site-commsite-enable.md +1 -1
- package/docs/docs/cmd/spo/site/site-inplacerecordsmanagement-set.md +1 -1
- package/docs/docs/cmd/spo/site/site-set.md +1 -1
- package/docs/docs/cmd/spo/sitedesign/sitedesign-apply.md +1 -1
- package/docs/docs/cmd/spo/sitedesign/sitedesign-get.md +1 -1
- package/docs/docs/cmd/spo/sitedesign/sitedesign-list.md +1 -1
- package/docs/docs/cmd/spo/sitedesign/sitedesign-remove.md +1 -1
- package/docs/docs/cmd/spo/sitedesign/sitedesign-rights-list.md +1 -1
- package/docs/docs/cmd/spo/sitedesign/sitedesign-run-list.md +1 -1
- package/docs/docs/cmd/spo/sitedesign/sitedesign-run-status-get.md +1 -1
- package/docs/docs/cmd/spo/sitedesign/sitedesign-task-get.md +1 -1
- package/docs/docs/cmd/spo/sitedesign/sitedesign-task-list.md +1 -1
- package/docs/docs/cmd/spo/sitedesign/sitedesign-task-remove.md +1 -1
- package/docs/docs/cmd/spo/sitescript/sitescript-add.md +1 -1
- package/docs/docs/cmd/spo/sitescript/sitescript-get.md +1 -1
- package/docs/docs/cmd/spo/sitescript/sitescript-list.md +1 -1
- package/docs/docs/cmd/spo/sitescript/sitescript-remove.md +1 -1
- package/docs/docs/cmd/spo/sitescript/sitescript-set.md +1 -1
- package/docs/docs/cmd/spo/spo-get.md +1 -1
- package/docs/docs/cmd/spo/storageentity/storageentity-list.md +1 -1
- package/docs/docs/cmd/spo/storageentity/storageentity-remove.md +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-appcatalogurl-get.md +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-settings-list.md +1 -1
- package/docs/docs/cmd/spo/term/term-add.md +1 -1
- package/docs/docs/cmd/spo/term/term-get.md +1 -1
- package/docs/docs/cmd/spo/term/term-group-add.md +1 -1
- package/docs/docs/cmd/spo/term/term-group-get.md +1 -1
- package/docs/docs/cmd/spo/term/term-group-list.md +1 -1
- package/docs/docs/cmd/spo/term/term-list.md +1 -1
- package/docs/docs/cmd/spo/term/term-set-add.md +1 -1
- package/docs/docs/cmd/spo/term/term-set-get.md +1 -1
- package/docs/docs/cmd/spo/term/term-set-list.md +1 -1
- package/docs/docs/cmd/spo/theme/theme-apply.md +1 -1
- package/docs/docs/cmd/spo/theme/theme-get.md +1 -1
- package/docs/docs/cmd/spo/theme/theme-list.md +1 -1
- package/docs/docs/cmd/spo/theme/theme-remove.md +1 -1
- package/docs/docs/cmd/spo/user/user-remove.md +1 -1
- package/docs/docs/cmd/spo/web/web-add.md +1 -1
- package/docs/docs/cmd/spo/web/web-clientsidewebpart-list.md +1 -1
- package/docs/docs/cmd/spo/web/web-get.md +1 -1
- package/docs/docs/cmd/spo/web/web-list.md +1 -1
- package/docs/docs/cmd/spo/web/web-reindex.md +1 -1
- package/docs/docs/cmd/spo/web/web-remove.md +1 -1
- package/docs/docs/cmd/teams/app/app-publish.md +1 -1
- package/docs/docs/cmd/teams/app/app-remove.md +1 -1
- package/docs/docs/cmd/teams/app/app-uninstall.md +1 -1
- package/docs/docs/cmd/teams/channel/channel-add.md +18 -0
- package/docs/docs/cmd/teams/channel/channel-list.md +12 -3
- package/docs/docs/cmd/teams/{conversationmember/conversationmember-add.md → channel/channel-member-add.md} +10 -4
- package/docs/docs/cmd/teams/channel/channel-member-list.md +54 -0
- package/docs/docs/cmd/teams/channel/channel-member-remove.md +57 -0
- package/docs/docs/cmd/teams/channel/channel-member-set.md +51 -0
- package/docs/docs/cmd/teams/channel/channel-set.md +1 -1
- package/docs/docs/cmd/teams/guestsettings/guestsettings-list.md +1 -1
- package/docs/docs/cmd/teams/guestsettings/guestsettings-set.md +1 -1
- package/docs/docs/cmd/teams/membersettings/membersettings-list.md +1 -1
- package/docs/docs/cmd/teams/membersettings/membersettings-set.md +1 -1
- package/docs/docs/cmd/teams/message/message-get.md +1 -1
- package/docs/docs/cmd/teams/message/message-reply-list.md +1 -1
- package/docs/docs/cmd/teams/messagingsettings/messagingsettings-list.md +1 -1
- package/docs/docs/cmd/teams/messagingsettings/messagingsettings-set.md +1 -1
- package/docs/docs/cmd/teams/report/report-pstncalls.md +1 -1
- package/docs/docs/cmd/teams/tab/tab-list.md +1 -1
- package/docs/docs/cmd/teams/team/team-archive.md +1 -1
- package/docs/docs/cmd/teams/team/team-clone.md +1 -1
- package/docs/docs/cmd/teams/team/team-get.md +1 -1
- package/docs/docs/cmd/teams/team/team-list.md +1 -1
- package/docs/docs/cmd/teams/team/team-remove.md +1 -1
- package/docs/docs/cmd/teams/team/team-set.md +1 -1
- package/docs/docs/cmd/teams/team/team-unarchive.md +1 -1
- package/docs/docs/cmd/todo/task/task-list.md +1 -1
- package/docs/docs/cmd/todo/task/task-set.md +1 -1
- package/package.json +3 -1
- package/dist/m365/teams/commands/conversationmember/conversationmember-list.js +0 -164
- package/docs/docs/cmd/teams/channel/channel-membership-list.md +0 -48
- package/docs/docs/cmd/teams/conversationmember/conversationmember-list.md +0 -39
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const cli_1 = require("../../../../cli");
|
|
4
|
+
const request_1 = require("../../../../request");
|
|
5
|
+
const utils_1 = require("../../../../utils");
|
|
6
|
+
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
7
|
+
const commands_1 = require("../../commands");
|
|
8
|
+
class TeamsChannelMemberRemoveCommand extends GraphCommand_1.default {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
this.teamId = '';
|
|
12
|
+
this.channelId = '';
|
|
13
|
+
}
|
|
14
|
+
get name() {
|
|
15
|
+
return commands_1.default.CHANNEL_MEMBER_REMOVE;
|
|
16
|
+
}
|
|
17
|
+
get description() {
|
|
18
|
+
return 'Updates the role of the specified member in the specified Microsoft Teams private team channel';
|
|
19
|
+
}
|
|
20
|
+
alias() {
|
|
21
|
+
return [commands_1.default.CONVERSATIONMEMBER_REMOVE];
|
|
22
|
+
}
|
|
23
|
+
optionSets() {
|
|
24
|
+
return [
|
|
25
|
+
['teamId', 'teamName'],
|
|
26
|
+
['channelId', 'channelName'],
|
|
27
|
+
['userId', 'userName', 'id']
|
|
28
|
+
];
|
|
29
|
+
}
|
|
30
|
+
getTelemetryProperties(args) {
|
|
31
|
+
const telemetryProps = super.getTelemetryProperties(args);
|
|
32
|
+
telemetryProps.teamId = typeof args.options.teamId !== 'undefined';
|
|
33
|
+
telemetryProps.teamName = typeof args.options.teamName !== 'undefined';
|
|
34
|
+
telemetryProps.channelId = typeof args.options.channelId !== 'undefined';
|
|
35
|
+
telemetryProps.channelName = typeof args.options.channelName !== 'undefined';
|
|
36
|
+
telemetryProps.userName = typeof args.options.userName !== 'undefined';
|
|
37
|
+
telemetryProps.userId = typeof args.options.userId !== 'undefined';
|
|
38
|
+
telemetryProps.id = typeof args.options.id !== 'undefined';
|
|
39
|
+
telemetryProps.confirm = (!(!args.options.confirm)).toString();
|
|
40
|
+
return telemetryProps;
|
|
41
|
+
}
|
|
42
|
+
commandAction(logger, args, cb) {
|
|
43
|
+
this.showDeprecationWarning(logger, commands_1.default.CONVERSATIONMEMBER_REMOVE, commands_1.default.CHANNEL_MEMBER_REMOVE);
|
|
44
|
+
const removeMember = () => {
|
|
45
|
+
this
|
|
46
|
+
.removeMemberFromChannel(args)
|
|
47
|
+
.then(cb, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
|
|
48
|
+
};
|
|
49
|
+
if (args.options.confirm) {
|
|
50
|
+
removeMember();
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
const userName = args.options.userName || args.options.userId || args.options.id;
|
|
54
|
+
const teamName = args.options.teamName || args.options.teamId;
|
|
55
|
+
const channelName = args.options.channelName || args.options.channelId;
|
|
56
|
+
cli_1.Cli.prompt({
|
|
57
|
+
type: 'confirm',
|
|
58
|
+
name: 'continue',
|
|
59
|
+
default: false,
|
|
60
|
+
message: `Are you sure you want to remove the member ${userName} from the channel ${channelName} in team ${teamName}?`
|
|
61
|
+
}, (result) => {
|
|
62
|
+
if (!result.continue) {
|
|
63
|
+
cb();
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
removeMember();
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
removeMemberFromChannel(args) {
|
|
72
|
+
return this
|
|
73
|
+
.getTeamId(args)
|
|
74
|
+
.then((teamId) => {
|
|
75
|
+
this.teamId = teamId;
|
|
76
|
+
return this.getChannelId(args);
|
|
77
|
+
})
|
|
78
|
+
.then((channelId) => {
|
|
79
|
+
this.channelId = channelId;
|
|
80
|
+
return this.getMemberId(args);
|
|
81
|
+
})
|
|
82
|
+
.then((memberId) => {
|
|
83
|
+
const requestOptions = {
|
|
84
|
+
url: `${this.resource}/v1.0/teams/${this.teamId}/channels/${this.channelId}/members/${memberId}`,
|
|
85
|
+
headers: {
|
|
86
|
+
'accept': 'application/json;odata.metadata=none'
|
|
87
|
+
},
|
|
88
|
+
responseType: 'json'
|
|
89
|
+
};
|
|
90
|
+
return request_1.default.delete(requestOptions);
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
getTeamId(args) {
|
|
94
|
+
if (args.options.teamId) {
|
|
95
|
+
return Promise.resolve(args.options.teamId);
|
|
96
|
+
}
|
|
97
|
+
const requestOptions = {
|
|
98
|
+
url: `${this.resource}/v1.0/groups?$filter=displayName eq '${encodeURIComponent(args.options.teamName)}'`,
|
|
99
|
+
headers: {
|
|
100
|
+
accept: 'application/json;odata.metadata=none'
|
|
101
|
+
},
|
|
102
|
+
responseType: 'json'
|
|
103
|
+
};
|
|
104
|
+
return request_1.default
|
|
105
|
+
.get(requestOptions)
|
|
106
|
+
.then(response => {
|
|
107
|
+
const groupItem = response.value[0];
|
|
108
|
+
if (!groupItem) {
|
|
109
|
+
return Promise.reject(`The specified team does not exist in the Microsoft Teams`);
|
|
110
|
+
}
|
|
111
|
+
if (groupItem.resourceProvisioningOptions.indexOf('Team') === -1) {
|
|
112
|
+
return Promise.reject(`The specified team does not exist in the Microsoft Teams`);
|
|
113
|
+
}
|
|
114
|
+
if (response.value.length > 1) {
|
|
115
|
+
return Promise.reject(`Multiple Microsoft Teams teams with name ${args.options.teamName} found: ${response.value.map(x => x.id)}`);
|
|
116
|
+
}
|
|
117
|
+
return Promise.resolve(groupItem.id);
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
getChannelId(args) {
|
|
121
|
+
if (args.options.channelId) {
|
|
122
|
+
return Promise.resolve(args.options.channelId);
|
|
123
|
+
}
|
|
124
|
+
const requestOptions = {
|
|
125
|
+
url: `${this.resource}/v1.0/teams/${encodeURIComponent(this.teamId)}/channels?$filter=displayName eq '${encodeURIComponent(args.options.channelName)}'`,
|
|
126
|
+
headers: {
|
|
127
|
+
accept: 'application/json;odata.metadata=none'
|
|
128
|
+
},
|
|
129
|
+
responseType: 'json'
|
|
130
|
+
};
|
|
131
|
+
return request_1.default
|
|
132
|
+
.get(requestOptions)
|
|
133
|
+
.then(response => {
|
|
134
|
+
const channelItem = response.value[0];
|
|
135
|
+
if (!channelItem) {
|
|
136
|
+
return Promise.reject(`The specified channel does not exist in the Microsoft Teams team`);
|
|
137
|
+
}
|
|
138
|
+
return Promise.resolve(channelItem.id);
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
getMemberId(args) {
|
|
142
|
+
if (args.options.id) {
|
|
143
|
+
return Promise.resolve(args.options.id);
|
|
144
|
+
}
|
|
145
|
+
const requestOptions = {
|
|
146
|
+
url: `${this.resource}/v1.0/teams/${this.teamId}/channels/${this.channelId}/members`,
|
|
147
|
+
headers: {
|
|
148
|
+
accept: 'application/json;odata.metadata=none'
|
|
149
|
+
},
|
|
150
|
+
responseType: 'json'
|
|
151
|
+
};
|
|
152
|
+
return request_1.default
|
|
153
|
+
.get(requestOptions)
|
|
154
|
+
.then(response => {
|
|
155
|
+
const conversationMembers = response.value.filter(x => {
|
|
156
|
+
var _a, _b;
|
|
157
|
+
return args.options.userId && ((_a = x.userId) === null || _a === void 0 ? void 0 : _a.toLocaleLowerCase()) === args.options.userId.toLocaleLowerCase() ||
|
|
158
|
+
args.options.userName && ((_b = x.email) === null || _b === void 0 ? void 0 : _b.toLocaleLowerCase()) === args.options.userName.toLocaleLowerCase();
|
|
159
|
+
});
|
|
160
|
+
const conversationMember = conversationMembers[0];
|
|
161
|
+
if (!conversationMember) {
|
|
162
|
+
return Promise.reject(`The specified member does not exist in the Microsoft Teams channel`);
|
|
163
|
+
}
|
|
164
|
+
if (conversationMembers.length > 1) {
|
|
165
|
+
return Promise.reject(`Multiple Microsoft Teams channel members with name ${args.options.userName} found: ${response.value.map(x => x.userId)}`);
|
|
166
|
+
}
|
|
167
|
+
return Promise.resolve(conversationMember.id);
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
options() {
|
|
171
|
+
const options = [
|
|
172
|
+
{
|
|
173
|
+
option: '--teamId [teamId]'
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
option: '--teamName [teamName]'
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
option: '--channelId [channelId]'
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
option: '--channelName [channelName]'
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
option: '--userName [userName]'
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
option: '--userId [userId]'
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
option: '--id [id]'
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
option: '--confirm'
|
|
195
|
+
}
|
|
196
|
+
];
|
|
197
|
+
const parentOptions = super.options();
|
|
198
|
+
return options.concat(parentOptions);
|
|
199
|
+
}
|
|
200
|
+
validate(args) {
|
|
201
|
+
if (args.options.teamId && !utils_1.validation.isValidGuid(args.options.teamId)) {
|
|
202
|
+
return `${args.options.teamId} is not a valid GUID`;
|
|
203
|
+
}
|
|
204
|
+
if (args.options.channelId && !utils_1.validation.isValidTeamsChannelId(args.options.channelId)) {
|
|
205
|
+
return `${args.options.channelId} is not a valid Teams Channel ID`;
|
|
206
|
+
}
|
|
207
|
+
if (args.options.userId && !utils_1.validation.isValidGuid(args.options.userId)) {
|
|
208
|
+
return `${args.options.userId} is not a valid GUID`;
|
|
209
|
+
}
|
|
210
|
+
return true;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
module.exports = new TeamsChannelMemberRemoveCommand();
|
|
214
|
+
//# sourceMappingURL=channel-member-remove.js.map
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const utils_1 = require("../../../../utils");
|
|
4
|
+
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
5
|
+
const commands_1 = require("../../commands");
|
|
6
|
+
const request_1 = require("../../../../request");
|
|
7
|
+
class TeamsChannelMemberSetCommand extends GraphCommand_1.default {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
this.teamId = '';
|
|
11
|
+
this.channelId = '';
|
|
12
|
+
}
|
|
13
|
+
get name() {
|
|
14
|
+
return commands_1.default.CHANNEL_MEMBER_SET;
|
|
15
|
+
}
|
|
16
|
+
get description() {
|
|
17
|
+
return 'Updates the role of the specified member in the specified Microsoft Teams private team channel';
|
|
18
|
+
}
|
|
19
|
+
getTelemetryProperties(args) {
|
|
20
|
+
const telemetryProps = super.getTelemetryProperties(args);
|
|
21
|
+
telemetryProps.teamId = typeof args.options.teamId !== 'undefined';
|
|
22
|
+
telemetryProps.teamName = typeof args.options.teamName !== 'undefined';
|
|
23
|
+
telemetryProps.channelId = typeof args.options.channelId !== 'undefined';
|
|
24
|
+
telemetryProps.channelName = typeof args.options.channelName !== 'undefined';
|
|
25
|
+
telemetryProps.userName = typeof args.options.userName !== 'undefined';
|
|
26
|
+
telemetryProps.userId = typeof args.options.userId !== 'undefined';
|
|
27
|
+
telemetryProps.id = typeof args.options.id !== 'undefined';
|
|
28
|
+
return telemetryProps;
|
|
29
|
+
}
|
|
30
|
+
commandAction(logger, args, cb) {
|
|
31
|
+
this
|
|
32
|
+
.getTeamId(args)
|
|
33
|
+
.then((teamId) => {
|
|
34
|
+
this.teamId = teamId;
|
|
35
|
+
return this.getChannelId(args);
|
|
36
|
+
})
|
|
37
|
+
.then((channelId) => {
|
|
38
|
+
this.channelId = channelId;
|
|
39
|
+
return this.getMemberId(args);
|
|
40
|
+
})
|
|
41
|
+
.then((memberId) => {
|
|
42
|
+
const requestOptions = {
|
|
43
|
+
url: `${this.resource}/v1.0/teams/${this.teamId}/channels/${this.channelId}/members/${memberId}`,
|
|
44
|
+
headers: {
|
|
45
|
+
'accept': 'application/json;odata.metadata=none',
|
|
46
|
+
'Prefer': 'return=representation'
|
|
47
|
+
},
|
|
48
|
+
responseType: 'json',
|
|
49
|
+
data: {
|
|
50
|
+
'@odata.type': '#microsoft.graph.aadUserConversationMember',
|
|
51
|
+
roles: [args.options.role]
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
return request_1.default.patch(requestOptions);
|
|
55
|
+
})
|
|
56
|
+
.then((member) => {
|
|
57
|
+
logger.log(member);
|
|
58
|
+
cb();
|
|
59
|
+
}, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
|
|
60
|
+
}
|
|
61
|
+
getTeamId(args) {
|
|
62
|
+
if (args.options.teamId) {
|
|
63
|
+
return Promise.resolve(args.options.teamId);
|
|
64
|
+
}
|
|
65
|
+
const requestOptions = {
|
|
66
|
+
url: `${this.resource}/v1.0/groups?$filter=displayName eq '${encodeURIComponent(args.options.teamName)}'`,
|
|
67
|
+
headers: {
|
|
68
|
+
accept: 'application/json;odata.metadata=none'
|
|
69
|
+
},
|
|
70
|
+
responseType: 'json'
|
|
71
|
+
};
|
|
72
|
+
return request_1.default
|
|
73
|
+
.get(requestOptions)
|
|
74
|
+
.then(response => {
|
|
75
|
+
const groupItem = response.value[0];
|
|
76
|
+
if (!groupItem) {
|
|
77
|
+
return Promise.reject(`The specified team does not exist in the Microsoft Teams`);
|
|
78
|
+
}
|
|
79
|
+
if (groupItem.resourceProvisioningOptions.indexOf('Team') === -1) {
|
|
80
|
+
return Promise.reject(`The specified team does not exist in the Microsoft Teams`);
|
|
81
|
+
}
|
|
82
|
+
if (response.value.length > 1) {
|
|
83
|
+
return Promise.reject(`Multiple Microsoft Teams teams with name ${args.options.teamName} found: ${response.value.map(x => x.id)}`);
|
|
84
|
+
}
|
|
85
|
+
return Promise.resolve(groupItem.id);
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
getChannelId(args) {
|
|
89
|
+
if (args.options.channelId) {
|
|
90
|
+
return Promise.resolve(args.options.channelId);
|
|
91
|
+
}
|
|
92
|
+
const requestOptions = {
|
|
93
|
+
url: `${this.resource}/v1.0/teams/${encodeURIComponent(this.teamId)}/channels?$filter=displayName eq '${encodeURIComponent(args.options.channelName)}'`,
|
|
94
|
+
headers: {
|
|
95
|
+
accept: 'application/json;odata.metadata=none'
|
|
96
|
+
},
|
|
97
|
+
responseType: 'json'
|
|
98
|
+
};
|
|
99
|
+
return request_1.default
|
|
100
|
+
.get(requestOptions)
|
|
101
|
+
.then(response => {
|
|
102
|
+
const channelItem = response.value[0];
|
|
103
|
+
if (!channelItem) {
|
|
104
|
+
return Promise.reject(`The specified channel does not exist in the Microsoft Teams team`);
|
|
105
|
+
}
|
|
106
|
+
return Promise.resolve(channelItem.id);
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
getMemberId(args) {
|
|
110
|
+
if (args.options.id) {
|
|
111
|
+
return Promise.resolve(args.options.id);
|
|
112
|
+
}
|
|
113
|
+
const requestOptions = {
|
|
114
|
+
url: `${this.resource}/v1.0/teams/${this.teamId}/channels/${this.channelId}/members`,
|
|
115
|
+
headers: {
|
|
116
|
+
accept: 'application/json;odata.metadata=none'
|
|
117
|
+
},
|
|
118
|
+
responseType: 'json'
|
|
119
|
+
};
|
|
120
|
+
return request_1.default
|
|
121
|
+
.get(requestOptions)
|
|
122
|
+
.then(response => {
|
|
123
|
+
const conversationMembers = response.value.filter(x => {
|
|
124
|
+
var _a, _b;
|
|
125
|
+
return args.options.userId && ((_a = x.userId) === null || _a === void 0 ? void 0 : _a.toLocaleLowerCase()) === args.options.userId.toLocaleLowerCase() ||
|
|
126
|
+
args.options.userName && ((_b = x.email) === null || _b === void 0 ? void 0 : _b.toLocaleLowerCase()) === args.options.userName.toLocaleLowerCase();
|
|
127
|
+
});
|
|
128
|
+
const conversationMember = conversationMembers[0];
|
|
129
|
+
if (!conversationMember) {
|
|
130
|
+
return Promise.reject(`The specified member does not exist in the Microsoft Teams channel`);
|
|
131
|
+
}
|
|
132
|
+
if (conversationMembers.length > 1) {
|
|
133
|
+
return Promise.reject(`Multiple Microsoft Teams channel members with name ${args.options.userName} found: ${response.value.map(x => x.userId)}`);
|
|
134
|
+
}
|
|
135
|
+
return Promise.resolve(conversationMember.id);
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
options() {
|
|
139
|
+
const options = [
|
|
140
|
+
{
|
|
141
|
+
option: '--teamId [teamId]'
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
option: '--teamName [teamName]'
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
option: '--channelId [channelId]'
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
option: '--channelName [channelName]'
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
option: '--userName [userName]'
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
option: '--userId [userId]'
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
option: '--id [id]'
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
option: '-r, --role <role>',
|
|
163
|
+
autocomplete: ['owner', 'member']
|
|
164
|
+
}
|
|
165
|
+
];
|
|
166
|
+
const parentOptions = super.options();
|
|
167
|
+
return options.concat(parentOptions);
|
|
168
|
+
}
|
|
169
|
+
validate(args) {
|
|
170
|
+
if (args.options.teamId && args.options.teamName) {
|
|
171
|
+
return 'Specify either teamId or teamName, but not both';
|
|
172
|
+
}
|
|
173
|
+
if (!args.options.teamId && !args.options.teamName) {
|
|
174
|
+
return 'Specify teamId or teamName, one is required';
|
|
175
|
+
}
|
|
176
|
+
if (args.options.teamId && !utils_1.validation.isValidGuid(args.options.teamId)) {
|
|
177
|
+
return `${args.options.teamId} is not a valid GUID`;
|
|
178
|
+
}
|
|
179
|
+
if (args.options.channelId && args.options.channelName) {
|
|
180
|
+
return 'Specify either channelId or channelName, but not both';
|
|
181
|
+
}
|
|
182
|
+
if (!args.options.channelId && !args.options.channelName) {
|
|
183
|
+
return 'Specify channelId or channelName, one is required';
|
|
184
|
+
}
|
|
185
|
+
if (args.options.channelId && !utils_1.validation.isValidTeamsChannelId(args.options.channelId)) {
|
|
186
|
+
return `${args.options.channelId} is not a valid Teams Channel ID`;
|
|
187
|
+
}
|
|
188
|
+
if ((args.options.userName && args.options.userId) ||
|
|
189
|
+
(args.options.userName && args.options.id) ||
|
|
190
|
+
(args.options.userId && args.options.id)) {
|
|
191
|
+
return 'Specify either userName, userId or id, but not multiple.';
|
|
192
|
+
}
|
|
193
|
+
if (!args.options.userName && !args.options.userId && !args.options.id) {
|
|
194
|
+
return 'Specify either userName, userId or id, one is required';
|
|
195
|
+
}
|
|
196
|
+
if (args.options.userId && !utils_1.validation.isValidGuid(args.options.userId)) {
|
|
197
|
+
return `${args.options.userId} is not a valid GUID`;
|
|
198
|
+
}
|
|
199
|
+
if (['owner', 'member'].indexOf(args.options.role) === -1) {
|
|
200
|
+
return `${args.options.role} is not a valid role value. Allowed values owner|member`;
|
|
201
|
+
}
|
|
202
|
+
return true;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
module.exports = new TeamsChannelMemberSetCommand();
|
|
206
|
+
//# sourceMappingURL=channel-member-set.js.map
|
|
@@ -11,7 +11,10 @@ exports.default = {
|
|
|
11
11
|
CHANNEL_ADD: `${prefix} channel add`,
|
|
12
12
|
CHANNEL_GET: `${prefix} channel get`,
|
|
13
13
|
CHANNEL_LIST: `${prefix} channel list`,
|
|
14
|
-
|
|
14
|
+
CHANNEL_MEMBER_ADD: `${prefix} channel member add`,
|
|
15
|
+
CHANNEL_MEMBER_LIST: `${prefix} channel member list`,
|
|
16
|
+
CHANNEL_MEMBER_REMOVE: `${prefix} channel member remove`,
|
|
17
|
+
CHANNEL_MEMBER_SET: `${prefix} channel member set`,
|
|
15
18
|
CHANNEL_REMOVE: `${prefix} channel remove`,
|
|
16
19
|
CHANNEL_SET: `${prefix} channel set`,
|
|
17
20
|
CHAT_GET: `${prefix} chat get`,
|
|
@@ -21,6 +24,7 @@ exports.default = {
|
|
|
21
24
|
CHAT_MESSAGE_SEND: `${prefix} chat message send`,
|
|
22
25
|
CONVERSATIONMEMBER_ADD: `${prefix} conversationmember add`,
|
|
23
26
|
CONVERSATIONMEMBER_LIST: `${prefix} conversationmember list`,
|
|
27
|
+
CONVERSATIONMEMBER_REMOVE: `${prefix} conversationmember remove`,
|
|
24
28
|
FUNSETTINGS_LIST: `${prefix} funsettings list`,
|
|
25
29
|
FUNSETTINGS_SET: `${prefix} funsettings set`,
|
|
26
30
|
GUESTSETTINGS_LIST: `${prefix} guestsettings list`,
|
|
@@ -47,4 +47,4 @@ m365 aad approleassignment list --objectId b2307a39-e878-458b-bc90-03bc578531dd
|
|
|
47
47
|
|
|
48
48
|
## More information
|
|
49
49
|
|
|
50
|
-
- Application and service principal objects in Azure Active Directory (Azure AD): [https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-application-objects](https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-application-objects)
|
|
50
|
+
- Application and service principal objects in Azure Active Directory (Azure AD): [https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-application-objects](https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-application-objects)
|
|
@@ -33,4 +33,4 @@ Configure classification for modern SharePoint sites
|
|
|
33
33
|
|
|
34
34
|
```sh
|
|
35
35
|
m365 aad groupsetting add --templateId 62375ab9-6b52-47ed-826b-58e47e0e304b --UsageGuidelinesUrl https://contoso.sharepoint.com/sites/compliance --ClassificationList 'HBI, MBI, LBI, GDPR' --DefaultClassification MBI
|
|
36
|
-
```
|
|
36
|
+
```
|
|
@@ -31,4 +31,4 @@ Configure classification for modern SharePoint sites
|
|
|
31
31
|
|
|
32
32
|
```sh
|
|
33
33
|
m365 aad groupsetting set --id c391b57d-5783-4c53-9236-cefb5c6ef323 --UsageGuidelinesUrl https://contoso.sharepoint.com/sites/compliance --ClassificationList 'HBI, MBI, LBI, GDPR' --DefaultClassification MBI
|
|
34
|
-
```
|
|
34
|
+
```
|
|
@@ -47,4 +47,4 @@ m365 aad oauth2grant add --clientId d03a0062-1aa6-43e1-8f49-d73e969c5812 --resou
|
|
|
47
47
|
|
|
48
48
|
## More information
|
|
49
49
|
|
|
50
|
-
- Application and service principal objects in Azure Active Directory (Azure AD): [https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-application-objects](https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-application-objects)
|
|
50
|
+
- Application and service principal objects in Azure Active Directory (Azure AD): [https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-application-objects](https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-application-objects)
|
|
@@ -32,4 +32,4 @@ m365 aad oauth2grant list --spObjectId b2307a39-e878-458b-bc90-03bc578531d6
|
|
|
32
32
|
## More information
|
|
33
33
|
|
|
34
34
|
- Application and service principal objects in Azure Active Directory (Azure AD): [https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-application-objects](https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-application-objects)
|
|
35
|
-
- List oauth2PermissionGrants: [https://docs.microsoft.com/en-us/graph/api/oauth2permissiongrant-list?view=graph-rest-1.0](https://docs.microsoft.com/en-us/graph/api/oauth2permissiongrant-list?view=graph-rest-1.0)
|
|
35
|
+
- List oauth2PermissionGrants: [https://docs.microsoft.com/en-us/graph/api/oauth2permissiongrant-list?view=graph-rest-1.0](https://docs.microsoft.com/en-us/graph/api/oauth2permissiongrant-list?view=graph-rest-1.0)
|
|
@@ -45,4 +45,4 @@ m365 aad oauth2grant remove --grantId YgA60KYa4UOPSdc-lpxYEnQkr8KVLDpCsOXkiV8i-e
|
|
|
45
45
|
## More information
|
|
46
46
|
|
|
47
47
|
- Application and service principal objects in Azure Active Directory (Azure AD): [https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-application-objects](https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-application-objects)
|
|
48
|
-
- Delete a delegated permission grant (oAuth2PermissionGrant): [https://docs.microsoft.com/en-us/graph/api/oauth2permissiongrant-delete?view=graph-rest-1.0](https://docs.microsoft.com/en-us/graph/api/oauth2permissiongrant-delete?view=graph-rest-1.0)
|
|
48
|
+
- Delete a delegated permission grant (oAuth2PermissionGrant): [https://docs.microsoft.com/en-us/graph/api/oauth2permissiongrant-delete?view=graph-rest-1.0](https://docs.microsoft.com/en-us/graph/api/oauth2permissiongrant-delete?view=graph-rest-1.0)
|
|
@@ -39,4 +39,4 @@ m365 aad oauth2grant set --grantId YgA60KYa4UOPSdc-lpxYEnQkr8KVLDpCsOXkiV8i-ek -
|
|
|
39
39
|
## More information
|
|
40
40
|
|
|
41
41
|
- Application and service principal objects in Azure Active Directory (Azure AD): [https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-application-objects](https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-application-objects)
|
|
42
|
-
- Update a delegated permission grant (oAuth2PermissionGrant): [https://docs.microsoft.com/en-us/graph/api/oauth2permissiongrant-update?view=graph-rest-1.0](https://docs.microsoft.com/en-us/graph/api/oauth2permissiongrant-update?view=graph-rest-1.0)
|
|
42
|
+
- Update a delegated permission grant (oAuth2PermissionGrant): [https://docs.microsoft.com/en-us/graph/api/oauth2permissiongrant-update?view=graph-rest-1.0](https://docs.microsoft.com/en-us/graph/api/oauth2permissiongrant-update?view=graph-rest-1.0)
|
|
@@ -31,4 +31,4 @@ m365 aad siteclassification disable --confirm
|
|
|
31
31
|
|
|
32
32
|
## More information
|
|
33
33
|
|
|
34
|
-
- SharePoint "modern" sites classification: [https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/modern-experience-site-classification](https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/modern-experience-site-classification)
|
|
34
|
+
- SharePoint "modern" sites classification: [https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/modern-experience-site-classification](https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/modern-experience-site-classification)
|
|
@@ -46,4 +46,4 @@ m365 aad siteclassification enable --classifications "High, Medium, Low" --defau
|
|
|
46
46
|
|
|
47
47
|
## More information
|
|
48
48
|
|
|
49
|
-
- SharePoint "modern" sites classification: [https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/modern-experience-site-classification](https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/modern-experience-site-classification)
|
|
49
|
+
- SharePoint "modern" sites classification: [https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/modern-experience-site-classification](https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/modern-experience-site-classification)
|
|
@@ -22,4 +22,4 @@ m365 aad siteclassification get
|
|
|
22
22
|
|
|
23
23
|
## More information
|
|
24
24
|
|
|
25
|
-
- SharePoint "modern" sites classification: [https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/modern-experience-site-classification](https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/modern-experience-site-classification)
|
|
25
|
+
- SharePoint "modern" sites classification: [https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/modern-experience-site-classification](https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/modern-experience-site-classification)
|
|
@@ -53,4 +53,4 @@ m365 aad siteclassification set --usageGuidelinesUrl "http://aka.ms/pnp" --guest
|
|
|
53
53
|
|
|
54
54
|
## More information
|
|
55
55
|
|
|
56
|
-
- SharePoint "modern" sites classification: [https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/modern-experience-site-classification](https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/modern-experience-site-classification)
|
|
56
|
+
- SharePoint "modern" sites classification: [https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/modern-experience-site-classification](https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/modern-experience-site-classification)
|
|
@@ -48,4 +48,4 @@ m365 aad sp get --objectId b2307a39-e878-458b-bc90-03bc578531dd
|
|
|
48
48
|
## More information
|
|
49
49
|
|
|
50
50
|
- Application and service principal objects in Azure Active Directory (Azure AD): [https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-application-objects](https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-application-objects)
|
|
51
|
-
- Get servicePrincipal: [https://docs.microsoft.com/en-us/graph/api/serviceprincipal-get?view=graph-rest-1.0](https://docs.microsoft.com/en-us/graph/api/serviceprincipal-get?view=graph-rest-1.0)
|
|
51
|
+
- Get servicePrincipal: [https://docs.microsoft.com/en-us/graph/api/serviceprincipal-get?view=graph-rest-1.0](https://docs.microsoft.com/en-us/graph/api/serviceprincipal-get?view=graph-rest-1.0)
|