@pnp/cli-microsoft365 10.0.0-beta.a868b81 → 10.0.0-beta.d03ed9d
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/allCommands.json +1 -1
- package/allCommandsFull.json +1 -1
- package/dist/Auth.js +6 -4
- package/dist/AuthServer.js +7 -7
- package/dist/Command.js +4 -1
- package/dist/api.js +1 -1
- package/dist/config.js +1 -0
- package/dist/m365/cli/commands/cli-doctor.js +2 -2
- package/dist/m365/cli/commands.js +1 -2
- package/dist/m365/commands/login.js +122 -69
- package/dist/m365/commands/setup.js +1 -1
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-add.js +0 -5
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-get.js +0 -5
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-list.js +0 -5
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-add.js +0 -5
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-get.js +0 -5
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-list.js +0 -5
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-remove.js +0 -5
- package/dist/m365/entra/commands/app/app-add.js +0 -5
- package/dist/m365/entra/commands/app/app-get.js +0 -5
- package/dist/m365/entra/commands/app/app-list.js +0 -5
- package/dist/m365/entra/commands/app/app-permission-add.js +0 -5
- package/dist/m365/entra/commands/app/app-remove.js +0 -5
- package/dist/m365/entra/commands/app/app-role-add.js +0 -5
- package/dist/m365/entra/commands/app/app-role-list.js +0 -5
- package/dist/m365/entra/commands/app/app-role-remove.js +0 -5
- package/dist/m365/entra/commands/app/app-set.js +0 -5
- package/dist/m365/entra/commands/approleassignment/approleassignment-add.js +0 -5
- package/dist/m365/entra/commands/approleassignment/approleassignment-list.js +0 -5
- package/dist/m365/entra/commands/approleassignment/approleassignment-remove.js +0 -5
- package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-add.js +0 -5
- package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-get.js +0 -5
- package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-list.js +0 -5
- package/dist/m365/entra/commands/group/group-add.js +0 -4
- package/dist/m365/entra/commands/group/group-get.js +0 -5
- package/dist/m365/entra/commands/group/group-list.js +0 -5
- package/dist/m365/entra/commands/group/{group-user-add.js → group-member-add.js} +18 -18
- package/dist/m365/entra/commands/group/{group-user-list.js → group-member-list.js} +16 -21
- package/dist/m365/entra/commands/group/{group-user-set.js → group-member-set.js} +19 -19
- package/dist/m365/entra/commands/group/group-remove.js +0 -5
- package/dist/m365/entra/commands/groupsetting/groupsetting-add.js +0 -5
- package/dist/m365/entra/commands/groupsetting/groupsetting-get.js +0 -5
- package/dist/m365/entra/commands/groupsetting/groupsetting-list.js +0 -5
- package/dist/m365/entra/commands/groupsetting/groupsetting-remove.js +0 -5
- package/dist/m365/entra/commands/groupsetting/groupsetting-set.js +0 -5
- package/dist/m365/entra/commands/groupsettingtemplate/groupsettingtemplate-get.js +0 -5
- package/dist/m365/entra/commands/groupsettingtemplate/groupsettingtemplate-list.js +0 -5
- package/dist/m365/entra/commands/license/license-list.js +0 -5
- package/dist/m365/entra/commands/m365group/m365group-add.js +0 -5
- package/dist/m365/entra/commands/m365group/m365group-conversation-list.js +0 -5
- package/dist/m365/entra/commands/m365group/m365group-conversation-post-list.js +0 -5
- package/dist/m365/entra/commands/m365group/m365group-get.js +0 -5
- package/dist/m365/entra/commands/m365group/m365group-list.js +0 -5
- package/dist/m365/entra/commands/m365group/m365group-recyclebinitem-clear.js +0 -5
- package/dist/m365/entra/commands/m365group/m365group-recyclebinitem-list.js +0 -5
- package/dist/m365/entra/commands/m365group/m365group-recyclebinitem-remove.js +0 -5
- package/dist/m365/entra/commands/m365group/m365group-recyclebinitem-restore.js +0 -5
- package/dist/m365/entra/commands/m365group/m365group-remove.js +0 -5
- package/dist/m365/entra/commands/m365group/m365group-renew.js +0 -5
- package/dist/m365/entra/commands/m365group/m365group-report-activitycounts.js +0 -4
- package/dist/m365/entra/commands/m365group/m365group-report-activitydetail.js +0 -4
- package/dist/m365/entra/commands/m365group/m365group-report-activityfilecounts.js +0 -4
- package/dist/m365/entra/commands/m365group/m365group-report-activitygroupcounts.js +0 -4
- package/dist/m365/entra/commands/m365group/m365group-report-activitystorage.js +0 -4
- package/dist/m365/entra/commands/m365group/m365group-set.js +159 -86
- package/dist/m365/entra/commands/m365group/m365group-teamify.js +0 -5
- package/dist/m365/entra/commands/m365group/m365group-user-add.js +5 -18
- package/dist/m365/entra/commands/m365group/m365group-user-list.js +0 -5
- package/dist/m365/entra/commands/m365group/m365group-user-remove.js +0 -6
- package/dist/m365/entra/commands/m365group/m365group-user-set.js +3 -15
- package/dist/m365/entra/commands/oauth2grant/oauth2grant-add.js +0 -5
- package/dist/m365/entra/commands/oauth2grant/oauth2grant-list.js +3 -17
- package/dist/m365/entra/commands/oauth2grant/oauth2grant-remove.js +0 -5
- package/dist/m365/entra/commands/oauth2grant/oauth2grant-set.js +0 -5
- package/dist/m365/entra/commands/policy/policy-list.js +0 -5
- package/dist/m365/entra/commands/siteclassification/siteclassification-disable.js +0 -5
- package/dist/m365/entra/commands/siteclassification/siteclassification-enable.js +0 -5
- package/dist/m365/entra/commands/siteclassification/siteclassification-get.js +0 -5
- package/dist/m365/entra/commands/siteclassification/siteclassification-set.js +0 -5
- package/dist/m365/entra/commands/user/user-add.js +0 -5
- package/dist/m365/entra/commands/user/user-get.js +0 -5
- package/dist/m365/entra/commands/user/user-guest-add.js +0 -5
- package/dist/m365/entra/commands/user/user-hibp.js +0 -5
- package/dist/m365/entra/commands/user/user-license-add.js +0 -5
- package/dist/m365/entra/commands/user/user-license-list.js +0 -5
- package/dist/m365/entra/commands/user/user-license-remove.js +0 -5
- package/dist/m365/entra/commands/user/user-list.js +0 -5
- package/dist/m365/entra/commands/user/user-password-validate.js +0 -5
- package/dist/m365/entra/commands/user/user-recyclebinitem-clear.js +0 -5
- package/dist/m365/entra/commands/user/user-recyclebinitem-list.js +0 -5
- package/dist/m365/entra/commands/user/user-recyclebinitem-remove.js +0 -5
- package/dist/m365/entra/commands/user/user-recyclebinitem-restore.js +0 -5
- package/dist/m365/entra/commands/user/user-registrationdetails-list.js +0 -4
- package/dist/m365/entra/commands/user/user-remove.js +0 -5
- package/dist/m365/entra/commands/user/user-set.js +0 -5
- package/dist/m365/entra/commands/user/user-signin-list.js +0 -5
- package/dist/m365/entra/commands.js +3 -3
- package/dist/m365/external/commands/item/item-add.js +2 -5
- package/dist/m365/file/commands/file-move.js +135 -0
- package/dist/m365/file/commands.js +2 -1
- package/dist/m365/flow/commands/environment/environment-list.js +1 -1
- package/dist/m365/flow/commands/recyclebinitem/recyclebinitem-list.js +47 -0
- package/dist/m365/flow/commands/recyclebinitem/recyclebinitem-restore.js +48 -0
- package/dist/m365/flow/commands.js +2 -0
- package/dist/m365/pa/commands/app/app-list.js +1 -6
- package/dist/m365/pa/commands/connector/connector-list.js +1 -6
- package/dist/m365/pa/commands/environment/environment-list.js +1 -1
- package/dist/m365/pp/commands/environment/environment-list.js +1 -1
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.20.0.js +27 -0
- package/dist/m365/spfx/commands/project/project-doctor/rules/FN002021_DEVDEP_rushstack_eslint_config.js +10 -0
- package/dist/m365/spfx/commands/project/project-doctor.js +2 -1
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.20.0.js +59 -0
- package/dist/m365/spfx/commands/project/project-upgrade.js +2 -1
- package/dist/m365/spfx/commands/spfx-doctor.js +15 -0
- package/dist/m365/spo/commands/app/app-instance-list.js +3 -18
- package/dist/m365/spo/commands/app/app-list.js +1 -8
- package/dist/m365/spo/commands/feature/feature-list.js +1 -8
- package/dist/m365/spo/commands/file/file-copy.js +11 -7
- package/dist/m365/spo/commands/file/file-move.js +55 -33
- package/dist/m365/spo/commands/folder/folder-move.js +43 -35
- package/dist/m365/spo/commands/folder/folder-sharinglink-add.js +143 -0
- package/dist/m365/spo/commands/folder/folder-sharinglink-clear.js +111 -0
- package/dist/m365/spo/commands/folder/folder-sharinglink-remove.js +95 -0
- package/dist/m365/spo/commands/group/group-member-add.js +3 -23
- package/dist/m365/spo/commands/group/group-member-remove.js +1 -18
- package/dist/m365/spo/commands/list/list-webhook-list.js +1 -6
- package/dist/m365/spo/commands/listitem/listitem-attachment-list.js +1 -8
- package/dist/m365/spo/commands/page/page-list.js +1 -1
- package/dist/m365/spo/commands/page/page-remove.js +37 -16
- package/dist/m365/spo/commands/page/page-template-list.js +1 -3
- package/dist/m365/spo/commands/site/SiteAdmin.js +2 -0
- package/dist/m365/spo/commands/site/site-admin-add.js +252 -0
- package/dist/m365/spo/commands/site/site-admin-list.js +10 -36
- package/dist/m365/spo/commands/site/site-admin-remove.js +194 -0
- package/dist/m365/spo/commands/site/site-sharingpermission-set.js +68 -0
- package/dist/m365/spo/commands/sitescript/sitescript-get.js +3 -2
- package/dist/m365/spo/commands/sitescript/sitescript-list.js +1 -3
- package/dist/m365/spo/commands/{site/site-rename.js → tenant/tenant-site-rename.js} +29 -32
- package/dist/m365/spo/commands/theme/theme-list.js +1 -1
- package/dist/m365/spo/commands/user/user-ensure.js +1 -11
- package/dist/m365/spo/commands/user/user-get.js +67 -9
- package/dist/m365/spo/commands/web/web-clientsidewebpart-list.js +1 -6
- package/dist/m365/spo/commands.js +7 -1
- package/dist/m365/spp/commands/contentcenter/contentcenter-list.js +56 -0
- package/dist/m365/spp/commands.js +5 -0
- package/dist/m365/teams/MeetingTranscript.js +2 -0
- package/dist/m365/teams/commands/meeting/meeting-transcript-get.js +152 -0
- package/dist/m365/teams/commands/tab/tab-list.js +5 -3
- package/dist/m365/teams/commands.js +1 -0
- package/dist/m365/viva/commands/engage/Community.js +2 -0
- package/dist/m365/viva/commands/engage/engage-community-list.js +28 -0
- package/dist/m365/viva/commands.js +1 -0
- package/dist/request.js +46 -61
- package/dist/utils/driveUtil.js +51 -0
- package/dist/utils/spo.js +108 -22
- package/dist/utils/timersUtil.js +13 -0
- package/dist/utils/urlUtil.js +8 -0
- package/dist/utils/zod.js +12 -3
- package/docs/docs/cmd/cli/cli-doctor.mdx +24 -23
- package/docs/docs/cmd/entra/administrativeunit/administrativeunit-add.mdx +0 -6
- package/docs/docs/cmd/entra/administrativeunit/administrativeunit-get.mdx +0 -6
- package/docs/docs/cmd/entra/administrativeunit/administrativeunit-list.mdx +0 -6
- package/docs/docs/cmd/entra/administrativeunit/administrativeunit-member-add.mdx +0 -6
- package/docs/docs/cmd/entra/administrativeunit/administrativeunit-member-get.mdx +0 -6
- package/docs/docs/cmd/entra/administrativeunit/administrativeunit-member-list.mdx +0 -6
- package/docs/docs/cmd/entra/administrativeunit/administrativeunit-remove.mdx +0 -6
- package/docs/docs/cmd/entra/app/app-add.mdx +0 -1
- package/docs/docs/cmd/entra/app/app-get.mdx +0 -1
- package/docs/docs/cmd/entra/app/app-list.mdx +0 -1
- package/docs/docs/cmd/entra/app/app-permission-add.mdx +0 -1
- package/docs/docs/cmd/entra/app/app-permission-list.mdx +0 -6
- package/docs/docs/cmd/entra/app/app-remove.mdx +0 -1
- package/docs/docs/cmd/entra/app/app-role-add.mdx +0 -1
- package/docs/docs/cmd/entra/app/app-role-list.mdx +0 -1
- package/docs/docs/cmd/entra/app/app-role-remove.mdx +0 -1
- package/docs/docs/cmd/entra/app/app-set.mdx +0 -1
- package/docs/docs/cmd/entra/approleassignment/approleassignment-add.mdx +0 -6
- package/docs/docs/cmd/entra/approleassignment/approleassignment-list.mdx +0 -6
- package/docs/docs/cmd/entra/approleassignment/approleassignment-remove.mdx +0 -6
- package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-add.mdx +0 -1
- package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-get.mdx +0 -1
- package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-list.mdx +0 -1
- package/docs/docs/cmd/entra/group/group-add.mdx +0 -6
- package/docs/docs/cmd/entra/group/group-get.mdx +0 -6
- package/docs/docs/cmd/entra/group/group-list.mdx +0 -6
- package/docs/docs/cmd/entra/group/group-member-add.mdx +62 -0
- package/docs/docs/cmd/entra/group/{group-user-list.mdx → group-member-list.mdx} +14 -20
- package/docs/docs/cmd/entra/group/group-member-set.mdx +62 -0
- package/docs/docs/cmd/entra/group/group-remove.mdx +0 -6
- package/docs/docs/cmd/entra/groupsetting/groupsetting-add.mdx +0 -6
- package/docs/docs/cmd/entra/groupsetting/groupsetting-get.mdx +0 -6
- package/docs/docs/cmd/entra/groupsetting/groupsetting-list.mdx +0 -6
- package/docs/docs/cmd/entra/groupsetting/groupsetting-remove.mdx +0 -6
- package/docs/docs/cmd/entra/groupsetting/groupsetting-set.mdx +0 -6
- package/docs/docs/cmd/entra/groupsettingtemplate/groupsettingtemplate-get.mdx +0 -6
- package/docs/docs/cmd/entra/groupsettingtemplate/groupsettingtemplate-list.mdx +0 -6
- package/docs/docs/cmd/entra/license/license-list.mdx +0 -6
- package/docs/docs/cmd/entra/m365group/m365group-add.mdx +0 -6
- package/docs/docs/cmd/entra/m365group/m365group-conversation-list.mdx +0 -6
- package/docs/docs/cmd/entra/m365group/m365group-conversation-post-list.mdx +0 -6
- package/docs/docs/cmd/entra/m365group/m365group-get.mdx +0 -6
- package/docs/docs/cmd/entra/m365group/m365group-list.mdx +0 -6
- package/docs/docs/cmd/entra/m365group/m365group-recyclebinitem-clear.mdx +0 -6
- package/docs/docs/cmd/entra/m365group/m365group-recyclebinitem-list.mdx +0 -6
- package/docs/docs/cmd/entra/m365group/m365group-recyclebinitem-remove.mdx +0 -6
- package/docs/docs/cmd/entra/m365group/m365group-recyclebinitem-restore.mdx +0 -6
- package/docs/docs/cmd/entra/m365group/m365group-remove.mdx +0 -6
- package/docs/docs/cmd/entra/m365group/m365group-renew.mdx +0 -6
- package/docs/docs/cmd/entra/m365group/m365group-report-activitycounts.mdx +0 -6
- package/docs/docs/cmd/entra/m365group/m365group-report-activitydetail.mdx +0 -6
- package/docs/docs/cmd/entra/m365group/m365group-report-activityfilecounts.mdx +0 -6
- package/docs/docs/cmd/entra/m365group/m365group-report-activitygroupcounts.mdx +2 -8
- package/docs/docs/cmd/entra/m365group/m365group-report-activitystorage.mdx +3 -9
- package/docs/docs/cmd/entra/m365group/m365group-set.mdx +38 -23
- package/docs/docs/cmd/entra/m365group/m365group-teamify.mdx +5 -11
- package/docs/docs/cmd/entra/m365group/m365group-user-add.mdx +5 -14
- package/docs/docs/cmd/entra/m365group/m365group-user-list.mdx +0 -12
- package/docs/docs/cmd/entra/m365group/m365group-user-remove.mdx +7 -17
- package/docs/docs/cmd/entra/m365group/m365group-user-set.mdx +4 -17
- package/docs/docs/cmd/entra/oauth2grant/oauth2grant-add.mdx +3 -9
- package/docs/docs/cmd/entra/oauth2grant/oauth2grant-list.mdx +1 -7
- package/docs/docs/cmd/entra/oauth2grant/oauth2grant-remove.mdx +4 -10
- package/docs/docs/cmd/entra/oauth2grant/oauth2grant-set.mdx +3 -9
- package/docs/docs/cmd/entra/policy/policy-list.mdx +3 -9
- package/docs/docs/cmd/entra/siteclassification/siteclassification-disable.mdx +3 -9
- package/docs/docs/cmd/entra/siteclassification/siteclassification-enable.mdx +7 -13
- package/docs/docs/cmd/entra/siteclassification/siteclassification-get.mdx +1 -7
- package/docs/docs/cmd/entra/siteclassification/siteclassification-set.mdx +8 -14
- package/docs/docs/cmd/entra/user/user-add.mdx +4 -10
- package/docs/docs/cmd/entra/user/user-get.mdx +7 -13
- package/docs/docs/cmd/entra/user/user-guest-add.mdx +3 -9
- package/docs/docs/cmd/entra/user/user-hibp.mdx +2 -8
- package/docs/docs/cmd/entra/user/user-license-add.mdx +0 -6
- package/docs/docs/cmd/entra/user/user-license-list.mdx +0 -6
- package/docs/docs/cmd/entra/user/user-license-remove.mdx +2 -8
- package/docs/docs/cmd/entra/user/user-list.mdx +1 -7
- package/docs/docs/cmd/entra/user/user-password-validate.mdx +1 -7
- package/docs/docs/cmd/entra/user/user-recyclebinitem-clear.mdx +2 -8
- package/docs/docs/cmd/entra/user/user-recyclebinitem-list.mdx +0 -6
- package/docs/docs/cmd/entra/user/user-recyclebinitem-remove.mdx +2 -8
- package/docs/docs/cmd/entra/user/user-recyclebinitem-restore.mdx +0 -6
- package/docs/docs/cmd/entra/user/user-registrationdetails-list.mdx +7 -13
- package/docs/docs/cmd/entra/user/user-remove.mdx +2 -8
- package/docs/docs/cmd/entra/user/user-set.mdx +0 -6
- package/docs/docs/cmd/entra/user/user-signin-list.mdx +9 -15
- package/docs/docs/cmd/external/item/item-add.mdx +3 -3
- package/docs/docs/cmd/file/file-move.mdx +79 -0
- package/docs/docs/cmd/flow/recyclebinitem/recyclebinitem-list.mdx +132 -0
- package/docs/docs/cmd/flow/recyclebinitem/recyclebinitem-restore.mdx +55 -0
- package/docs/docs/cmd/login.mdx +9 -0
- package/docs/docs/cmd/spfx/project/project-upgrade.mdx +1 -1
- package/docs/docs/cmd/spo/cdn/cdn-get.mdx +1 -1
- package/docs/docs/cmd/spo/cdn/cdn-origin-add.mdx +1 -1
- package/docs/docs/cmd/spo/cdn/cdn-origin-list.mdx +1 -1
- package/docs/docs/cmd/spo/cdn/cdn-origin-remove.mdx +1 -1
- package/docs/docs/cmd/spo/cdn/cdn-policy-list.mdx +1 -1
- package/docs/docs/cmd/spo/cdn/cdn-policy-set.mdx +1 -1
- package/docs/docs/cmd/spo/externaluser/externaluser-list.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-move.mdx +116 -11
- package/docs/docs/cmd/spo/folder/folder-move.mdx +84 -13
- package/docs/docs/cmd/spo/folder/folder-sharinglink-add.mdx +125 -0
- package/docs/docs/cmd/spo/folder/folder-sharinglink-clear.mdx +50 -0
- package/docs/docs/cmd/spo/folder/folder-sharinglink-remove.mdx +50 -0
- package/docs/docs/cmd/spo/group/group-member-add.mdx +8 -14
- package/docs/docs/cmd/spo/group/group-member-remove.mdx +5 -11
- package/docs/docs/cmd/spo/hidedefaultthemes/hidedefaultthemes-get.mdx +1 -1
- package/docs/docs/cmd/spo/hidedefaultthemes/hidedefaultthemes-set.mdx +1 -1
- package/docs/docs/cmd/spo/homesite/homesite-remove.mdx +1 -1
- package/docs/docs/cmd/spo/knowledgehub/knowledgehub-get.mdx +1 -1
- package/docs/docs/cmd/spo/knowledgehub/knowledgehub-remove.mdx +1 -1
- package/docs/docs/cmd/spo/knowledgehub/knowledgehub-set.mdx +1 -1
- package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-add.mdx +1 -1
- package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-list.mdx +1 -1
- package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-remove.mdx +1 -1
- package/docs/docs/cmd/spo/orgnewssite/orgnewssite-list.mdx +1 -1
- package/docs/docs/cmd/spo/orgnewssite/orgnewssite-remove.mdx +1 -1
- package/docs/docs/cmd/spo/orgnewssite/orgnewssite-set.mdx +1 -1
- package/docs/docs/cmd/spo/page/page-remove.mdx +30 -12
- package/docs/docs/cmd/spo/site/site-admin-add.mdx +67 -0
- package/docs/docs/cmd/spo/site/site-admin-list.mdx +64 -12
- package/docs/docs/cmd/spo/site/site-admin-remove.mdx +67 -0
- package/docs/docs/cmd/spo/site/site-appcatalog-add.mdx +1 -1
- package/docs/docs/cmd/spo/site/site-appcatalog-remove.mdx +1 -1
- package/docs/docs/cmd/spo/site/site-commsite-enable.mdx +1 -1
- package/docs/docs/cmd/spo/site/site-list.mdx +6 -4
- package/docs/docs/cmd/spo/site/site-set.mdx +1 -1
- package/docs/docs/cmd/spo/site/site-sharingpermission-set.mdx +58 -0
- package/docs/docs/cmd/spo/sitescript/sitescript-get.mdx +14 -1
- package/docs/docs/cmd/spo/storageentity/storageentity-remove.mdx +1 -1
- package/docs/docs/cmd/spo/storageentity/storageentity-set.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-appcatalog-add.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-appcatalogurl-get.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-list.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-remove.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-settings-list.mdx +1 -1
- package/docs/docs/cmd/spo/{site/site-rename.mdx → tenant/tenant-site-rename.mdx} +7 -7
- package/docs/docs/cmd/spo/theme/theme-apply.mdx +1 -1
- package/docs/docs/cmd/spo/theme/theme-get.mdx +1 -1
- package/docs/docs/cmd/spo/theme/theme-list.mdx +1 -1
- package/docs/docs/cmd/spo/theme/theme-remove.mdx +1 -1
- package/docs/docs/cmd/spo/theme/theme-set.mdx +1 -1
- package/docs/docs/cmd/spo/user/user-ensure.mdx +2 -5
- package/docs/docs/cmd/spo/user/user-get.mdx +35 -9
- package/docs/docs/cmd/spp/contentcenter/contentcenter-list.mdx +287 -0
- package/docs/docs/cmd/teams/meeting/meeting-transcript-get.mdx +132 -0
- package/docs/docs/cmd/teams/tab/tab-list.mdx +1 -2
- package/docs/docs/cmd/viva/engage/engage-community-list.mdx +81 -0
- package/npm-shrinkwrap.json +203 -375
- package/package.json +16 -17
- package/dist/m365/cli/commands/cli-reconsent.js +0 -29
- package/dist/m365/entra/aadCommands.js +0 -89
- package/docs/docs/cmd/cli/cli-reconsent.mdx +0 -62
- package/docs/docs/cmd/entra/group/group-user-add.mdx +0 -62
- package/docs/docs/cmd/entra/group/group-user-set.mdx +0 -62
|
@@ -9,7 +9,6 @@ import request from '../../../../request.js';
|
|
|
9
9
|
import { formatting } from '../../../../utils/formatting.js';
|
|
10
10
|
import { validation } from '../../../../utils/validation.js';
|
|
11
11
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
12
|
-
import aadCommands from '../../aadCommands.js';
|
|
13
12
|
import commands from '../../commands.js';
|
|
14
13
|
class EntraAppRemoveCommand extends GraphCommand {
|
|
15
14
|
get name() {
|
|
@@ -18,9 +17,6 @@ class EntraAppRemoveCommand extends GraphCommand {
|
|
|
18
17
|
get description() {
|
|
19
18
|
return 'Removes an Entra app registration';
|
|
20
19
|
}
|
|
21
|
-
alias() {
|
|
22
|
-
return [aadCommands.APP_REMOVE, commands.APPREGISTRATION_REMOVE];
|
|
23
|
-
}
|
|
24
20
|
constructor() {
|
|
25
21
|
super();
|
|
26
22
|
_EntraAppRemoveCommand_instances.add(this);
|
|
@@ -30,7 +26,6 @@ class EntraAppRemoveCommand extends GraphCommand {
|
|
|
30
26
|
__classPrivateFieldGet(this, _EntraAppRemoveCommand_instances, "m", _EntraAppRemoveCommand_initOptionSets).call(this);
|
|
31
27
|
}
|
|
32
28
|
async commandAction(logger, args) {
|
|
33
|
-
await this.showDeprecationWarning(logger, aadCommands.APP_REMOVE, commands.APP_REMOVE);
|
|
34
29
|
const deleteApp = async () => {
|
|
35
30
|
try {
|
|
36
31
|
const objectId = await this.getObjectId(args, logger);
|
|
@@ -10,7 +10,6 @@ import { formatting } from '../../../../utils/formatting.js';
|
|
|
10
10
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
11
11
|
import commands from '../../commands.js';
|
|
12
12
|
import { cli } from '../../../../cli/cli.js';
|
|
13
|
-
import aadCommands from '../../aadCommands.js';
|
|
14
13
|
class EntraAppRoleAddCommand extends GraphCommand {
|
|
15
14
|
get name() {
|
|
16
15
|
return commands.APP_ROLE_ADD;
|
|
@@ -18,9 +17,6 @@ class EntraAppRoleAddCommand extends GraphCommand {
|
|
|
18
17
|
get description() {
|
|
19
18
|
return 'Adds role to the specified Entra app registration';
|
|
20
19
|
}
|
|
21
|
-
alias() {
|
|
22
|
-
return [aadCommands.APP_ROLE_ADD, commands.APPREGISTRATION_ROLE_ADD];
|
|
23
|
-
}
|
|
24
20
|
constructor() {
|
|
25
21
|
super();
|
|
26
22
|
_EntraAppRoleAddCommand_instances.add(this);
|
|
@@ -30,7 +26,6 @@ class EntraAppRoleAddCommand extends GraphCommand {
|
|
|
30
26
|
__classPrivateFieldGet(this, _EntraAppRoleAddCommand_instances, "m", _EntraAppRoleAddCommand_initOptionSets).call(this);
|
|
31
27
|
}
|
|
32
28
|
async commandAction(logger, args) {
|
|
33
|
-
await this.showDeprecationWarning(logger, aadCommands.APP_ROLE_ADD, commands.APP_ROLE_ADD);
|
|
34
29
|
try {
|
|
35
30
|
const appId = await this.getAppObjectId(args, logger);
|
|
36
31
|
const appInfo = await this.getAppInfo(appId, logger);
|
|
@@ -10,7 +10,6 @@ import { odata } from '../../../../utils/odata.js';
|
|
|
10
10
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
11
11
|
import commands from '../../commands.js';
|
|
12
12
|
import { cli } from '../../../../cli/cli.js';
|
|
13
|
-
import aadCommands from '../../aadCommands.js';
|
|
14
13
|
class EntraAppRoleListCommand extends GraphCommand {
|
|
15
14
|
get name() {
|
|
16
15
|
return commands.APP_ROLE_LIST;
|
|
@@ -18,9 +17,6 @@ class EntraAppRoleListCommand extends GraphCommand {
|
|
|
18
17
|
get description() {
|
|
19
18
|
return 'Gets Entra app registration roles';
|
|
20
19
|
}
|
|
21
|
-
alias() {
|
|
22
|
-
return [aadCommands.APP_ROLE_LIST, commands.APPREGISTRATION_ROLE_LIST];
|
|
23
|
-
}
|
|
24
20
|
constructor() {
|
|
25
21
|
super();
|
|
26
22
|
_EntraAppRoleListCommand_instances.add(this);
|
|
@@ -32,7 +28,6 @@ class EntraAppRoleListCommand extends GraphCommand {
|
|
|
32
28
|
return ['displayName', 'description', 'id'];
|
|
33
29
|
}
|
|
34
30
|
async commandAction(logger, args) {
|
|
35
|
-
await this.showDeprecationWarning(logger, aadCommands.APP_ROLE_LIST, commands.APP_ROLE_LIST);
|
|
36
31
|
try {
|
|
37
32
|
const objectId = await this.getAppObjectId(args, logger);
|
|
38
33
|
const appRoles = await odata.getAllItems(`${this.resource}/v1.0/myorganization/applications/${objectId}/appRoles`);
|
|
@@ -10,7 +10,6 @@ import { formatting } from "../../../../utils/formatting.js";
|
|
|
10
10
|
import { validation } from '../../../../utils/validation.js';
|
|
11
11
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
12
12
|
import commands from '../../commands.js';
|
|
13
|
-
import aadCommands from "../../aadCommands.js";
|
|
14
13
|
class EntraAppRoleRemoveCommand extends GraphCommand {
|
|
15
14
|
get name() {
|
|
16
15
|
return commands.APP_ROLE_REMOVE;
|
|
@@ -18,9 +17,6 @@ class EntraAppRoleRemoveCommand extends GraphCommand {
|
|
|
18
17
|
get description() {
|
|
19
18
|
return 'Removes role from the specified Entra app registration';
|
|
20
19
|
}
|
|
21
|
-
alias() {
|
|
22
|
-
return [aadCommands.APP_ROLE_REMOVE, commands.APPREGISTRATION_ROLE_REMOVE];
|
|
23
|
-
}
|
|
24
20
|
constructor() {
|
|
25
21
|
super();
|
|
26
22
|
_EntraAppRoleRemoveCommand_instances.add(this);
|
|
@@ -30,7 +26,6 @@ class EntraAppRoleRemoveCommand extends GraphCommand {
|
|
|
30
26
|
__classPrivateFieldGet(this, _EntraAppRoleRemoveCommand_instances, "m", _EntraAppRoleRemoveCommand_initOptionSets).call(this);
|
|
31
27
|
}
|
|
32
28
|
async commandAction(logger, args) {
|
|
33
|
-
await this.showDeprecationWarning(logger, aadCommands.APP_ROLE_REMOVE, commands.APP_ROLE_REMOVE);
|
|
34
29
|
const deleteAppRole = async () => {
|
|
35
30
|
try {
|
|
36
31
|
await this.processAppRoleDelete(logger, args);
|
|
@@ -10,7 +10,6 @@ import { formatting } from '../../../../utils/formatting.js';
|
|
|
10
10
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
11
11
|
import commands from '../../commands.js';
|
|
12
12
|
import { cli } from '../../../../cli/cli.js';
|
|
13
|
-
import aadCommands from '../../aadCommands.js';
|
|
14
13
|
class EntraAppSetCommand extends GraphCommand {
|
|
15
14
|
get name() {
|
|
16
15
|
return commands.APP_SET;
|
|
@@ -18,9 +17,6 @@ class EntraAppSetCommand extends GraphCommand {
|
|
|
18
17
|
get description() {
|
|
19
18
|
return 'Updates Entra app registration';
|
|
20
19
|
}
|
|
21
|
-
alias() {
|
|
22
|
-
return [aadCommands.APP_SET, commands.APPREGISTRATION_SET];
|
|
23
|
-
}
|
|
24
20
|
constructor() {
|
|
25
21
|
super();
|
|
26
22
|
_EntraAppSetCommand_instances.add(this);
|
|
@@ -31,7 +27,6 @@ class EntraAppSetCommand extends GraphCommand {
|
|
|
31
27
|
__classPrivateFieldGet(this, _EntraAppSetCommand_instances, "m", _EntraAppSetCommand_initTypes).call(this);
|
|
32
28
|
}
|
|
33
29
|
async commandAction(logger, args) {
|
|
34
|
-
await this.showDeprecationWarning(logger, aadCommands.APP_SET, commands.APP_SET);
|
|
35
30
|
try {
|
|
36
31
|
let objectId = await this.getAppObjectId(args, logger);
|
|
37
32
|
objectId = await this.configureUri(args, objectId, logger);
|
|
@@ -11,7 +11,6 @@ import { validation } from '../../../../utils/validation.js';
|
|
|
11
11
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
12
12
|
import commands from '../../commands.js';
|
|
13
13
|
import { cli } from '../../../../cli/cli.js';
|
|
14
|
-
import aadCommands from '../../aadCommands.js';
|
|
15
14
|
class EntraAppRoleAssignmentAddCommand extends GraphCommand {
|
|
16
15
|
get name() {
|
|
17
16
|
return commands.APPROLEASSIGNMENT_ADD;
|
|
@@ -19,9 +18,6 @@ class EntraAppRoleAssignmentAddCommand extends GraphCommand {
|
|
|
19
18
|
get description() {
|
|
20
19
|
return 'Adds service principal permissions also known as scopes and app role assignments for specified Microsoft Entra application registration';
|
|
21
20
|
}
|
|
22
|
-
alias() {
|
|
23
|
-
return [aadCommands.APPROLEASSIGNMENT_ADD];
|
|
24
|
-
}
|
|
25
21
|
constructor() {
|
|
26
22
|
super();
|
|
27
23
|
_EntraAppRoleAssignmentAddCommand_instances.add(this);
|
|
@@ -31,7 +27,6 @@ class EntraAppRoleAssignmentAddCommand extends GraphCommand {
|
|
|
31
27
|
__classPrivateFieldGet(this, _EntraAppRoleAssignmentAddCommand_instances, "m", _EntraAppRoleAssignmentAddCommand_initOptionSets).call(this);
|
|
32
28
|
}
|
|
33
29
|
async commandAction(logger, args) {
|
|
34
|
-
await this.showDeprecationWarning(logger, aadCommands.APPROLEASSIGNMENT_ADD, commands.APPROLEASSIGNMENT_ADD);
|
|
35
30
|
let objectId = '';
|
|
36
31
|
let queryFilter = '';
|
|
37
32
|
if (args.options.appId) {
|
|
@@ -9,7 +9,6 @@ import { formatting } from '../../../../utils/formatting.js';
|
|
|
9
9
|
import { validation } from '../../../../utils/validation.js';
|
|
10
10
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
11
11
|
import commands from '../../commands.js';
|
|
12
|
-
import aadCommands from '../../aadCommands.js';
|
|
13
12
|
class EntraAppRoleAssignmentListCommand extends GraphCommand {
|
|
14
13
|
get name() {
|
|
15
14
|
return commands.APPROLEASSIGNMENT_LIST;
|
|
@@ -17,9 +16,6 @@ class EntraAppRoleAssignmentListCommand extends GraphCommand {
|
|
|
17
16
|
get description() {
|
|
18
17
|
return 'Lists app role assignments for the specified application registration';
|
|
19
18
|
}
|
|
20
|
-
alias() {
|
|
21
|
-
return [aadCommands.APPROLEASSIGNMENT_LIST];
|
|
22
|
-
}
|
|
23
19
|
constructor() {
|
|
24
20
|
super();
|
|
25
21
|
_EntraAppRoleAssignmentListCommand_instances.add(this);
|
|
@@ -32,7 +28,6 @@ class EntraAppRoleAssignmentListCommand extends GraphCommand {
|
|
|
32
28
|
return ['resourceDisplayName', 'roleName'];
|
|
33
29
|
}
|
|
34
30
|
async commandAction(logger, args) {
|
|
35
|
-
await this.showDeprecationWarning(logger, aadCommands.APPROLEASSIGNMENT_LIST, commands.APPROLEASSIGNMENT_LIST);
|
|
36
31
|
try {
|
|
37
32
|
const spAppRoleAssignments = await this.getAppRoleAssignments(args.options);
|
|
38
33
|
// the role assignment has an appRoleId but no name. To get the name,
|
|
@@ -11,7 +11,6 @@ import { formatting } from '../../../../utils/formatting.js';
|
|
|
11
11
|
import { validation } from '../../../../utils/validation.js';
|
|
12
12
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
13
13
|
import commands from '../../commands.js';
|
|
14
|
-
import aadCommands from '../../aadCommands.js';
|
|
15
14
|
class EntraAppRoleAssignmentRemoveCommand extends GraphCommand {
|
|
16
15
|
get name() {
|
|
17
16
|
return commands.APPROLEASSIGNMENT_REMOVE;
|
|
@@ -19,9 +18,6 @@ class EntraAppRoleAssignmentRemoveCommand extends GraphCommand {
|
|
|
19
18
|
get description() {
|
|
20
19
|
return 'Deletes an app role assignment for the specified Entra Application Registration';
|
|
21
20
|
}
|
|
22
|
-
alias() {
|
|
23
|
-
return [aadCommands.APPROLEASSIGNMENT_REMOVE];
|
|
24
|
-
}
|
|
25
21
|
constructor() {
|
|
26
22
|
super();
|
|
27
23
|
_EntraAppRoleAssignmentRemoveCommand_instances.add(this);
|
|
@@ -31,7 +27,6 @@ class EntraAppRoleAssignmentRemoveCommand extends GraphCommand {
|
|
|
31
27
|
__classPrivateFieldGet(this, _EntraAppRoleAssignmentRemoveCommand_instances, "m", _EntraAppRoleAssignmentRemoveCommand_initOptionSets).call(this);
|
|
32
28
|
}
|
|
33
29
|
async commandAction(logger, args) {
|
|
34
|
-
await this.showDeprecationWarning(logger, aadCommands.APPROLEASSIGNMENT_REMOVE, commands.APPROLEASSIGNMENT_REMOVE);
|
|
35
30
|
const removeAppRoleAssignment = async () => {
|
|
36
31
|
let sp;
|
|
37
32
|
// get the service principal associated with the appId
|
|
@@ -10,7 +10,6 @@ import { validation } from '../../../../utils/validation.js';
|
|
|
10
10
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
11
11
|
import commands from '../../commands.js';
|
|
12
12
|
import { cli } from '../../../../cli/cli.js';
|
|
13
|
-
import aadCommands from '../../aadCommands.js';
|
|
14
13
|
class EntraEnterpriseAppAddCommand extends GraphCommand {
|
|
15
14
|
get name() {
|
|
16
15
|
return commands.ENTERPRISEAPP_ADD;
|
|
@@ -18,9 +17,6 @@ class EntraEnterpriseAppAddCommand extends GraphCommand {
|
|
|
18
17
|
get description() {
|
|
19
18
|
return 'Creates an enterprise application (or service principal) for a registered Entra app';
|
|
20
19
|
}
|
|
21
|
-
alias() {
|
|
22
|
-
return [aadCommands.SP_ADD, commands.SP_ADD];
|
|
23
|
-
}
|
|
24
20
|
constructor() {
|
|
25
21
|
super();
|
|
26
22
|
_EntraEnterpriseAppAddCommand_instances.add(this);
|
|
@@ -60,7 +56,6 @@ class EntraEnterpriseAppAddCommand extends GraphCommand {
|
|
|
60
56
|
return spItem.appId;
|
|
61
57
|
}
|
|
62
58
|
async commandAction(logger, args) {
|
|
63
|
-
await this.showDeprecationWarning(logger, aadCommands.SP_ADD, commands.SP_ADD);
|
|
64
59
|
try {
|
|
65
60
|
const appId = await this.getAppId(args);
|
|
66
61
|
const requestOptions = {
|
|
@@ -9,7 +9,6 @@ import request from '../../../../request.js';
|
|
|
9
9
|
import { formatting } from '../../../../utils/formatting.js';
|
|
10
10
|
import { validation } from '../../../../utils/validation.js';
|
|
11
11
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
12
|
-
import aadCommands from '../../aadCommands.js';
|
|
13
12
|
import commands from '../../commands.js';
|
|
14
13
|
class EntraEnterpriseAppGetCommand extends GraphCommand {
|
|
15
14
|
get name() {
|
|
@@ -18,9 +17,6 @@ class EntraEnterpriseAppGetCommand extends GraphCommand {
|
|
|
18
17
|
get description() {
|
|
19
18
|
return 'Gets information about an Enterprise Application';
|
|
20
19
|
}
|
|
21
|
-
alias() {
|
|
22
|
-
return [aadCommands.SP_GET, commands.SP_GET];
|
|
23
|
-
}
|
|
24
20
|
constructor() {
|
|
25
21
|
super();
|
|
26
22
|
_EntraEnterpriseAppGetCommand_instances.add(this);
|
|
@@ -60,7 +56,6 @@ class EntraEnterpriseAppGetCommand extends GraphCommand {
|
|
|
60
56
|
return spItem.id;
|
|
61
57
|
}
|
|
62
58
|
async commandAction(logger, args) {
|
|
63
|
-
await this.showDeprecationWarning(logger, aadCommands.SP_GET, commands.SP_GET);
|
|
64
59
|
if (this.verbose) {
|
|
65
60
|
await logger.logToStderr(`Retrieving enterprise application information...`);
|
|
66
61
|
}
|
|
@@ -6,7 +6,6 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
6
6
|
var _EntraEnterpriseAppListCommand_instances, _EntraEnterpriseAppListCommand_initTelemetry, _EntraEnterpriseAppListCommand_initOptions;
|
|
7
7
|
import { odata } from '../../../../utils/odata.js';
|
|
8
8
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
9
|
-
import aadCommands from '../../aadCommands.js';
|
|
10
9
|
import commands from '../../commands.js';
|
|
11
10
|
class EntraEnterpriseAppListCommand extends GraphCommand {
|
|
12
11
|
get name() {
|
|
@@ -18,9 +17,6 @@ class EntraEnterpriseAppListCommand extends GraphCommand {
|
|
|
18
17
|
get description() {
|
|
19
18
|
return 'Lists the enterprise applications (or service principals) in Entra ID';
|
|
20
19
|
}
|
|
21
|
-
alias() {
|
|
22
|
-
return [aadCommands.SP_LIST, commands.SP_LIST];
|
|
23
|
-
}
|
|
24
20
|
constructor() {
|
|
25
21
|
super();
|
|
26
22
|
_EntraEnterpriseAppListCommand_instances.add(this);
|
|
@@ -28,7 +24,6 @@ class EntraEnterpriseAppListCommand extends GraphCommand {
|
|
|
28
24
|
__classPrivateFieldGet(this, _EntraEnterpriseAppListCommand_instances, "m", _EntraEnterpriseAppListCommand_initOptions).call(this);
|
|
29
25
|
}
|
|
30
26
|
async commandAction(logger, args) {
|
|
31
|
-
await this.showDeprecationWarning(logger, aadCommands.SP_LIST, commands.SP_LIST);
|
|
32
27
|
if (this.verbose) {
|
|
33
28
|
await logger.logToStderr(`Retrieving enterprise application information...`);
|
|
34
29
|
}
|
|
@@ -6,7 +6,6 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
6
6
|
var _EntraGroupAddCommand_instances, _EntraGroupAddCommand_initOptions, _EntraGroupAddCommand_initValidators, _EntraGroupAddCommand_initTelemetry;
|
|
7
7
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
8
8
|
import commands from '../../commands.js';
|
|
9
|
-
import aadCommands from '../../aadCommands.js';
|
|
10
9
|
import { validation } from '../../../../utils/validation.js';
|
|
11
10
|
import request from '../../../../request.js';
|
|
12
11
|
import { entraUser } from '../../../../utils/entraUser.js';
|
|
@@ -17,9 +16,6 @@ class EntraGroupAddCommand extends GraphCommand {
|
|
|
17
16
|
get description() {
|
|
18
17
|
return 'Creates a Microsoft Entra group';
|
|
19
18
|
}
|
|
20
|
-
alias() {
|
|
21
|
-
return [aadCommands.GROUP_ADD];
|
|
22
|
-
}
|
|
23
19
|
allowUnknownOptions() {
|
|
24
20
|
return true;
|
|
25
21
|
}
|
|
@@ -8,7 +8,6 @@ import { entraGroup } from '../../../../utils/entraGroup.js';
|
|
|
8
8
|
import { validation } from '../../../../utils/validation.js';
|
|
9
9
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
10
10
|
import commands from '../../commands.js';
|
|
11
|
-
import aadCommands from '../../aadCommands.js';
|
|
12
11
|
class EntraGroupGetCommand extends GraphCommand {
|
|
13
12
|
get name() {
|
|
14
13
|
return commands.GROUP_GET;
|
|
@@ -16,9 +15,6 @@ class EntraGroupGetCommand extends GraphCommand {
|
|
|
16
15
|
get description() {
|
|
17
16
|
return 'Gets information about the specified Entra group';
|
|
18
17
|
}
|
|
19
|
-
alias() {
|
|
20
|
-
return [aadCommands.GROUP_GET];
|
|
21
|
-
}
|
|
22
18
|
constructor() {
|
|
23
19
|
super();
|
|
24
20
|
_EntraGroupGetCommand_instances.add(this);
|
|
@@ -28,7 +24,6 @@ class EntraGroupGetCommand extends GraphCommand {
|
|
|
28
24
|
__classPrivateFieldGet(this, _EntraGroupGetCommand_instances, "m", _EntraGroupGetCommand_initTelemetry).call(this);
|
|
29
25
|
}
|
|
30
26
|
async commandAction(logger, args) {
|
|
31
|
-
await this.showDeprecationWarning(logger, aadCommands.GROUP_GET, commands.GROUP_GET);
|
|
32
27
|
let group;
|
|
33
28
|
try {
|
|
34
29
|
if (args.options.id) {
|
|
@@ -8,7 +8,6 @@ import { cli } from '../../../../cli/cli.js';
|
|
|
8
8
|
import { odata } from '../../../../utils/odata.js';
|
|
9
9
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
10
10
|
import commands from '../../commands.js';
|
|
11
|
-
import aadCommands from '../../aadCommands.js';
|
|
12
11
|
class EntraGroupListCommand extends GraphCommand {
|
|
13
12
|
get name() {
|
|
14
13
|
return commands.GROUP_LIST;
|
|
@@ -16,9 +15,6 @@ class EntraGroupListCommand extends GraphCommand {
|
|
|
16
15
|
get description() {
|
|
17
16
|
return 'Lists all groups defined in Entra ID.';
|
|
18
17
|
}
|
|
19
|
-
alias() {
|
|
20
|
-
return [aadCommands.GROUP_LIST];
|
|
21
|
-
}
|
|
22
18
|
defaultProperties() {
|
|
23
19
|
return ['id', 'displayName', 'groupType'];
|
|
24
20
|
}
|
|
@@ -30,7 +26,6 @@ class EntraGroupListCommand extends GraphCommand {
|
|
|
30
26
|
__classPrivateFieldGet(this, _EntraGroupListCommand_instances, "m", _EntraGroupListCommand_initValidators).call(this);
|
|
31
27
|
}
|
|
32
28
|
async commandAction(logger, args) {
|
|
33
|
-
await this.showDeprecationWarning(logger, aadCommands.GROUP_LIST, commands.GROUP_LIST);
|
|
34
29
|
try {
|
|
35
30
|
let requestUrl = `${this.resource}/v1.0/groups`;
|
|
36
31
|
let useConsistencyLevelHeader = false;
|
|
@@ -3,34 +3,34 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
3
3
|
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");
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
|
-
var
|
|
6
|
+
var _EntraGroupMemberAddCommand_instances, _EntraGroupMemberAddCommand_initTelemetry, _EntraGroupMemberAddCommand_initOptions, _EntraGroupMemberAddCommand_initValidators, _EntraGroupMemberAddCommand_initOptionSets, _EntraGroupMemberAddCommand_initTypes;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
8
|
import { entraGroup } from '../../../../utils/entraGroup.js';
|
|
9
9
|
import { entraUser } from '../../../../utils/entraUser.js';
|
|
10
10
|
import { validation } from '../../../../utils/validation.js';
|
|
11
11
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
12
12
|
import commands from '../../commands.js';
|
|
13
|
-
class
|
|
13
|
+
class EntraGroupMemberAddCommand extends GraphCommand {
|
|
14
14
|
get name() {
|
|
15
|
-
return commands.
|
|
15
|
+
return commands.GROUP_MEMBER_ADD;
|
|
16
16
|
}
|
|
17
17
|
get description() {
|
|
18
|
-
return 'Adds a
|
|
18
|
+
return 'Adds a member to a Microsoft Entra ID group';
|
|
19
19
|
}
|
|
20
20
|
constructor() {
|
|
21
21
|
super();
|
|
22
|
-
|
|
22
|
+
_EntraGroupMemberAddCommand_instances.add(this);
|
|
23
23
|
this.roleValues = ['Owner', 'Member'];
|
|
24
|
-
__classPrivateFieldGet(this,
|
|
25
|
-
__classPrivateFieldGet(this,
|
|
26
|
-
__classPrivateFieldGet(this,
|
|
27
|
-
__classPrivateFieldGet(this,
|
|
28
|
-
__classPrivateFieldGet(this,
|
|
24
|
+
__classPrivateFieldGet(this, _EntraGroupMemberAddCommand_instances, "m", _EntraGroupMemberAddCommand_initTelemetry).call(this);
|
|
25
|
+
__classPrivateFieldGet(this, _EntraGroupMemberAddCommand_instances, "m", _EntraGroupMemberAddCommand_initOptions).call(this);
|
|
26
|
+
__classPrivateFieldGet(this, _EntraGroupMemberAddCommand_instances, "m", _EntraGroupMemberAddCommand_initValidators).call(this);
|
|
27
|
+
__classPrivateFieldGet(this, _EntraGroupMemberAddCommand_instances, "m", _EntraGroupMemberAddCommand_initOptionSets).call(this);
|
|
28
|
+
__classPrivateFieldGet(this, _EntraGroupMemberAddCommand_instances, "m", _EntraGroupMemberAddCommand_initTypes).call(this);
|
|
29
29
|
}
|
|
30
30
|
async commandAction(logger, args) {
|
|
31
31
|
try {
|
|
32
32
|
if (this.verbose) {
|
|
33
|
-
await logger.logToStderr(`Adding
|
|
33
|
+
await logger.logToStderr(`Adding member(s) ${args.options.ids || args.options.userNames} to group ${args.options.groupId || args.options.groupDisplayName}...`);
|
|
34
34
|
}
|
|
35
35
|
const groupId = await this.getGroupId(logger, args.options);
|
|
36
36
|
const userIds = await this.getUserIds(logger, args.options);
|
|
@@ -91,7 +91,7 @@ class EntraGroupUserAddCommand extends GraphCommand {
|
|
|
91
91
|
return entraUser.getUserIdsByUpns(options.userNames.split(',').map(u => u.trim()));
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
|
-
|
|
94
|
+
_EntraGroupMemberAddCommand_instances = new WeakSet(), _EntraGroupMemberAddCommand_initTelemetry = function _EntraGroupMemberAddCommand_initTelemetry() {
|
|
95
95
|
this.telemetry.push((args) => {
|
|
96
96
|
Object.assign(this.telemetryProperties, {
|
|
97
97
|
groupId: typeof args.options.groupId !== 'undefined',
|
|
@@ -100,7 +100,7 @@ _EntraGroupUserAddCommand_instances = new WeakSet(), _EntraGroupUserAddCommand_i
|
|
|
100
100
|
userNames: typeof args.options.userNames !== 'undefined'
|
|
101
101
|
});
|
|
102
102
|
});
|
|
103
|
-
},
|
|
103
|
+
}, _EntraGroupMemberAddCommand_initOptions = function _EntraGroupMemberAddCommand_initOptions() {
|
|
104
104
|
this.options.unshift({
|
|
105
105
|
option: '-i, --groupId [groupId]'
|
|
106
106
|
}, {
|
|
@@ -113,7 +113,7 @@ _EntraGroupUserAddCommand_instances = new WeakSet(), _EntraGroupUserAddCommand_i
|
|
|
113
113
|
option: '-r, --role <role>',
|
|
114
114
|
autocomplete: this.roleValues
|
|
115
115
|
});
|
|
116
|
-
},
|
|
116
|
+
}, _EntraGroupMemberAddCommand_initValidators = function _EntraGroupMemberAddCommand_initValidators() {
|
|
117
117
|
this.validators.push(async (args) => {
|
|
118
118
|
if (args.options.groupId && !validation.isValidGuid(args.options.groupId)) {
|
|
119
119
|
return `${args.options.groupId} is not a valid GUID for option groupId.`;
|
|
@@ -135,10 +135,10 @@ _EntraGroupUserAddCommand_instances = new WeakSet(), _EntraGroupUserAddCommand_i
|
|
|
135
135
|
}
|
|
136
136
|
return true;
|
|
137
137
|
});
|
|
138
|
-
},
|
|
138
|
+
}, _EntraGroupMemberAddCommand_initOptionSets = function _EntraGroupMemberAddCommand_initOptionSets() {
|
|
139
139
|
this.optionSets.push({ options: ['groupId', 'groupDisplayName'] }, { options: ['ids', 'userNames'] });
|
|
140
|
-
},
|
|
140
|
+
}, _EntraGroupMemberAddCommand_initTypes = function _EntraGroupMemberAddCommand_initTypes() {
|
|
141
141
|
this.types.string.push('groupId', 'groupDisplayName', 'ids', 'userNames', 'role');
|
|
142
142
|
};
|
|
143
|
-
export default new
|
|
144
|
-
//# sourceMappingURL=group-
|
|
143
|
+
export default new EntraGroupMemberAddCommand();
|
|
144
|
+
//# sourceMappingURL=group-member-add.js.map
|
|
@@ -3,36 +3,31 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
3
3
|
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");
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
|
-
var
|
|
6
|
+
var _EntraGroupMemberListCommand_instances, _EntraGroupMemberListCommand_initTelemetry, _EntraGroupMemberListCommand_initOptions, _EntraGroupMemberListCommand_initOptionSets, _EntraGroupMemberListCommand_initValidators;
|
|
7
7
|
import { entraGroup } from '../../../../utils/entraGroup.js';
|
|
8
8
|
import { odata } from '../../../../utils/odata.js';
|
|
9
9
|
import { validation } from '../../../../utils/validation.js';
|
|
10
10
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
11
11
|
import commands from '../../commands.js';
|
|
12
|
-
|
|
13
|
-
class EntraGroupUserListCommand extends GraphCommand {
|
|
12
|
+
class EntraGroupMemberListCommand extends GraphCommand {
|
|
14
13
|
get name() {
|
|
15
|
-
return commands.
|
|
14
|
+
return commands.GROUP_MEMBER_LIST;
|
|
16
15
|
}
|
|
17
16
|
get description() {
|
|
18
|
-
return 'Lists
|
|
19
|
-
}
|
|
20
|
-
alias() {
|
|
21
|
-
return [aadCommands.GROUP_USER_LIST];
|
|
17
|
+
return 'Lists members of a specific Entra group';
|
|
22
18
|
}
|
|
23
19
|
defaultProperties() {
|
|
24
20
|
return ['id', 'displayName', 'userPrincipalName', 'roles'];
|
|
25
21
|
}
|
|
26
22
|
constructor() {
|
|
27
23
|
super();
|
|
28
|
-
|
|
29
|
-
__classPrivateFieldGet(this,
|
|
30
|
-
__classPrivateFieldGet(this,
|
|
31
|
-
__classPrivateFieldGet(this,
|
|
32
|
-
__classPrivateFieldGet(this,
|
|
24
|
+
_EntraGroupMemberListCommand_instances.add(this);
|
|
25
|
+
__classPrivateFieldGet(this, _EntraGroupMemberListCommand_instances, "m", _EntraGroupMemberListCommand_initTelemetry).call(this);
|
|
26
|
+
__classPrivateFieldGet(this, _EntraGroupMemberListCommand_instances, "m", _EntraGroupMemberListCommand_initOptions).call(this);
|
|
27
|
+
__classPrivateFieldGet(this, _EntraGroupMemberListCommand_instances, "m", _EntraGroupMemberListCommand_initOptionSets).call(this);
|
|
28
|
+
__classPrivateFieldGet(this, _EntraGroupMemberListCommand_instances, "m", _EntraGroupMemberListCommand_initValidators).call(this);
|
|
33
29
|
}
|
|
34
30
|
async commandAction(logger, args) {
|
|
35
|
-
await this.showDeprecationWarning(logger, aadCommands.GROUP_USER_LIST, commands.GROUP_USER_LIST);
|
|
36
31
|
try {
|
|
37
32
|
const groupId = await this.getGroupId(args.options, logger);
|
|
38
33
|
const users = [];
|
|
@@ -86,7 +81,7 @@ class EntraGroupUserListCommand extends GraphCommand {
|
|
|
86
81
|
});
|
|
87
82
|
const expandParam = fieldExpand.length > 0 ? `&$expand=${fieldExpand}` : '';
|
|
88
83
|
const selectParam = allSelectProperties.filter(item => !item.includes('/'));
|
|
89
|
-
const endpoint = `${this.resource}/v1.0/groups/${groupId}/${role}
|
|
84
|
+
const endpoint = `${this.resource}/v1.0/groups/${groupId}/${role}?$select=${selectParam}${expandParam}`;
|
|
90
85
|
let users = [];
|
|
91
86
|
if (filter) {
|
|
92
87
|
// While using the filter, we need to specify the ConsistencyLevel header.
|
|
@@ -107,7 +102,7 @@ class EntraGroupUserListCommand extends GraphCommand {
|
|
|
107
102
|
return users;
|
|
108
103
|
}
|
|
109
104
|
}
|
|
110
|
-
|
|
105
|
+
_EntraGroupMemberListCommand_instances = new WeakSet(), _EntraGroupMemberListCommand_initTelemetry = function _EntraGroupMemberListCommand_initTelemetry() {
|
|
111
106
|
this.telemetry.push((args) => {
|
|
112
107
|
Object.assign(this.telemetryProperties, {
|
|
113
108
|
groupId: typeof args.options.groupId !== 'undefined',
|
|
@@ -117,7 +112,7 @@ _EntraGroupUserListCommand_instances = new WeakSet(), _EntraGroupUserListCommand
|
|
|
117
112
|
filter: typeof args.options.filter !== 'undefined'
|
|
118
113
|
});
|
|
119
114
|
});
|
|
120
|
-
},
|
|
115
|
+
}, _EntraGroupMemberListCommand_initOptions = function _EntraGroupMemberListCommand_initOptions() {
|
|
121
116
|
this.options.unshift({
|
|
122
117
|
option: "-i, --groupId [groupId]"
|
|
123
118
|
}, {
|
|
@@ -130,11 +125,11 @@ _EntraGroupUserListCommand_instances = new WeakSet(), _EntraGroupUserListCommand
|
|
|
130
125
|
}, {
|
|
131
126
|
option: "-f, --filter [filter]"
|
|
132
127
|
});
|
|
133
|
-
},
|
|
128
|
+
}, _EntraGroupMemberListCommand_initOptionSets = function _EntraGroupMemberListCommand_initOptionSets() {
|
|
134
129
|
this.optionSets.push({
|
|
135
130
|
options: ['groupId', 'groupName']
|
|
136
131
|
});
|
|
137
|
-
},
|
|
132
|
+
}, _EntraGroupMemberListCommand_initValidators = function _EntraGroupMemberListCommand_initValidators() {
|
|
138
133
|
this.validators.push(async (args) => {
|
|
139
134
|
if (args.options.groupId && !validation.isValidGuid(args.options.groupId)) {
|
|
140
135
|
return `${args.options.groupId} is not a valid GUID`;
|
|
@@ -147,5 +142,5 @@ _EntraGroupUserListCommand_instances = new WeakSet(), _EntraGroupUserListCommand
|
|
|
147
142
|
return true;
|
|
148
143
|
});
|
|
149
144
|
};
|
|
150
|
-
export default new
|
|
151
|
-
//# sourceMappingURL=group-
|
|
145
|
+
export default new EntraGroupMemberListCommand();
|
|
146
|
+
//# sourceMappingURL=group-member-list.js.map
|