@pnp/cli-microsoft365 10.0.0-beta.d126736 → 10.0.0-beta.d92b1c2
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/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 +138 -73
- package/dist/m365/entra/commands/m365group/m365group-teamify.js +0 -5
- package/dist/m365/entra/commands/m365group/m365group-user-add.js +0 -6
- 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 +0 -6
- package/dist/m365/entra/commands/oauth2grant/oauth2grant-add.js +0 -5
- package/dist/m365/entra/commands/oauth2grant/oauth2grant-list.js +0 -5
- 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/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/user/user-ensure.js +1 -11
- package/dist/utils/zod.js +11 -2
- 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 +2 -8
- package/docs/docs/cmd/entra/m365group/m365group-set.mdx +34 -22
- package/docs/docs/cmd/entra/m365group/m365group-teamify.mdx +5 -11
- package/docs/docs/cmd/entra/m365group/m365group-user-add.mdx +5 -11
- 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 +0 -10
- 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/login.mdx +9 -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/user/user-ensure.mdx +2 -5
- package/package.json +1 -1
- package/dist/m365/entra/aadCommands.js +0 -89
- package/docs/docs/cmd/entra/group/group-user-add.mdx +0 -62
- package/docs/docs/cmd/entra/group/group-user-set.mdx +0 -62
|
@@ -12,12 +12,6 @@ Retrieves the Entra ID user sign-ins for the tenant
|
|
|
12
12
|
m365 entra user signin list [options]
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
## Alias
|
|
16
|
-
|
|
17
|
-
```sh
|
|
18
|
-
m365 aad user signin list [options]
|
|
19
|
-
```
|
|
20
|
-
|
|
21
15
|
## Options
|
|
22
16
|
|
|
23
17
|
```md definition-list
|
|
@@ -38,55 +32,55 @@ m365 aad user signin list [options]
|
|
|
38
32
|
|
|
39
33
|
## Examples
|
|
40
34
|
|
|
41
|
-
Get all user's sign-ins in your tenant
|
|
35
|
+
Get all user's sign-ins in your tenant.
|
|
42
36
|
|
|
43
37
|
```sh
|
|
44
38
|
m365 entra user signin list
|
|
45
39
|
```
|
|
46
40
|
|
|
47
|
-
Get all user's sign-ins filter by given user's UPN in the tenant
|
|
41
|
+
Get all user's sign-ins filter by given user's UPN in the tenant.
|
|
48
42
|
|
|
49
43
|
```sh
|
|
50
44
|
m365 entra user signin list --userName 'johndoe@example.com'
|
|
51
45
|
```
|
|
52
46
|
|
|
53
|
-
Get all user's sign-ins filter by given user's Id in the tenant
|
|
47
|
+
Get all user's sign-ins filter by given user's Id in the tenant.
|
|
54
48
|
|
|
55
49
|
```sh
|
|
56
50
|
m365 entra user signin list --userId '11111111-1111-1111-1111-111111111111'
|
|
57
51
|
```
|
|
58
52
|
|
|
59
|
-
Get all user's sign-ins filter by given application display name in the tenant
|
|
53
|
+
Get all user's sign-ins filter by given application display name in the tenant.
|
|
60
54
|
|
|
61
55
|
```sh
|
|
62
56
|
m365 entra user signin list --appDisplayName 'Graph explorer'
|
|
63
57
|
```
|
|
64
58
|
|
|
65
|
-
Get all user's sign-ins filter by given application identifier in the tenant
|
|
59
|
+
Get all user's sign-ins filter by given application identifier in the tenant.
|
|
66
60
|
|
|
67
61
|
```sh
|
|
68
62
|
m365 entra user signin list --appId '00000000-0000-0000-0000-000000000000'
|
|
69
63
|
```
|
|
70
64
|
|
|
71
|
-
Get all user's sign-ins filter by given user's UPN and application display name in the tenant
|
|
65
|
+
Get all user's sign-ins filter by given user's UPN and application display name in the tenant.
|
|
72
66
|
|
|
73
67
|
```sh
|
|
74
68
|
m365 entra user signin list --userName 'johndoe@example.com' --appDisplayName 'Graph explorer'
|
|
75
69
|
```
|
|
76
70
|
|
|
77
|
-
Get all user's sign-ins filter by given user's Id and application display name in the tenant
|
|
71
|
+
Get all user's sign-ins filter by given user's Id and application display name in the tenant.
|
|
78
72
|
|
|
79
73
|
```sh
|
|
80
74
|
m365 entra user signin list --userId '11111111-1111-1111-1111-111111111111' --appDisplayName 'Graph explorer'
|
|
81
75
|
```
|
|
82
76
|
|
|
83
|
-
Get all user's sign-ins filter by given user's UPN and application identifier in the tenant
|
|
77
|
+
Get all user's sign-ins filter by given user's UPN and application identifier in the tenant.
|
|
84
78
|
|
|
85
79
|
```sh
|
|
86
80
|
m365 entra user signin list --userName 'johndoe@example.com' --appId '00000000-0000-0000-0000-000000000000'
|
|
87
81
|
```
|
|
88
82
|
|
|
89
|
-
Get all user's sign-ins filter by given user's Id and application identifier in the tenant
|
|
83
|
+
Get all user's sign-ins filter by given user's Id and application identifier in the tenant.
|
|
90
84
|
|
|
91
85
|
```sh
|
|
92
86
|
m365 entra user signin list --userId '11111111-1111-1111-1111-111111111111' --appId '00000000-0000-0000-0000-000000000000'
|
package/docs/docs/cmd/login.mdx
CHANGED
|
@@ -47,6 +47,9 @@ m365 login [options]
|
|
|
47
47
|
|
|
48
48
|
`--connectionName [connectionName]`
|
|
49
49
|
: Specify an optional name to make switching between connections easier.
|
|
50
|
+
|
|
51
|
+
`--ensure`
|
|
52
|
+
: Ensures that the user is signed in. if the user isn't signed in, it initiates the login flow
|
|
50
53
|
```
|
|
51
54
|
|
|
52
55
|
<Global />
|
|
@@ -190,6 +193,12 @@ Log in to Microsoft 365 using a client secret.
|
|
|
190
193
|
m365 login --authType secret --secret topSeCr3t@007
|
|
191
194
|
```
|
|
192
195
|
|
|
196
|
+
Ensures that the user is signed in, initiates the login flow if the user isn't signed in
|
|
197
|
+
|
|
198
|
+
```sh
|
|
199
|
+
m365 login --ensure
|
|
200
|
+
```
|
|
201
|
+
|
|
193
202
|
## Response
|
|
194
203
|
|
|
195
204
|
<Tabs>
|
|
@@ -25,32 +25,26 @@ m365 spo group member add [options]
|
|
|
25
25
|
: Name of the SharePoint Group to which the user needs to be added. Specify either `groupId` or `groupName`.
|
|
26
26
|
|
|
27
27
|
`--userNames [userNames]`
|
|
28
|
-
: User's UPN (user principal name, eg. megan.bowen@contoso.com). If multiple users need to be added, they have to be comma-separated (e.g. megan.bowen@contoso.com,alex.wilber@contoso.com). Specify either `userIds`, `userNames`, `emails`, `
|
|
28
|
+
: User's UPN (user principal name, eg. megan.bowen@contoso.com). If multiple users need to be added, they have to be comma-separated (e.g. megan.bowen@contoso.com,alex.wilber@contoso.com). Specify either `userIds`, `userNames`, `emails`, `entraGroupIds` or `entraGroupNames`.
|
|
29
29
|
|
|
30
30
|
`--emails [emails]`
|
|
31
|
-
: User's email (eg. megan.bowen@contoso.com). If multiple users need to be added, they have to be comma-separated (e.g. megan.bowen@contoso.com,alex.wilber@contoso.com). Specify either `userIds`, `userNames`, `emails`, `
|
|
31
|
+
: User's email (eg. megan.bowen@contoso.com). If multiple users need to be added, they have to be comma-separated (e.g. megan.bowen@contoso.com,alex.wilber@contoso.com). Specify either `userIds`, `userNames`, `emails`, `entraGroupIds` or `entraGroupNames`.
|
|
32
32
|
|
|
33
33
|
`--userIds [userIds]`
|
|
34
|
-
: The user Id of the user to add as a member. (Id of the site user, for example: 14) If multiple users need to be added, the Ids have to be comma-separated. Specify either `userIds`, `userNames`, `emails`, `
|
|
34
|
+
: The user Id of the user to add as a member. (Id of the site user, for example: 14). If multiple users need to be added, the Ids have to be comma-separated. Specify either `userIds`, `userNames`, `emails`, `entraGroupIds` or `entraGroupNames`.
|
|
35
35
|
|
|
36
36
|
`--entraGroupIds [entraGroupIds]`
|
|
37
|
-
: The object Id of the Entra group to add as a member. If multiple groups need to be added, the Ids have to be comma-separated. Specify either `userIds`, `userNames`, `emails`, `
|
|
38
|
-
|
|
39
|
-
`--aadGroupIds [aadGroupIds]`
|
|
40
|
-
: (deprecated. Use `entraGroupIds` instead) The object ID of the Microsoft Entra group to add as a member. If multiple groups need to be added, the Ids have to be comma-separated. Specify either `userIds`, `userNames`, `emails`, `aadGroupIds`, `entraGroupIds`, `aadGroupNames`, or `entraGroupNames`.
|
|
37
|
+
: The object Id of the Entra group to add as a member. If multiple groups need to be added, the Ids have to be comma-separated. Specify either `userIds`, `userNames`, `emails`, `entraGroupIds` or `entraGroupNames`.
|
|
41
38
|
|
|
42
39
|
`--entraGroupNames [entraGroupNames]`
|
|
43
|
-
: The name of the Entra group to add as a member. If multiple groups need to be added, they have to be comma-separated. Specify either `userIds`, `userNames`, `emails`, `
|
|
44
|
-
|
|
45
|
-
`--aadGroupNames [aadGroupNames]`
|
|
46
|
-
: (deprecated. Use `entraGroupNames` instead) The name of the Microsoft Entra group to add as a member. If multiple groups need to be added, they have to be comma-separated. Specify either `userIds`, `userNames`, `emails`, `aadGroupIds`, `entraGroupIds`, `aadGroupNames`, or `entraGroupNames`.
|
|
40
|
+
: The name of the Entra group to add as a member. If multiple groups need to be added, they have to be comma-separated. Specify either `userIds`, `userNames`, `emails`, `entraGroupIds` or `entraGroupNames`.
|
|
47
41
|
```
|
|
48
42
|
|
|
49
43
|
<Global />
|
|
50
44
|
|
|
51
45
|
## Remarks
|
|
52
46
|
|
|
53
|
-
For the `userIds`, `userNames`, `emails`, `
|
|
47
|
+
For the `userIds`, `userNames`, `emails`, `entraGroupIds`, or `entraGroupNames` options you can specify multiple values by separating them with a comma. If one of the specified entries is not valid, the command will fail with an error message showing the list of invalid values.
|
|
54
48
|
|
|
55
49
|
## Examples
|
|
56
50
|
|
|
@@ -63,7 +57,7 @@ m365 spo group member add --webUrl https://contoso.sharepoint.com/sites/SiteA --
|
|
|
63
57
|
Add multiple users with the userNames parameter to a SharePoint group with the groupId parameter.
|
|
64
58
|
|
|
65
59
|
```sh
|
|
66
|
-
m365 spo group member add --webUrl https://contoso.sharepoint.com/sites/SiteA --groupId 5 --userNames "Alex.Wilber@contoso.com,
|
|
60
|
+
m365 spo group member add --webUrl https://contoso.sharepoint.com/sites/SiteA --groupId 5 --userNames "Alex.Wilber@contoso.com,Adele.Vance@contoso.com"
|
|
67
61
|
```
|
|
68
62
|
|
|
69
63
|
Add a user with the emails parameter to a SharePoint group with the groupName parameter.
|
|
@@ -75,7 +69,7 @@ m365 spo group member add --webUrl https://contoso.sharepoint.com/sites/SiteA --
|
|
|
75
69
|
Add multiple users with the emails parameter to a SharePoint group with the groupName parameter.
|
|
76
70
|
|
|
77
71
|
```sh
|
|
78
|
-
m365 spo group member add --webUrl https://contoso.sharepoint.com/sites/SiteA --groupName "Contoso Site Owners" --emails "Alex.Wilber@contoso.com,
|
|
72
|
+
m365 spo group member add --webUrl https://contoso.sharepoint.com/sites/SiteA --groupName "Contoso Site Owners" --emails "Alex.Wilber@contoso.com,Adele.Vance@contoso.com"
|
|
79
73
|
```
|
|
80
74
|
|
|
81
75
|
Add a user with the userIds parameter to a SharePoint group with the groupId parameter.
|
|
@@ -23,25 +23,19 @@ m365 spo group member remove [options]
|
|
|
23
23
|
: Name of the SharePoint group from which user has to be removed. Specify either `groupName` or `groupId`, but not both.
|
|
24
24
|
|
|
25
25
|
`--userName [userName]`
|
|
26
|
-
: The UPN (user principal name, eg. megan.bowen@contoso.com) of the user that needs to be removed. Specify either `userName`, `email`, `userId`, `
|
|
26
|
+
: The UPN (user principal name, eg. megan.bowen@contoso.com) of the user that needs to be removed. Specify either `userName`, `email`, `userId`, `entraGroupId` or `entraGroupName`.
|
|
27
27
|
|
|
28
28
|
`--email [email]`
|
|
29
|
-
: The email of the user to remove as a member. Specify either `userName`, `email`, `userId`, `
|
|
29
|
+
: The email of the user to remove as a member. Specify either `userName`, `email`, `userId`, `entraGroupId` or `entraGroupName`.
|
|
30
30
|
|
|
31
31
|
`--userId [userId]`
|
|
32
|
-
: The user Id (Id of the site user, eg. 14) of the user to remove as a member. Specify either `userName`, `email`, `userId`, `
|
|
32
|
+
: The user Id (Id of the site user, eg. 14) of the user to remove as a member. Specify either `userName`, `email`, `userId`, `entraGroupId` or `entraGroupName`.
|
|
33
33
|
|
|
34
34
|
`--entraGroupId [entraGroupId]`
|
|
35
|
-
: The object Id of the Entra group to remove as a member. Specify either `userName`, `email`, `userId`, `
|
|
36
|
-
|
|
37
|
-
`--aadGroupId [aadGroupId]`
|
|
38
|
-
: (deprecated. Use `entraGroupId` instead) The object ID of the Microsoft Entra group to remove as a member. Specify either `userName`, `email`, `userId`, `aadGroupId`, `entraGroupId`, `aadGroupName`, or `entraGroupName`.
|
|
35
|
+
: The object Id of the Entra group to remove as a member. Specify either `userName`, `email`, `userId`, `entraGroupId`, or `entraGroupName`.
|
|
39
36
|
|
|
40
37
|
`--entraGroupName [entraGroupName]`
|
|
41
|
-
: The name of the Entra group to remove as a member. Specify either `userName`, `email`, `userId`, `
|
|
42
|
-
|
|
43
|
-
`--aadGroupName [aadGroupName]`
|
|
44
|
-
: (deprecated. Use `entraGroupName` instead) The name of the Microsoft Entra group to remove as a member. Specify either `userName`, `email`, `userId`, `aadGroupId`, `entraGroupId`, `aadGroupName`, or `entraGroupName`.
|
|
38
|
+
: The name of the Entra group to remove as a member. Specify either `userName`, `email`, `userId`, `entraGroupId`, or `entraGroupName`.
|
|
45
39
|
```
|
|
46
40
|
|
|
47
41
|
<Global />
|
|
@@ -19,13 +19,10 @@ m365 spo user ensure [options]
|
|
|
19
19
|
: Absolute URL of the site.
|
|
20
20
|
|
|
21
21
|
`--entraId [--entraId]`
|
|
22
|
-
: Id of the user in Entra. Specify either `
|
|
23
|
-
|
|
24
|
-
`--aadId [--aadId]`
|
|
25
|
-
: (deprecated. Use `entraId` instead) Id of the user in Microsoft Entra. Specify either `aadId`, `entraId`, or `userName`.
|
|
22
|
+
: Id of the user in Entra. Specify either `entraId` or `userName`.
|
|
26
23
|
|
|
27
24
|
`--userName [userName]`
|
|
28
|
-
: User's UPN (user principal name, e.g. john@contoso.com). Specify either `
|
|
25
|
+
: User's UPN (user principal name, e.g. john@contoso.com). Specify either `entraId` or `userName`.
|
|
29
26
|
```
|
|
30
27
|
|
|
31
28
|
<Global />
|
package/package.json
CHANGED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
const prefix = 'aad';
|
|
2
|
-
export default {
|
|
3
|
-
ADMINISTRATIVEUNIT_ADD: `${prefix} administrativeunit add`,
|
|
4
|
-
ADMINISTRATIVEUNIT_GET: `${prefix} administrativeunit get`,
|
|
5
|
-
ADMINISTRATIVEUNIT_LIST: `${prefix} administrativeunit list`,
|
|
6
|
-
ADMINISTRATIVEUNIT_REMOVE: `${prefix} administrativeunit remove`,
|
|
7
|
-
ADMINISTRATIVEUNIT_MEMBER_ADD: `${prefix} administrativeunit member add`,
|
|
8
|
-
ADMINISTRATIVEUNIT_MEMBER_GET: `${prefix} administrativeunit member get`,
|
|
9
|
-
ADMINISTRATIVEUNIT_MEMBER_LIST: `${prefix} administrativeunit member list`,
|
|
10
|
-
ADMINISTRATIVEUNIT_MEMBER_REMOVE: `${prefix} administrativeunit member remove`,
|
|
11
|
-
ADMINISTRATIVEUNIT_ROLEASSIGNMENT_ADD: `${prefix} administrativeunit roleassignment add`,
|
|
12
|
-
APP_ADD: `${prefix} app add`,
|
|
13
|
-
APP_GET: `${prefix} app get`,
|
|
14
|
-
APP_LIST: `${prefix} app list`,
|
|
15
|
-
APP_REMOVE: `${prefix} app remove`,
|
|
16
|
-
APP_SET: `${prefix} app set`,
|
|
17
|
-
APP_PERMISSION_ADD: `${prefix} app permission add`,
|
|
18
|
-
APP_ROLE_ADD: `${prefix} app role add`,
|
|
19
|
-
APP_ROLE_LIST: `${prefix} app role list`,
|
|
20
|
-
APP_ROLE_REMOVE: `${prefix} app role remove`,
|
|
21
|
-
APPROLEASSIGNMENT_ADD: `${prefix} approleassignment add`,
|
|
22
|
-
APPROLEASSIGNMENT_LIST: `${prefix} approleassignment list`,
|
|
23
|
-
APPROLEASSIGNMENT_REMOVE: `${prefix} approleassignment remove`,
|
|
24
|
-
GROUP_ADD: `${prefix} group add`,
|
|
25
|
-
GROUP_GET: `${prefix} group get`,
|
|
26
|
-
GROUP_LIST: `${prefix} group list`,
|
|
27
|
-
GROUP_REMOVE: `${prefix} group remove`,
|
|
28
|
-
GROUP_USER_LIST: `${prefix} group user list`,
|
|
29
|
-
GROUPSETTING_ADD: `${prefix} groupsetting add`,
|
|
30
|
-
GROUPSETTING_GET: `${prefix} groupsetting get`,
|
|
31
|
-
GROUPSETTING_LIST: `${prefix} groupsetting list`,
|
|
32
|
-
GROUPSETTING_REMOVE: `${prefix} groupsetting remove`,
|
|
33
|
-
GROUPSETTING_SET: `${prefix} groupsetting set`,
|
|
34
|
-
GROUPSETTINGTEMPLATE_GET: `${prefix} groupsettingtemplate get`,
|
|
35
|
-
GROUPSETTINGTEMPLATE_LIST: `${prefix} groupsettingtemplate list`,
|
|
36
|
-
LICENSE_LIST: `${prefix} license list`,
|
|
37
|
-
M365GROUP_ADD: `${prefix} m365group add`,
|
|
38
|
-
M365GROUP_GET: `${prefix} m365group get`,
|
|
39
|
-
M365GROUP_LIST: `${prefix} m365group list`,
|
|
40
|
-
M365GROUP_CONVERSATION_LIST: `${prefix} m365group conversation list`,
|
|
41
|
-
M365GROUP_CONVERSATION_POST_LIST: `${prefix} m365group conversation post list`,
|
|
42
|
-
M365GROUP_RECYCLEBINITEM_CLEAR: `${prefix} m365group recyclebinitem clear`,
|
|
43
|
-
M365GROUP_RECYCLEBINITEM_LIST: `${prefix} m365group recyclebinitem list`,
|
|
44
|
-
M365GROUP_RECYCLEBINITEM_REMOVE: `${prefix} m365group recyclebinitem remove`,
|
|
45
|
-
M365GROUP_RECYCLEBINITEM_RESTORE: `${prefix} m365group recyclebinitem restore`,
|
|
46
|
-
M365GROUP_SET: `${prefix} m365group set`,
|
|
47
|
-
M365GROUP_TEAMIFY: `${prefix} m365group teamify`,
|
|
48
|
-
M365GROUP_REMOVE: `${prefix} m365group remove`,
|
|
49
|
-
M365GROUP_RENEW: `${prefix} m365group renew`,
|
|
50
|
-
M365GROUP_REPORT_ACTIVITYCOUNTS: `${prefix} m365group report activitycounts`,
|
|
51
|
-
M365GROUP_REPORT_ACTIVITYDETAIL: `${prefix} m365group report activitydetail`,
|
|
52
|
-
M365GROUP_REPORT_ACTIVITYFILECOUNTS: `${prefix} m365group report activityfilecounts`,
|
|
53
|
-
M365GROUP_REPORT_ACTIVITYGROUPCOUNTS: `${prefix} m365group report activitygroupcounts`,
|
|
54
|
-
M365GROUP_REPORT_ACTIVITYSTORAGE: `${prefix} m365group report activitystorage`,
|
|
55
|
-
M365GROUP_USER_ADD: `${prefix} m365group user add`,
|
|
56
|
-
M365GROUP_USER_LIST: `${prefix} m365group user list`,
|
|
57
|
-
M365GROUP_USER_REMOVE: `${prefix} m365group user remove`,
|
|
58
|
-
M365GROUP_USER_SET: `${prefix} m365group user set`,
|
|
59
|
-
OAUTH2GRANT_ADD: `${prefix} oauth2grant add`,
|
|
60
|
-
OAUTH2GRANT_LIST: `${prefix} oauth2grant list`,
|
|
61
|
-
OAUTH2GRANT_REMOVE: `${prefix} oauth2grant remove`,
|
|
62
|
-
OAUTH2GRANT_SET: `${prefix} oauth2grant set`,
|
|
63
|
-
POLICY_LIST: `${prefix} policy list`,
|
|
64
|
-
SITECLASSIFICATION_DISABLE: `${prefix} siteclassification disable`,
|
|
65
|
-
SITECLASSIFICATION_ENABLE: `${prefix} siteclassification enable`,
|
|
66
|
-
SITECLASSIFICATION_GET: `${prefix} siteclassification get`,
|
|
67
|
-
SITECLASSIFICATION_SET: `${prefix} siteclassification set`,
|
|
68
|
-
SP_ADD: `${prefix} sp add`,
|
|
69
|
-
SP_GET: `${prefix} sp get`,
|
|
70
|
-
SP_LIST: `${prefix} sp list`,
|
|
71
|
-
USER_ADD: `${prefix} user add`,
|
|
72
|
-
USER_GET: `${prefix} user get`,
|
|
73
|
-
USER_GUEST_ADD: `${prefix} user guest add`,
|
|
74
|
-
USER_HIBP: `${prefix} user hibp`,
|
|
75
|
-
USER_LICENSE_ADD: `${prefix} user license add`,
|
|
76
|
-
USER_LICENSE_LIST: `${prefix} user license list`,
|
|
77
|
-
USER_LICENSE_REMOVE: `${prefix} user license remove`,
|
|
78
|
-
USER_LIST: `${prefix} user list`,
|
|
79
|
-
USER_PASSWORD_VALIDATE: `${prefix} user password validate`,
|
|
80
|
-
USER_RECYCLEBINITEM_CLEAR: `${prefix} user recyclebinitem clear`,
|
|
81
|
-
USER_RECYCLEBINITEM_LIST: `${prefix} user recyclebinitem list`,
|
|
82
|
-
USER_RECYCLEBINITEM_REMOVE: `${prefix} user recyclebinitem remove`,
|
|
83
|
-
USER_REGISTRATIONDETAILS_LIST: `${prefix} user registrationdetails list`,
|
|
84
|
-
USER_REMOVE: `${prefix} user remove`,
|
|
85
|
-
USER_RECYCLEBINITEM_RESTORE: `${prefix} user recyclebinitem restore`,
|
|
86
|
-
USER_SET: `${prefix} user set`,
|
|
87
|
-
USER_SIGNIN_LIST: `${prefix} user signin list`
|
|
88
|
-
};
|
|
89
|
-
//# sourceMappingURL=aadCommands.js.map
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
-
|
|
3
|
-
# entra group user add
|
|
4
|
-
|
|
5
|
-
Adds a user to a Microsoft Entra ID group
|
|
6
|
-
|
|
7
|
-
## Usage
|
|
8
|
-
|
|
9
|
-
```sh
|
|
10
|
-
m365 entra group user add [options]
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## Options
|
|
14
|
-
|
|
15
|
-
```md definition-list
|
|
16
|
-
`-i, --groupId [groupId]`
|
|
17
|
-
: The ID of the Microsoft Entra group. Specify `groupId` or `groupDisplayName` but not both.
|
|
18
|
-
|
|
19
|
-
`-n, --groupDisplayName [groupDisplayName]`
|
|
20
|
-
: The display name of the Microsoft Entra group. Specify `groupId` or `groupDisplayName` but not both.
|
|
21
|
-
|
|
22
|
-
`--ids [ids]`
|
|
23
|
-
: Microsoft Entra IDs of users. You can also pass a comma-separated list of IDs. Specify either `ids` or `userNames` but not both.
|
|
24
|
-
|
|
25
|
-
`--userNames [userNames]`
|
|
26
|
-
: The user principal names of users. You can also pass a comma-separated list of UPNs. Specify either `ids` or `userNames` but not both.
|
|
27
|
-
|
|
28
|
-
`-r, --role <role>`
|
|
29
|
-
: The role to be assigned to the new users. Valid values: `Owner`, `Member`.
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
<Global />
|
|
33
|
-
|
|
34
|
-
## Examples
|
|
35
|
-
|
|
36
|
-
Add a single user specified by ID as a member to a group specified by display name.
|
|
37
|
-
|
|
38
|
-
```sh
|
|
39
|
-
m365 entra group user add --groupDisplayName Developers --ids 098b9f52-f48c-4401-819f-29c33794c3f5 --role Member
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
Add multiple users specified by ID as members to a group specified by ID.
|
|
43
|
-
|
|
44
|
-
```sh
|
|
45
|
-
m365 entra group user add --groupId a03c0c35-ef9a-419b-8cab-f89e0a8d2d2a --ids "098b9f52-f48c-4401-819f-29c33794c3f5,f1e06e31-3abf-4746-83c2-1513d71f38b8" --role Member
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
Add a single user specified by UPN as an owner to a group specified by display name.
|
|
49
|
-
|
|
50
|
-
```sh
|
|
51
|
-
m365 entra group user add --groupDisplayName Developers --userNames john.doe@contoso.com --role Owner
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
Adds multiple users specified by UPN as owners to a group specified by ID.
|
|
55
|
-
|
|
56
|
-
```sh
|
|
57
|
-
m365 entra group user add --groupId a03c0c35-ef9a-419b-8cab-f89e0a8d2d2a --userNames "john.doe@contoso.com,adele.vance@contoso.com" --role Owner
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
## Response
|
|
61
|
-
|
|
62
|
-
The command won't return a response on success.
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
-
|
|
3
|
-
# entra group user set
|
|
4
|
-
|
|
5
|
-
Updates role of users in a Microsoft Entra ID group
|
|
6
|
-
|
|
7
|
-
## Usage
|
|
8
|
-
|
|
9
|
-
```sh
|
|
10
|
-
m365 entra group user set [options]
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## Options
|
|
14
|
-
|
|
15
|
-
```md definition-list
|
|
16
|
-
`-i, --groupId [groupId]`
|
|
17
|
-
: The ID of the Entra ID group. Specify `groupId` or `groupDisplayName` but not both.
|
|
18
|
-
|
|
19
|
-
`-n, --groupDisplayName [groupDisplayName]`
|
|
20
|
-
: The display name of the Entra ID group. Specify `groupId` or `groupDisplayName` but not both.
|
|
21
|
-
|
|
22
|
-
`--ids [ids]`
|
|
23
|
-
: Comma-separated list of user IDs. Specify either `ids` or `userNames` but not both.
|
|
24
|
-
|
|
25
|
-
`--userNames [userNames]`
|
|
26
|
-
: The user principal names of users. You can also pass a comma-separated list of UPNs. Specify either `ids` or `userNames` but not both.
|
|
27
|
-
|
|
28
|
-
`-r, --role <role>`
|
|
29
|
-
: The new role to be assigned to the users. Valid values: `Owner`, `Member`.
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
<Global />
|
|
33
|
-
|
|
34
|
-
## Examples
|
|
35
|
-
|
|
36
|
-
Update a single user specified by ID to a member of a group specified by display name
|
|
37
|
-
|
|
38
|
-
```sh
|
|
39
|
-
m365 entra group user set --groupDisplayName Developers --ids 098b9f52-f48c-4401-819f-29c33794c3f5 --role Member
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
Update multiple users specified by ID to members of a group specified by ID
|
|
43
|
-
|
|
44
|
-
```sh
|
|
45
|
-
m365 entra group user set --groupId a03c0c35-ef9a-419b-8cab-f89e0a8d2d2a --ids "098b9f52-f48c-4401-819f-29c33794c3f5,f1e06e31-3abf-4746-83c2-1513d71f38b8" --role Member
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
Update a single user specified by UPN to an owner of a group specified by display name
|
|
49
|
-
|
|
50
|
-
```sh
|
|
51
|
-
m365 entra group user set --groupDisplayName Developers --userNames john.doe@contoso.com --role Owner
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
Update multiple users specified by UPN to owners of a group specified by ID
|
|
55
|
-
|
|
56
|
-
```sh
|
|
57
|
-
m365 entra group user set --groupId a03c0c35-ef9a-419b-8cab-f89e0a8d2d2a --userNames "john.doe@contoso.com,adele.vance@contoso.com" --role Owner
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
## Response
|
|
61
|
-
|
|
62
|
-
The command won't return a response on success.
|