@pnp/cli-microsoft365 10.0.0-beta.d126736 → 10.0.0-beta.da65889

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,62 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+
3
+ # entra group member set
4
+
5
+ Updates role of members in a Microsoft Entra ID group
6
+
7
+ ## Usage
8
+
9
+ ```sh
10
+ m365 entra group member 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 members. Valid values: `Owner`, `Member`.
30
+ ```
31
+
32
+ <Global />
33
+
34
+ ## Examples
35
+
36
+ Update a single member specified by ID to a member of a group specified by display name
37
+
38
+ ```sh
39
+ m365 entra group member set --groupDisplayName Developers --ids 098b9f52-f48c-4401-819f-29c33794c3f5 --role Member
40
+ ```
41
+
42
+ Update multiple members specified by ID to members of a group specified by ID
43
+
44
+ ```sh
45
+ m365 entra group member 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 member specified by UPN to an owner of a group specified by display name
49
+
50
+ ```sh
51
+ m365 entra group member set --groupDisplayName Developers --userNames john.doe@contoso.com --role Owner
52
+ ```
53
+
54
+ Update multiple members specified by UPN to owners of a group specified by ID
55
+
56
+ ```sh
57
+ m365 entra group member 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.
@@ -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>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnp/cli-microsoft365",
3
- "version": "10.0.0-beta.d126736",
3
+ "version": "10.0.0-beta.da65889",
4
4
  "description": "Manage Microsoft 365 and SharePoint Framework projects on any platform",
5
5
  "license": "MIT",
6
6
  "main": "./dist/api.js",
@@ -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.