@pnp/cli-microsoft365 11.9.0-beta.8c1ee05 → 11.9.0-beta.93bd508

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 (73) hide show
  1. package/.devproxy/api-specs/sharepoint.yaml +82 -0
  2. package/allCommands.json +1 -1
  3. package/allCommandsFull.json +1 -1
  4. package/dist/m365/cli/commands/app/app-reconsent.js +8 -0
  5. package/dist/m365/cli/commands/cli-consent.js +8 -31
  6. package/dist/m365/cli/commands/cli-doctor.js +6 -1
  7. package/dist/m365/cli/commands/cli-issue.js +8 -36
  8. package/dist/m365/cli/commands/completion/completion-clink-update.js +8 -0
  9. package/dist/m365/cli/commands/completion/completion-pwsh-setup.js +8 -16
  10. package/dist/m365/cli/commands/completion/completion-pwsh-update.js +8 -0
  11. package/dist/m365/cli/commands/completion/completion-sh-setup.js +8 -0
  12. package/dist/m365/cli/commands/completion/completion-sh-update.js +8 -0
  13. package/dist/m365/cli/commands/config/config-get.js +9 -32
  14. package/dist/m365/cli/commands/config/config-list.js +8 -0
  15. package/dist/m365/cli/commands/config/config-reset.js +9 -34
  16. package/dist/m365/cli/commands/config/config-set.js +86 -70
  17. package/dist/m365/commands/request.js +26 -60
  18. package/dist/m365/commands/search.js +59 -77
  19. package/dist/m365/commands/setup.js +16 -31
  20. package/dist/m365/commands/version.js +6 -0
  21. package/dist/m365/connection/commands/connection-remove.js +9 -29
  22. package/dist/m365/connection/commands/connection-use.js +8 -26
  23. package/dist/m365/context/commands/context-init.js +6 -0
  24. package/dist/m365/context/commands/option/option-set.js +9 -18
  25. package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-add.js +32 -63
  26. package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-get.js +21 -45
  27. package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-list.js +32 -53
  28. package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-remove.js +34 -74
  29. package/dist/m365/entra/commands/administrativeunit/administrativeunit-roleassignment-add.js +37 -57
  30. package/dist/m365/entra/commands/multitenant/multitenant-get.js +8 -1
  31. package/dist/m365/entra/commands/multitenant/multitenant-remove.js +8 -22
  32. package/dist/m365/entra/commands/multitenant/multitenant-set.js +15 -36
  33. package/dist/m365/entra/commands/oauth2grant/oauth2grant-add.js +10 -31
  34. package/dist/m365/entra/commands/oauth2grant/oauth2grant-list.js +8 -24
  35. package/dist/m365/entra/commands/oauth2grant/oauth2grant-remove.js +9 -17
  36. package/dist/m365/entra/commands/oauth2grant/oauth2grant-set.js +9 -17
  37. package/dist/m365/outlook/commands/calendar/calendar-get.js +1 -1
  38. package/dist/m365/spe/commands/container/container-get.js +54 -26
  39. package/dist/m365/spe/commands/container/container-permission-list.js +43 -4
  40. package/dist/m365/spe/commands/container/container-set.js +77 -0
  41. package/dist/m365/spe/commands.js +1 -0
  42. package/dist/m365/spo/commands/file/file-unarchive.js +83 -0
  43. package/dist/m365/spo/commands/folder/folder-archive.js +89 -0
  44. package/dist/m365/spo/commands.js +2 -0
  45. package/dist/m365/viva/commands/engage/engage-role-member-add.js +79 -0
  46. package/dist/m365/viva/commands.js +1 -0
  47. package/docs/docs/cmd/outlook/calendar/calendar-get.mdx +7 -7
  48. package/docs/docs/cmd/spe/container/container-get.mdx +24 -3
  49. package/docs/docs/cmd/spe/container/container-permission-list.mdx +24 -3
  50. package/docs/docs/cmd/spe/container/container-set.mdx +160 -0
  51. package/docs/docs/cmd/spo/app/app-add.mdx +19 -0
  52. package/docs/docs/cmd/spo/app/app-deploy.mdx +21 -0
  53. package/docs/docs/cmd/spo/app/app-get.mdx +19 -0
  54. package/docs/docs/cmd/spo/app/app-install.mdx +21 -0
  55. package/docs/docs/cmd/spo/app/app-instance-list.mdx +19 -0
  56. package/docs/docs/cmd/spo/app/app-list.mdx +19 -0
  57. package/docs/docs/cmd/spo/app/app-remove.mdx +21 -0
  58. package/docs/docs/cmd/spo/app/app-retract.mdx +21 -0
  59. package/docs/docs/cmd/spo/app/app-teamspackage-download.mdx +21 -0
  60. package/docs/docs/cmd/spo/app/app-uninstall.mdx +21 -0
  61. package/docs/docs/cmd/spo/app/app-upgrade.mdx +21 -0
  62. package/docs/docs/cmd/spo/apppage/apppage-add.mdx +19 -1
  63. package/docs/docs/cmd/spo/apppage/apppage-set.mdx +21 -0
  64. package/docs/docs/cmd/spo/commandset/commandset-add.mdx +19 -0
  65. package/docs/docs/cmd/spo/commandset/commandset-get.mdx +19 -0
  66. package/docs/docs/cmd/spo/commandset/commandset-list.mdx +19 -0
  67. package/docs/docs/cmd/spo/commandset/commandset-remove.mdx +21 -0
  68. package/docs/docs/cmd/spo/commandset/commandset-set.mdx +21 -0
  69. package/docs/docs/cmd/spo/file/file-unarchive.mdx +68 -0
  70. package/docs/docs/cmd/spo/folder/folder-archive.mdx +73 -0
  71. package/docs/docs/cmd/viva/engage/engage-role-member-add.mdx +76 -0
  72. package/npm-shrinkwrap.json +273 -128
  73. package/package.json +18 -18
@@ -1,4 +1,6 @@
1
1
  import Global from '../../_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
2
4
 
3
5
  # spo app retract
4
6
 
@@ -36,6 +38,25 @@ When specifying site collection app catalog, you can specify the URL either with
36
38
 
37
39
  If the app with the specified ID doesn't exist in the app catalog, the command will fail with an error.
38
40
 
41
+ ## Permissions
42
+
43
+ <Tabs>
44
+ <TabItem value="Delegated">
45
+
46
+ | Resource | Permissions |
47
+ |------------|----------------------|
48
+ | SharePoint | AllSites.FullControl |
49
+
50
+ </TabItem>
51
+ <TabItem value="Application">
52
+
53
+ | Resource | Permissions |
54
+ |------------|-----------------------|
55
+ | SharePoint | Sites.FullControl.All |
56
+
57
+ </TabItem>
58
+ </Tabs>
59
+
39
60
  ## Examples
40
61
 
41
62
  Retract the specified app from the tenant app catalog. Try to resolve the URL of the tenant app catalog automatically. Additionally, will prompt for confirmation before actually retracting the app.
@@ -1,4 +1,6 @@
1
1
  import Global from '../../_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
2
4
 
3
5
  # spo app teamspackage download
4
6
 
@@ -39,6 +41,25 @@ If you try to download Teams app package for an SPFx solution that doesn't suppo
39
41
 
40
42
  For maximum performance, specify the URL of the tenant app catalog, the item ID (`appItemId`) of the SPFx package for which you want to download the Teams app package and the name of the file where you want to save the downloaded package to (`fileName`).
41
43
 
44
+ ## Permissions
45
+
46
+ <Tabs>
47
+ <TabItem value="Delegated">
48
+
49
+ | Resource | Permissions |
50
+ |------------|---------------|
51
+ | SharePoint | AllSites.Read |
52
+
53
+ </TabItem>
54
+ <TabItem value="Application">
55
+
56
+ | Resource | Permissions |
57
+ |------------|----------------|
58
+ | SharePoint | Sites.Read.All |
59
+
60
+ </TabItem>
61
+ </Tabs>
62
+
42
63
  ## Examples
43
64
 
44
65
  Downloads the Teams app package for the SPFx solution deployed to the tenant app catalog with the specified ID to a file with .zip extension named after the .sppkg file.
@@ -1,4 +1,6 @@
1
1
  import Global from '../../_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
2
4
 
3
5
  # spo app uninstall
4
6
 
@@ -32,6 +34,25 @@ m365 spo app uninstall [options]
32
34
 
33
35
  If the app with the specified ID doesn't exist in the app catalog, the command will fail with an error.
34
36
 
37
+ ## Permissions
38
+
39
+ <Tabs>
40
+ <TabItem value="Delegated">
41
+
42
+ | Resource | Permissions |
43
+ |------------|----------------------|
44
+ | SharePoint | AllSites.FullControl |
45
+
46
+ </TabItem>
47
+ <TabItem value="Application">
48
+
49
+ | Resource | Permissions |
50
+ |------------|-----------------------|
51
+ | SharePoint | Sites.FullControl.All |
52
+
53
+ </TabItem>
54
+ </Tabs>
55
+
35
56
  ## Examples
36
57
 
37
58
  Uninstall the app with the specified ID from the specified site.
@@ -1,4 +1,6 @@
1
1
  import Global from '../../_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
2
4
 
3
5
  # spo app upgrade
4
6
 
@@ -29,6 +31,25 @@ m365 spo app upgrade [options]
29
31
 
30
32
  If the app with the specified ID doesn't exist in the app catalog, the command will fail with an error.
31
33
 
34
+ ## Permissions
35
+
36
+ <Tabs>
37
+ <TabItem value="Delegated">
38
+
39
+ | Resource | Permissions |
40
+ |------------|----------------------|
41
+ | SharePoint | AllSites.FullControl |
42
+
43
+ </TabItem>
44
+ <TabItem value="Application">
45
+
46
+ | Resource | Permissions |
47
+ |------------|-----------------------|
48
+ | SharePoint | Sites.FullControl.All |
49
+
50
+ </TabItem>
51
+ </Tabs>
52
+
32
53
  ## Examples
33
54
 
34
55
  Upgrade the app with the specified ID in the specified site.
@@ -34,6 +34,25 @@ m365 spo apppage add [options]
34
34
 
35
35
  If you want to add the single-part app page to quick launch, use the addToQuickLaunch flag.
36
36
 
37
+ ## Permissions
38
+
39
+ <Tabs>
40
+ <TabItem value="Delegated">
41
+
42
+ | Resource | Permissions |
43
+ |------------|----------------|
44
+ | SharePoint | AllSites.Write |
45
+
46
+ </TabItem>
47
+ <TabItem value="Application">
48
+
49
+ | Resource | Permissions |
50
+ |------------|---------------------|
51
+ | SharePoint | Sites.ReadWrite.All |
52
+
53
+ </TabItem>
54
+ </Tabs>
55
+
37
56
  ## Examples
38
57
 
39
58
  Create a single-part app page in the specified site, webpart data is stored in the `$webPartData` variable
@@ -42,7 +61,6 @@ Create a single-part app page in the specified site, webpart data is stored in t
42
61
  m365 spo apppage add --title "Contoso" --webUrl "https://contoso.sharepoint.com" --webPartData $webPartData --addToQuickLaunch
43
62
  ```
44
63
 
45
-
46
64
  ## Response
47
65
 
48
66
  <Tabs>
@@ -1,4 +1,6 @@
1
1
  import Global from '../../_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
2
4
 
3
5
  # spo apppage set
4
6
 
@@ -25,6 +27,25 @@ m365 spo apppage set [options]
25
27
 
26
28
  <Global />
27
29
 
30
+ ## Permissions
31
+
32
+ <Tabs>
33
+ <TabItem value="Delegated">
34
+
35
+ | Resource | Permissions |
36
+ |------------|----------------|
37
+ | SharePoint | AllSites.Write |
38
+
39
+ </TabItem>
40
+ <TabItem value="Application">
41
+
42
+ | Resource | Permissions |
43
+ |------------|---------------------|
44
+ | SharePoint | Sites.ReadWrite.All |
45
+
46
+ </TabItem>
47
+ </Tabs>
48
+
28
49
  ## Examples
29
50
 
30
51
  Updates the single-part app page located in a specified site. Web part data is stored in the `$webPartData` variable.
@@ -60,6 +60,25 @@ When using the `--clientSideComponentProperties` option it's possible to enter a
60
60
 
61
61
  This command can be used for configuring ListView Command Sets on a specific site. To configure a ListView Command Set tenant-wide, view our dedicated [spo tenant commandset add](../tenant/tenant-commandset-add.mdx) command.
62
62
 
63
+ ## Permissions
64
+
65
+ <Tabs>
66
+ <TabItem value="Delegated">
67
+
68
+ | Resource | Permissions |
69
+ |------------|----------------------|
70
+ | SharePoint | AllSites.FullControl |
71
+
72
+ </TabItem>
73
+ <TabItem value="Application">
74
+
75
+ | Resource | Permissions |
76
+ |------------|-----------------------|
77
+ | SharePoint | Sites.FullControl.All |
78
+
79
+ </TabItem>
80
+ </Tabs>
81
+
63
82
  ## Examples
64
83
 
65
84
  Adds a ListView Command Set to lists on the sales site.
@@ -42,6 +42,25 @@ If the command finds multiple command sets with the specified title, it will pro
42
42
 
43
43
  This command can be used for retrieving a ListView Command Set from a specific site. To retrieve a ListView Command Set that's installed tenant-wide, view our dedicated [spo tenant commandset get](../tenant/tenant-commandset-get.mdx) command.
44
44
 
45
+ ## Permissions
46
+
47
+ <Tabs>
48
+ <TabItem value="Delegated">
49
+
50
+ | Resource | Permissions |
51
+ |------------|---------------|
52
+ | SharePoint | AllSites.Read |
53
+
54
+ </TabItem>
55
+ <TabItem value="Application">
56
+
57
+ | Resource | Permissions |
58
+ |------------|----------------|
59
+ | SharePoint | Sites.Read.All |
60
+
61
+ </TabItem>
62
+ </Tabs>
63
+
45
64
  ## Examples
46
65
 
47
66
  Retrieves a ListView Command Set by title.
@@ -28,6 +28,25 @@ m365 spo commandset list [options]
28
28
 
29
29
  This command can be used for retrieving a list of ListView Command Sets from a specific site. To retrieve a list of ListView Command Sets that are installed tenant-wide, view our dedicated [spo tenant commandset list](../tenant/tenant-commandset-list.mdx) command.
30
30
 
31
+ ## Permissions
32
+
33
+ <Tabs>
34
+ <TabItem value="Delegated">
35
+
36
+ | Resource | Permissions |
37
+ |------------|---------------|
38
+ | SharePoint | AllSites.Read |
39
+
40
+ </TabItem>
41
+ <TabItem value="Application">
42
+
43
+ | Resource | Permissions |
44
+ |------------|----------------|
45
+ | SharePoint | Sites.Read.All |
46
+
47
+ </TabItem>
48
+ </Tabs>
49
+
31
50
  ## Examples
32
51
 
33
52
  Retrieves a list of ListView Command Sets.
@@ -1,4 +1,6 @@
1
1
  import Global from '../../_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
2
4
 
3
5
  # spo commandset remove
4
6
 
@@ -38,6 +40,25 @@ m365 spo commandset remove [options]
38
40
 
39
41
  This command can be used for removing a ListView Command Set from a specific site. To remove a ListView Command Set that's installed tenant-wide, view our dedicated [spo tenant commandset remove](../tenant/tenant-commandset-remove.mdx) command.
40
42
 
43
+ ## Permissions
44
+
45
+ <Tabs>
46
+ <TabItem value="Delegated">
47
+
48
+ | Resource | Permissions |
49
+ |------------|----------------------|
50
+ | SharePoint | AllSites.FullControl |
51
+
52
+ </TabItem>
53
+ <TabItem value="Application">
54
+
55
+ | Resource | Permissions |
56
+ |------------|-----------------------|
57
+ | SharePoint | Sites.FullControl.All |
58
+
59
+ </TabItem>
60
+ </Tabs>
61
+
41
62
  ## Examples
42
63
 
43
64
  Remove a ListView Command Set by title.
@@ -1,4 +1,6 @@
1
1
  import Global from '../../_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
2
4
 
3
5
  # spo commandset set
4
6
 
@@ -67,6 +69,25 @@ When using the `--clientSideComponentProperties` option it's possible to enter a
67
69
 
68
70
  This command can be used for updating a ListView Command Set on a specific site. To update a ListView Command Set that's installed tenant-wide, view our dedicated [spo tenant commandset set](../tenant/tenant-commandset-set.mdx) command.
69
71
 
72
+ ## Permissions
73
+
74
+ <Tabs>
75
+ <TabItem value="Delegated">
76
+
77
+ | Resource | Permissions |
78
+ |------------|----------------------|
79
+ | SharePoint | AllSites.FullControl |
80
+
81
+ </TabItem>
82
+ <TabItem value="Application">
83
+
84
+ | Resource | Permissions |
85
+ |------------|-----------------------|
86
+ | SharePoint | Sites.FullControl.All |
87
+
88
+ </TabItem>
89
+ </Tabs>
90
+
70
91
  ## Examples
71
92
 
72
93
  Updates the title and location of a ListView Command Set on the sales site.
@@ -0,0 +1,68 @@
1
+ import Global from '../../_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # spo file unarchive
6
+
7
+ Unarchives a file
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 spo file unarchive [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ ```md definition-list
18
+ `-u, --webUrl <webUrl>`
19
+ : The URL of the site where the file is located.
20
+
21
+ `--url [url]`
22
+ : The server- or site-relative decoded URL of the file to unarchive. Specify either `url` or `id`, but not both.
23
+
24
+ `-i, --id [id]`
25
+ : The UniqueId (GUID) of the file to unarchive. Specify either `url` or `id`, but not both.
26
+
27
+ `-f, --force`
28
+ : Don't prompt for confirmation.
29
+ ```
30
+
31
+ <Global />
32
+
33
+ ## Permissions
34
+
35
+ <Tabs>
36
+ <TabItem value="Delegated">
37
+
38
+ | Resource | Permissions |
39
+ |------------|----------------|
40
+ | SharePoint | AllSites.Write |
41
+
42
+ </TabItem>
43
+ <TabItem value="Application">
44
+
45
+ | Resource | Permissions |
46
+ |------------|---------------------|
47
+ | SharePoint | Sites.ReadWrite.All |
48
+
49
+ </TabItem>
50
+ </Tabs>
51
+
52
+ ## Examples
53
+
54
+ Unarchive a file by id without prompting for confirmation
55
+
56
+ ```sh
57
+ m365 spo file unarchive --webUrl https://contoso.sharepoint.com/sites/Marketing --id 7a8c9207-7745-4cda-b0e2-be2618ee3030 --force
58
+ ```
59
+
60
+ Unarchive a file by URL with prompting for confirmation
61
+
62
+ ```sh
63
+ m365 spo file unarchive --webUrl https://contoso.sharepoint.com/sites/Marketing --url '/sites/Marketing/shared documents/document.docx'
64
+ ```
65
+
66
+ ## Response
67
+
68
+ The command won't return a response on success.
@@ -0,0 +1,73 @@
1
+ import Global from '../../_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # spo folder archive
6
+
7
+ Archives a folder
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 spo folder archive [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ ```md definition-list
18
+ `-u, --webUrl <webUrl>`
19
+ : The URL of the site where the folder is located.
20
+
21
+ `--url [url]`
22
+ : The server- or site-relative decoded URL of the folder to archive. Specify either `url` or `id`, but not both.
23
+
24
+ `-i, --id [id]`
25
+ : The UniqueId (GUID) of the folder to archive. Specify either `url` or `id`, but not both.
26
+
27
+ `-f, --force`
28
+ : Don't prompt for confirmation.
29
+ ```
30
+
31
+ <Global />
32
+
33
+ ## Remarks
34
+
35
+ Folder archival can take some time to complete, as the status might not be reflected immediately.
36
+
37
+
38
+ ## Permissions
39
+
40
+ <Tabs>
41
+ <TabItem value="Delegated">
42
+
43
+ | Resource | Permissions |
44
+ |------------|----------------|
45
+ | SharePoint | AllSites.Write |
46
+
47
+ </TabItem>
48
+ <TabItem value="Application">
49
+
50
+ | Resource | Permissions |
51
+ |------------|---------------------|
52
+ | SharePoint | Sites.ReadWrite.All |
53
+
54
+ </TabItem>
55
+ </Tabs>
56
+
57
+ ## Examples
58
+
59
+ Archive a folder by id without prompting for confirmation
60
+
61
+ ```sh
62
+ m365 spo folder archive --webUrl https://contoso.sharepoint.com/sites/Marketing --id 7a8c9207-7745-4cda-b0e2-be2618ee3030 --force
63
+ ```
64
+
65
+ Archive a folder by URL with prompting for confirmation
66
+
67
+ ```sh
68
+ m365 spo folder archive --webUrl https://contoso.sharepoint.com/sites/Marketing --url '/sites/Marketing/shared documents/folder'
69
+ ```
70
+
71
+ ## Response
72
+
73
+ The command won't return a response on success.
@@ -0,0 +1,76 @@
1
+ import Global from '../../_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # viva engage role member add
6
+
7
+ Assign a Viva Engage role to a user
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 viva engage role member add [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ ```md definition-list
18
+ `-i, --roleId [roleId]`
19
+ : The id of the Viva Engage role. Specify either `roleId` or `roleName`, but not both.
20
+
21
+ `-n, --roleName [roleName]`
22
+ : The name of the Viva Engage role. Specify either `roleId` or `roleName`, but not both.
23
+
24
+ `--userId [userId]`
25
+ : The id of the user to be assigned to the role. Specify either `userId` or `userName`, but not both.
26
+
27
+ `--userName [userName]`
28
+ : The UPN of the user to be assigned to the role. Specify either `userId` or `userName`, but not both.
29
+ ```
30
+
31
+ <Global />
32
+
33
+ ## Remarks
34
+
35
+ :::warning
36
+
37
+ This command is based on a Microsoft Graph API that is currently in preview and is subject to change once the API reaches general availability.
38
+
39
+ :::
40
+
41
+ ## Permissions
42
+
43
+ <Tabs>
44
+ <TabItem value="Delegated">
45
+
46
+ | Resource | Permissions |
47
+ |-----------------|------------------------------|
48
+ | Microsoft Graph | EngagementRole.ReadWrite.All |
49
+
50
+ </TabItem>
51
+ <TabItem value="Application">
52
+
53
+ | Resource | Permissions |
54
+ |-----------------|------------------------------|
55
+ | Microsoft Graph | EngagementRole.ReadWrite.All |
56
+
57
+ </TabItem>
58
+ </Tabs>
59
+
60
+ ## Examples
61
+
62
+ Assign a user specified by id to the role specified by name.
63
+
64
+ ```sh
65
+ m365 viva engage role member add --userId 7a2ca997-9461-402e-9882-58088a370889 --roleName 'Verified Admin'
66
+ ```
67
+
68
+ Assign a user specified by UPN to the role specified by id.
69
+
70
+ ```sh
71
+ m365 viva engage role member add --userName john.doe@contoso.com --roleId 77aa47ad-96fe-4ecc-8024-fd1ac5e28f17
72
+ ```
73
+
74
+ ## Response
75
+
76
+ The command won't return a response on success.