@pnp/cli-microsoft365 10.0.0-beta.58f28f9 → 10.0.0-beta.66db729

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.
Files changed (25) hide show
  1. package/allCommands.json +1 -1
  2. package/allCommandsFull.json +1 -1
  3. package/dist/m365/entra/commands/group/{group-user-add.js → group-member-add.js} +18 -18
  4. package/dist/m365/entra/commands/group/{group-user-list.js → group-member-list.js} +17 -17
  5. package/dist/m365/entra/commands/group/{group-user-set.js → group-member-set.js} +19 -19
  6. package/dist/m365/entra/commands.js +3 -3
  7. package/dist/m365/spfx/commands/project/project-doctor/{doctor-1.20.0-rc.1.js → doctor-1.20.0.js} +4 -2
  8. package/dist/m365/spfx/commands/project/project-doctor/rules/FN002021_DEVDEP_rushstack_eslint_config.js +10 -0
  9. package/dist/m365/spfx/commands/project/project-doctor.js +1 -1
  10. package/dist/m365/spfx/commands/project/project-upgrade/{upgrade-1.20.0-rc.1.js → upgrade-1.20.0.js} +28 -26
  11. package/dist/m365/spfx/commands/project/project-upgrade.js +13 -15
  12. package/dist/m365/spfx/commands/spfx-doctor.js +1 -1
  13. package/dist/m365/spo/commands/page/page-remove.js +37 -16
  14. package/dist/m365/spo/commands/site/site-sharingpermission-set.js +68 -0
  15. package/dist/m365/spo/commands.js +1 -0
  16. package/dist/utils/urlUtil.js +8 -0
  17. package/docs/docs/cmd/entra/group/group-member-add.mdx +62 -0
  18. package/docs/docs/cmd/entra/group/{group-user-list.mdx → group-member-list.mdx} +14 -14
  19. package/docs/docs/cmd/entra/group/group-member-set.mdx +62 -0
  20. package/docs/docs/cmd/spfx/project/project-upgrade.mdx +1 -1
  21. package/docs/docs/cmd/spo/page/page-remove.mdx +30 -12
  22. package/docs/docs/cmd/spo/site/site-sharingpermission-set.mdx +58 -0
  23. package/package.json +1 -1
  24. package/docs/docs/cmd/entra/group/group-user-add.mdx +0 -62
  25. package/docs/docs/cmd/entra/group/group-user-set.mdx +0 -62
@@ -0,0 +1,68 @@
1
+ import SpoCommand from '../../../base/SpoCommand.js';
2
+ import { globalOptionsZod } from '../../../../Command.js';
3
+ import { z } from 'zod';
4
+ import { zod } from '../../../../utils/zod.js';
5
+ import commands from '../../commands.js';
6
+ import { validation } from '../../../../utils/validation.js';
7
+ import request from '../../../../request.js';
8
+ const options = globalOptionsZod
9
+ .extend({
10
+ siteUrl: zod.alias('u', z.string()
11
+ .refine(url => validation.isValidSharePointUrl(url) === true, url => ({
12
+ message: `'${url}' is not a valid SharePoint Online site URL.`
13
+ }))),
14
+ capability: z.enum(['full', 'limited', 'ownersOnly'])
15
+ })
16
+ .strict();
17
+ class SpoSiteSharingPermissionSetCommand extends SpoCommand {
18
+ get name() {
19
+ return commands.SITE_SHARINGPERMISSION_SET;
20
+ }
21
+ get description() {
22
+ return 'Controls how a site and its components can be shared';
23
+ }
24
+ get schema() {
25
+ return options;
26
+ }
27
+ async commandAction(logger, args) {
28
+ try {
29
+ if (this.verbose) {
30
+ await logger.logToStderr(`Updating sharing permissions for site '${args.options.siteUrl}'...`);
31
+ }
32
+ const { capability } = args.options;
33
+ if (this.verbose) {
34
+ await logger.logToStderr(`Updating site sharing permissions...`);
35
+ }
36
+ const requestOptionsWeb = {
37
+ url: `${args.options.siteUrl}/_api/Web`,
38
+ headers: {
39
+ accept: 'application/json;odata=nometadata'
40
+ },
41
+ responseType: 'json',
42
+ data: {
43
+ MembersCanShare: capability === 'full' || capability === 'limited'
44
+ }
45
+ };
46
+ await request.patch(requestOptionsWeb);
47
+ if (this.verbose) {
48
+ await logger.logToStderr(`Updating associated member group sharing permissions...`);
49
+ }
50
+ const requestOptionsMemberGroup = {
51
+ url: `${args.options.siteUrl}/_api/Web/AssociatedMemberGroup`,
52
+ headers: {
53
+ accept: 'application/json;odata=nometadata'
54
+ },
55
+ responseType: 'json',
56
+ data: {
57
+ AllowMembersEditMembership: capability === 'full'
58
+ }
59
+ };
60
+ await request.patch(requestOptionsMemberGroup);
61
+ }
62
+ catch (err) {
63
+ this.handleRejectedODataJsonPromise(err);
64
+ }
65
+ }
66
+ }
67
+ export default new SpoSiteSharingPermissionSetCommand();
68
+ //# sourceMappingURL=site-sharingpermission-set.js.map
@@ -271,6 +271,7 @@ export default {
271
271
  SITE_RECYCLEBINITEM_RESTORE: `${prefix} site recyclebinitem restore`,
272
272
  SITE_REMOVE: `${prefix} site remove`,
273
273
  SITE_SET: `${prefix} site set`,
274
+ SITE_SHARINGPERMISSION_SET: `${prefix} site sharingpermission set`,
274
275
  SITE_CHROME_SET: `${prefix} site chrome set`,
275
276
  SITEDESIGN_ADD: `${prefix} sitedesign add`,
276
277
  SITEDESIGN_APPLY: `${prefix} sitedesign apply`,
@@ -198,6 +198,14 @@ export const urlUtil = {
198
198
  return rootUrl.origin;
199
199
  }
200
200
  },
201
+ /**
202
+ * Removes leading slashes from the URL.
203
+ * @param url The URL to process.
204
+ * @returns The URL without leading slashes.
205
+ */
206
+ removeLeadingSlashes(url) {
207
+ return url.replace(/^\/+/, '');
208
+ },
201
209
  /**
202
210
  * Removes trailing slashes from the URL.
203
211
  * @param url The URL to process.
@@ -0,0 +1,62 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+
3
+ # entra group member add
4
+
5
+ Adds a member to a Microsoft Entra ID group
6
+
7
+ ## Usage
8
+
9
+ ```sh
10
+ m365 entra group member 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 member specified by ID as a member to a group specified by display name.
37
+
38
+ ```sh
39
+ m365 entra group member add --groupDisplayName Developers --ids 098b9f52-f48c-4401-819f-29c33794c3f5 --role Member
40
+ ```
41
+
42
+ Add multiple members specified by ID as members to a group specified by ID.
43
+
44
+ ```sh
45
+ m365 entra group member 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 member specified by UPN as an owner to a group specified by display name.
49
+
50
+ ```sh
51
+ m365 entra group member add --groupDisplayName Developers --userNames john.doe@contoso.com --role Owner
52
+ ```
53
+
54
+ Adds multiple members specified by UPN as owners to a group specified by ID.
55
+
56
+ ```sh
57
+ m365 entra group member 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.
@@ -2,14 +2,14 @@ import Global from '/docs/cmd/_global.mdx';
2
2
  import Tabs from '@theme/Tabs';
3
3
  import TabItem from '@theme/TabItem';
4
4
 
5
- # entra group user list
5
+ # entra group member list
6
6
 
7
- Lists users of a specific Entra group
7
+ Lists members of a specific Entra group
8
8
 
9
9
  ## Usage
10
10
 
11
11
  ```sh
12
- m365 entra group user list [options]
12
+ m365 entra group member list [options]
13
13
  ```
14
14
 
15
15
  ## Alias
@@ -28,13 +28,13 @@ m365 aad group user list [options]
28
28
  : The display name of the Entra group. Specify `groupId` or `groupName` but not both.
29
29
 
30
30
  `-r, --role [role]`
31
- : Filter the results to only users with the given role: `Owner`, `Member`.
31
+ : Filter the results to only members with the given role: `Owner`, `Member`.
32
32
 
33
33
  `-p, --properties [properties]`
34
34
  : Comma-separated list of properties to retrieve.
35
35
 
36
36
  `-f, --filter [filter]`
37
- : OData filter to use to query the list of users with.
37
+ : OData filter to use to query the list of members with.
38
38
  ```
39
39
 
40
40
  <Global />
@@ -45,34 +45,34 @@ When the `properties` option includes values with a `/`, for example: `manager/d
45
45
 
46
46
  ## Examples
47
47
 
48
- List all group users from a group specified by ID.
48
+ List all group members from a group specified by ID.
49
49
 
50
50
  ```sh
51
- m365 entra group user list --groupId 03cba9da-3974-46c1-afaf-79caa2e45bbe
51
+ m365 entra group member list --groupId 03cba9da-3974-46c1-afaf-79caa2e45bbe
52
52
  ```
53
53
 
54
54
  List all owners from a group specified by display name.
55
55
 
56
56
  ```sh
57
- m365 entra group user list --groupName Developers --role Owner
57
+ m365 entra group member list --groupName Developers --role Owner
58
58
  ```
59
59
 
60
- List all group users from a group specified by name. For each one return the display name, e-mail address, and manager display name.
60
+ List all group members from a group specified by name. For each one return the display name, e-mail address, and manager display name.
61
61
 
62
62
  ```sh
63
- m365 entra group user list --groupName Developers --properties "displayName,mail,manager/displayName"
63
+ m365 entra group member list --groupName Developers --properties "displayName,mail,manager/displayName"
64
64
  ```
65
65
 
66
- List all group users from a group specified by name. For each one return the display name, e-mail address, and manager information.
66
+ List all group members from a group specified by name. For each one return the display name, e-mail address, and manager information.
67
67
 
68
68
  ```sh
69
- m365 entra group user list --groupName Developers --properties "displayName,mail,manager/*"
69
+ m365 entra group member list --groupName Developers --properties "displayName,mail,manager/*"
70
70
  ```
71
71
 
72
- List all group members that are guest users.
72
+ List all group members that are guest members.
73
73
 
74
74
  ```sh
75
- m365 entra group user list --groupName Developers --filter "userType eq 'Guest'"
75
+ m365 entra group member list --groupName Developers --filter "userType eq 'Guest'"
76
76
  ```
77
77
 
78
78
  ## Response
@@ -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.
@@ -35,7 +35,7 @@ m365 spfx project upgrade [options]
35
35
 
36
36
  ## Remarks
37
37
 
38
- The `spfx project upgrade` command helps you upgrade your SharePoint Framework project to the specified version. If no version is specified, the command will upgrade to the latest version of the SharePoint Framework it supports (v1.19.0).
38
+ The `spfx project upgrade` command helps you upgrade your SharePoint Framework project to the specified version. If no version is specified, the command will upgrade to the latest version of the SharePoint Framework it supports (v1.20.0).
39
39
 
40
40
  This command doesn't change your project files. Instead, it gives you a report with all steps necessary to upgrade your project to the specified version of the SharePoint Framework. Changing project files is error-prone, especially when it comes to updating your solution's code. This is why at this moment, this command produces a report that you can use yourself to perform the necessary updates and verify that everything is working as expected.
41
41
 
@@ -13,36 +13,54 @@ m365 spo page remove [options]
13
13
  ## Options
14
14
 
15
15
  ```md definition-list
16
+ `-u, --webUrl <webUrl>`
17
+ : URL of the site where the page is located.
18
+
16
19
  `-n, --name <name>`
17
- : Name of the page to remove.
20
+ : Name of the page.
18
21
 
19
- `-u, --webUrl <webUrl>`
20
- : URL of the site from which the page should be removed.
22
+ `--recycle`
23
+ : Send the page to the recycle bin instead of permanently deleting it.
24
+
25
+ `--bypassSharedLock`
26
+ : Remove the page even if it is locked for shared use.
21
27
 
22
28
  `-f, --force`
23
- : Do not prompt for confirmation before removing the page.
29
+ : Do not prompt for confirmation.
24
30
  ```
25
31
 
26
32
  <Global />
27
33
 
28
- ## Remarks
29
-
30
- If you try to remove a page with that does not exist, you will get a `The file does not exist` error.
31
-
32
- If you set the `-f, --force` flag, you will not be prompted for confirmation before the page is actually removed.
33
-
34
34
  ## Examples
35
35
 
36
36
  Remove a modern page
37
37
 
38
38
  ```sh
39
- m365 spo page remove --name page.aspx --webUrl https://contoso.sharepoint.com/sites/a-team
39
+ m365 spo page remove --name HR.aspx --webUrl https://contoso.sharepoint.com/sites/Marketing
40
40
  ```
41
41
 
42
42
  Remove a modern page without a confirmation prompt
43
43
 
44
44
  ```sh
45
- m365 spo page remove --name page.aspx --webUrl https://contoso.sharepoint.com/sites/a-team --force
45
+ m365 spo page remove --name HR.aspx --webUrl https://contoso.sharepoint.com/sites/Marketing --force
46
+ ```
47
+
48
+ Send a page to the recycle bin
49
+
50
+ ```sh
51
+ m365 spo page remove --name HR.aspx --webUrl https://contoso.sharepoint.com/sites/Marketing --recycle
52
+ ```
53
+
54
+ Remove a page that is locked
55
+
56
+ ```sh
57
+ m365 spo page remove --name HR.aspx --webUrl https://contoso.sharepoint.com/sites/Marketing --bypassSharedLock
58
+ ```
59
+
60
+ Remove a page that is located in a subfolder
61
+
62
+ ```sh
63
+ m365 spo page remove --name /Departments/People/HR.aspx --webUrl https://contoso.sharepoint.com/sites/Marketing
46
64
  ```
47
65
 
48
66
  ## Response
@@ -0,0 +1,58 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+
3
+ # spo site sharingpermission set
4
+
5
+ Controls how a site and its components can be shared
6
+
7
+ ## Usage
8
+
9
+ ```sh
10
+ m365 spo site sharingpermission set [options]
11
+ ```
12
+
13
+ ## Options
14
+
15
+ ```md definition-list
16
+ `-u, --url <url>`
17
+ : URL of the site.
18
+
19
+ `--capability <capability>`
20
+ : Define how the site is shared. Possible values: `full`, `limited`, `ownersOnly`.
21
+ ```
22
+
23
+ <Global />
24
+
25
+ ## Remarks
26
+
27
+ When specifying `capability`, consider the following:
28
+ - `full`: Site owners and members can share files, folders, and the site. People with Edit permissions can share files and folders.
29
+ - `limited`: Site owners and members, and people with Edit permissions can share files and folders, but only site owners can share the site.
30
+ - `ownersOnly`: Only site owners can share files, folders, and the site.
31
+
32
+ ## Examples
33
+
34
+ Update the sharing permissions for a site so only owners can share files and the site
35
+
36
+ ```sh
37
+ m365 spo site sharingpermission set --siteUrl https://siteaddress.com/sites/sitename --capability ownersOnly
38
+ ```
39
+
40
+ Update the sharing permissions for a site where so both owners and members can share files and the site
41
+
42
+ ```sh
43
+ m365 spo site sharingpermission set --siteUrl https://siteaddress.com/sites/sitename --capability full
44
+ ```
45
+
46
+ Update the sharing permissions for a site where so owners can share the site, but members can only share files
47
+
48
+ ```sh
49
+ m365 spo site sharingpermission set --siteUrl https://siteaddress.com/sites/sitename --capability full
50
+ ```
51
+
52
+ ## Response
53
+
54
+ The command won't return a response on success.
55
+
56
+ ## More information
57
+
58
+ - Sharing a SharePoint site: [https://support.microsoft.com/office/share-a-site-958771a8-d041-4eb8-b51c-afea2eae3658](https://support.microsoft.com/office/share-a-site-958771a8-d041-4eb8-b51c-afea2eae3658)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnp/cli-microsoft365",
3
- "version": "10.0.0-beta.58f28f9",
3
+ "version": "10.0.0-beta.66db729",
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.