@pnp/cli-microsoft365 6.9.0-beta.1cd2525 → 6.9.0-beta.3158148

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 (180) hide show
  1. package/.devcontainer/Dockerfile +12 -19
  2. package/.devcontainer/devcontainer.json +24 -17
  3. package/Dockerfile +3 -1
  4. package/dist/Auth.js +2 -8
  5. package/dist/AuthServer.js +2 -4
  6. package/dist/cli/Cli.js +2 -2
  7. package/dist/m365/aad/commands/app/app-add.js +258 -249
  8. package/dist/m365/aad/commands/app/app-get.js +65 -62
  9. package/dist/m365/aad/commands/app/app-remove.js +22 -23
  10. package/dist/m365/aad/commands/app/app-role-add.js +35 -34
  11. package/dist/m365/aad/commands/app/app-role-list.js +22 -23
  12. package/dist/m365/aad/commands/app/app-role-remove.js +76 -73
  13. package/dist/m365/aad/commands/app/app-set.js +103 -103
  14. package/dist/m365/aad/commands/approleassignment/approleassignment-add.js +16 -14
  15. package/dist/m365/aad/commands/approleassignment/approleassignment-list.js +43 -52
  16. package/dist/m365/aad/commands/approleassignment/approleassignment-remove.js +20 -16
  17. package/dist/m365/aad/commands/o365group/o365group-add.js +40 -37
  18. package/dist/m365/aad/commands/o365group/o365group-conversation-post-list.js +7 -6
  19. package/dist/m365/aad/commands/o365group/o365group-list.js +6 -11
  20. package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-clear.js +7 -8
  21. package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-restore.js +23 -24
  22. package/dist/m365/aad/commands/o365group/o365group-set.js +15 -20
  23. package/dist/m365/aad/commands/o365group/o365group-teamify.js +15 -16
  24. package/dist/m365/aad/commands/o365group/o365group-user-list.js +17 -10
  25. package/dist/m365/aad/commands/o365group/o365group-user-set.js +17 -10
  26. package/dist/m365/aad/commands/policy/policy-list.js +12 -13
  27. package/dist/m365/aad/commands/siteclassification/siteclassification-enable.js +1 -3
  28. package/dist/m365/aad/commands/siteclassification/siteclassification-set.js +19 -20
  29. package/dist/m365/aad/commands/sp/sp-add.js +22 -23
  30. package/dist/m365/aad/commands/sp/sp-get.js +22 -23
  31. package/dist/m365/aad/commands/sp/sp-list.js +78 -0
  32. package/dist/m365/aad/commands.js +1 -0
  33. package/dist/m365/app/commands/app-open.js +4 -14
  34. package/dist/m365/base/AzmgmtItemsListCommand.js +31 -33
  35. package/dist/m365/cli/commands/cli-issue.js +4 -10
  36. package/dist/m365/cli/commands/cli-reconsent.js +2 -8
  37. package/dist/m365/cli/commands/config/config-set.js +0 -1
  38. package/dist/m365/commands/docs.js +2 -8
  39. package/dist/m365/commands/login.js +20 -0
  40. package/dist/m365/flow/commands/flow-list.js +30 -12
  41. package/dist/m365/flow/commands/flow-remove.js +2 -3
  42. package/dist/m365/flow/commands/run/run-resubmit.js +11 -10
  43. package/dist/m365/onedrive/commands/onedrive-list.js +21 -32
  44. package/dist/m365/outlook/commands/message/message-list.js +18 -23
  45. package/dist/m365/outlook/commands/message/message-move.js +15 -20
  46. package/dist/m365/pa/commands/app/app-export.js +3 -4
  47. package/dist/m365/pa/commands/app/app-get.js +11 -9
  48. package/dist/m365/pa/commands/app/app-remove.js +1 -1
  49. package/dist/m365/pa/commands/pcf/pcf-init.js +1 -2
  50. package/dist/m365/pa/commands/solution/solution-init.js +1 -2
  51. package/dist/m365/pa/commands/solution/solution-reference-add.js +1 -2
  52. package/dist/m365/pp/commands/managementapp/managementapp-add.js +19 -20
  53. package/dist/m365/purview/commands/retentionevent/retentionevent-add.js +3 -3
  54. package/dist/m365/purview/commands/retentionevent/retentionevent-get.js +1 -1
  55. package/dist/m365/purview/commands/retentionevent/retentionevent-list.js +1 -1
  56. package/dist/m365/purview/commands/retentionevent/retentionevent-remove.js +1 -1
  57. package/dist/m365/purview/commands/retentioneventtype/retentioneventtype-add.js +1 -1
  58. package/dist/m365/purview/commands/retentioneventtype/retentioneventtype-get.js +1 -1
  59. package/dist/m365/purview/commands/retentioneventtype/retentioneventtype-list.js +1 -1
  60. package/dist/m365/purview/commands/retentioneventtype/retentioneventtype-remove.js +1 -1
  61. package/dist/m365/purview/commands/retentioneventtype/retentioneventtype-set.js +1 -1
  62. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.17.3.js +25 -0
  63. package/dist/m365/spfx/commands/project/project-doctor.js +2 -1
  64. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002027_DEVDEP_fluentui_react.js +14 -0
  65. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.17.3.js +59 -0
  66. package/dist/m365/spfx/commands/project/project-upgrade.js +2 -1
  67. package/dist/m365/spfx/commands/spfx-doctor.js +15 -0
  68. package/dist/m365/spo/commands/app/app-teamspackage-download.js +17 -24
  69. package/dist/m365/spo/commands/apppage/apppage-set.js +1 -1
  70. package/dist/m365/spo/commands/contenttype/contenttype-field-set.js +65 -94
  71. package/dist/m365/spo/commands/customaction/customaction-clear.js +4 -12
  72. package/dist/m365/spo/commands/customaction/customaction-remove.js +12 -23
  73. package/dist/m365/spo/commands/customaction/customaction-set.js +21 -29
  74. package/dist/m365/spo/commands/file/file-add.js +133 -133
  75. package/dist/m365/spo/commands/file/file-checkout-undo.js +119 -0
  76. package/dist/m365/spo/commands/file/file-rename.js +11 -9
  77. package/dist/m365/spo/commands/file/file-retentionlabel-ensure.js +2 -2
  78. package/dist/m365/spo/commands/file/file-roleassignment-add.js +41 -61
  79. package/dist/m365/spo/commands/file/file-roleassignment-remove.js +3 -0
  80. package/dist/m365/spo/commands/file/file-roleinheritance-break.js +3 -0
  81. package/dist/m365/spo/commands/file/file-roleinheritance-reset.js +3 -0
  82. package/dist/m365/spo/commands/file/file-sharinginfo-get.js +23 -21
  83. package/dist/m365/spo/commands/file/file-version-clear.js +1 -1
  84. package/dist/m365/spo/commands/file/file-version-remove.js +1 -1
  85. package/dist/m365/spo/commands/file/file-version-restore.js +1 -1
  86. package/dist/m365/spo/commands/folder/folder-roleassignment-add.js +3 -3
  87. package/dist/m365/spo/commands/folder/folder-roleassignment-remove.js +1 -1
  88. package/dist/m365/spo/commands/group/group-member-add.js +17 -16
  89. package/dist/m365/spo/commands/group/group-set.js +20 -20
  90. package/dist/m365/spo/commands/homesite/homesite-remove.js +1 -1
  91. package/dist/m365/spo/commands/hubsite/hubsite-get.js +33 -31
  92. package/dist/m365/spo/commands/hubsite/hubsite-list.js +18 -29
  93. package/dist/m365/spo/commands/hubsite/hubsite-unregister.js +3 -0
  94. package/dist/m365/spo/commands/list/list-add.js +1 -1
  95. package/dist/m365/spo/commands/list/list-contenttype-default-set.js +1 -1
  96. package/dist/m365/spo/commands/list/list-roleassignment-add.js +45 -52
  97. package/dist/m365/spo/commands/list/list-roleassignment-remove.js +33 -38
  98. package/dist/m365/spo/commands/list/list-sensitivitylabel-ensure.js +13 -3
  99. package/dist/m365/spo/commands/list/list-view-field-add.js +12 -10
  100. package/dist/m365/spo/commands/list/list-view-field-remove.js +12 -10
  101. package/dist/m365/spo/commands/list/list-view-field-set.js +12 -10
  102. package/dist/m365/spo/commands/list/list-view-remove.js +3 -0
  103. package/dist/m365/spo/commands/listitem/listitem-roleassignment-add.js +41 -61
  104. package/dist/m365/spo/commands/listitem/listitem-roleassignment-remove.js +71 -74
  105. package/dist/m365/spo/commands/listitem/listitem-roleinheritance-break.js +36 -34
  106. package/dist/m365/spo/commands/listitem/listitem-roleinheritance-reset.js +32 -30
  107. package/dist/m365/spo/commands/navigation/navigation-node-remove.js +24 -22
  108. package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-remove.js +29 -27
  109. package/dist/m365/spo/commands/orgnewssite/orgnewssite-remove.js +26 -24
  110. package/dist/m365/spo/commands/page/page-clientsidewebpart-add.js +34 -40
  111. package/dist/m365/spo/commands/sitedesign/sitedesign-task-remove.js +23 -21
  112. package/dist/m365/spo/commands/sitescript/sitescript-remove.js +24 -22
  113. package/dist/m365/spo/commands/spo-search.js +7 -15
  114. package/dist/m365/spo/commands/storageentity/storageentity-remove.js +29 -27
  115. package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-set.js +156 -0
  116. package/dist/m365/spo/commands.js +2 -0
  117. package/dist/m365/teams/commands/app/app-install.js +23 -21
  118. package/dist/m365/teams/commands/app/app-remove.js +3 -0
  119. package/dist/m365/teams/commands/app/app-uninstall.js +3 -0
  120. package/dist/m365/teams/commands/app/app-update.js +15 -16
  121. package/dist/m365/teams/commands/channel/channel-add.js +40 -39
  122. package/dist/m365/teams/commands/channel/channel-get.js +23 -25
  123. package/dist/m365/teams/commands/channel/channel-list.js +6 -7
  124. package/dist/m365/teams/commands/channel/channel-member-add.js +61 -60
  125. package/dist/m365/teams/commands/channel/channel-member-list.js +20 -22
  126. package/dist/m365/teams/commands/channel/channel-member-remove.js +43 -48
  127. package/dist/m365/teams/commands/channel/channel-member-set.js +36 -39
  128. package/dist/m365/teams/commands/channel/channel-remove.js +4 -1
  129. package/dist/m365/teams/commands/funsettings/funsettings-list.js +3 -0
  130. package/dist/m365/teams/commands/funsettings/funsettings-set.js +3 -0
  131. package/dist/m365/teams/commands/tab/tab-get.js +34 -37
  132. package/dist/m365/teams/commands/team/team-archive.js +6 -7
  133. package/dist/m365/teams/commands/team/team-get.js +6 -7
  134. package/dist/m365/teams/commands/team/team-list.js +9 -11
  135. package/dist/m365/teams/commands/team/team-remove.js +6 -7
  136. package/dist/m365/teams/commands/team/team-unarchive.js +6 -7
  137. package/dist/m365/teams/commands/user/user-app-list.js +13 -11
  138. package/dist/m365/teams/commands/user/user-list.js +7 -4
  139. package/dist/m365/tenant/commands/security/security-alerts-list.js +25 -26
  140. package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-health-list.js +13 -14
  141. package/dist/m365/todo/commands/list/list-remove.js +39 -36
  142. package/dist/m365/todo/commands/list/list-set.js +16 -14
  143. package/dist/m365/todo/commands/task/task-add.js +14 -14
  144. package/dist/m365/util/commands/accesstoken/accesstoken-get.js +10 -7
  145. package/dist/settingsNames.js +0 -1
  146. package/dist/utils/browserUtil.js +23 -0
  147. package/docs/docs/cmd/aad/sp/sp-list.mdx +162 -0
  148. package/docs/docs/cmd/flow/flow-list.mdx +15 -0
  149. package/docs/docs/cmd/login.mdx +39 -0
  150. package/docs/docs/cmd/setup.mdx +2 -0
  151. package/docs/docs/cmd/spfx/project/project-upgrade.mdx +1 -1
  152. package/docs/docs/cmd/spo/file/file-checkout-undo.mdx +55 -0
  153. package/docs/docs/cmd/spo/file/file-retentionlabel-ensure.mdx +1 -1
  154. package/docs/docs/cmd/spo/folder/folder-retentionlabel-ensure.mdx +1 -1
  155. package/docs/docs/cmd/spo/list/list-sensitivitylabel-ensure.mdx +14 -5
  156. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-set.mdx +81 -0
  157. package/docs/docs/cmd/spo/tenant/tenant-settings-set.mdx +6 -0
  158. package/docs/docs/cmd/status.mdx +6 -3
  159. package/docs/docs/cmd/util/accesstoken/accesstoken-get.mdx +12 -2
  160. package/npm-shrinkwrap.json +299 -272
  161. package/package.json +17 -17
  162. package/dist/m365/aad/commands/approleassignment/AppRoleAssignment.js +0 -3
  163. package/dist/m365/aad/commands/approleassignment/ServicePrincipal.js +0 -3
  164. package/dist/m365/aad/commands/groupsetting/GroupSetting.js +0 -3
  165. package/dist/m365/aad/commands/groupsettingtemplate/GroupSettingTemplate.js +0 -3
  166. package/dist/m365/aad/commands/siteclassification/DirectorySetting.js +0 -10
  167. package/dist/m365/aad/commands/siteclassification/DirectorySettingTemplatesRsp.js +0 -3
  168. package/dist/m365/aad/commands/siteclassification/DirectorySettingValue.js +0 -3
  169. package/dist/m365/outlook/Message.js +0 -3
  170. package/dist/m365/spo/commands/site/SitePermission.js +0 -3
  171. package/dist/m365/teams/Channel.js +0 -3
  172. package/dist/m365/teams/ConversationMember.js +0 -3
  173. package/dist/m365/teams/Message.js +0 -3
  174. package/dist/m365/teams/Reply.js +0 -3
  175. package/dist/m365/teams/Tab.js +0 -3
  176. package/dist/m365/teams/Team.js +0 -3
  177. package/dist/m365/teams/TeamsApp.js +0 -3
  178. package/dist/m365/teams/TeamsAppInstallation.js +0 -3
  179. package/dist/m365/teams/TeamsTabConfiguration.js +0 -3
  180. package/dist/m365/teams/commands/Meeting.js +0 -3
@@ -0,0 +1,55 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+
3
+ # spo file checkout undo
4
+
5
+ Discards a checked out file
6
+
7
+ ## Usage
8
+
9
+ ```sh
10
+ m365 spo file checkout undo [options]
11
+ ```
12
+
13
+ ## Options
14
+
15
+ ```md definition-list
16
+ `-u, --webUrl <webUrl>`
17
+ : The URL of the site where the file is located.
18
+
19
+ `-f, --fileUrl [fileUrl]`
20
+ : The server- or site-relative URL of the file to retrieve. Specify either `fileUrl` or `fileId` but not both.
21
+
22
+ `-i, --fileId [fileId]`
23
+ : The UniqueId (GUID) of the file to retrieve. Specify either `fileUrl` or `fileId` but not both.
24
+
25
+ `--confirm`
26
+ : Don't prompt for confirmation.
27
+ ```
28
+
29
+ <Global />
30
+
31
+ ## Remarks
32
+
33
+ :::info
34
+
35
+ When specifying option `fileUrl`, make sure that the URL is decoded. If not, you will get a `File Not Found` error.
36
+
37
+ :::
38
+
39
+ ## Examples
40
+
41
+ Discards a checked-out file with a specific ID.
42
+
43
+ ```sh
44
+ m365 spo file checkout undo --webUrl https://contoso.sharepoint.com/sites/project-x --fileId 'b2307a39-e878-458b-bc90-03bc578531d6'
45
+ ```
46
+
47
+ Discards a checked-out file with a specific URL without prompting for confirmation.
48
+
49
+ ```sh
50
+ m365 spo file checkout undo --webUrl https://contoso.sharepoint.com/sites/project-x --fileUrl '/sites/project-x/documents/Test1.docx' --confirm
51
+ ```
52
+
53
+ ## Response
54
+
55
+ The command won't return a response on success.
@@ -33,7 +33,7 @@ m365 spo file retentionlabel ensure [options]
33
33
 
34
34
  ## Remarks
35
35
 
36
- You can also use [spo listitem retentionlabel remove](./../../../cmd/spo//listitem/listitem-retentionlabel-remove.mdx) for removing the retention label from a listitem.
36
+ You can also use [spo listitem retentionlabel remove](./../../../cmd/spo/listitem/listitem-retentionlabel-remove.mdx) for removing the retention label from a listitem.
37
37
 
38
38
  The `--assetId` option has to do with event-based retention. Event-based retention is about starting a retention period when a specific event occurs, instead of the moment a document was labeled or created.
39
39
 
@@ -30,7 +30,7 @@ m365 spo folder retentionlabel ensure [options]
30
30
 
31
31
  ## Remarks
32
32
 
33
- You can also use [spo listitem retentionlabel remove](./../../../cmd/spo//listitem/listitem-retentionlabel-remove.mdx) for removing the retention label from a listitem.
33
+ You can also use [spo listitem retentionlabel remove](./../../../cmd/spo/listitem/listitem-retentionlabel-remove.mdx) for removing the retention label from a listitem.
34
34
 
35
35
  ## Examples
36
36
 
@@ -16,8 +16,11 @@ m365 spo list sensitivitylabel ensure [options]
16
16
  `-u, --webUrl <webUrl>`
17
17
  : The URL of the site where the library is located.
18
18
 
19
- `-n, --name <name>`
20
- : The name of the label.
19
+ `-n, --name [name]`
20
+ : The label name to apply to the list. Specify either `name` or `id`, but not both.
21
+
22
+ `-i, --id [id]`
23
+ : The Id of the label to apply to the list. Specify either `name` or `id`, but not both.
21
24
 
22
25
  `-t, --listTitle [listTitle]`
23
26
  : The title of the library on which to apply the label. Specify either `listTitle`, `listId`, or `listUrl` but not multiple.
@@ -41,19 +44,25 @@ This command is based on an API that is currently in preview and is subject to c
41
44
 
42
45
  ## Examples
43
46
 
44
- Applies a sensitivity label to a document library based on the list title.
47
+ Applies a sensitivity label by id to a document library based on the list title.
48
+
49
+ ```sh
50
+ m365 spo list sensitivitylabel ensure --webUrl 'https://contoso.sharepoint.com' --listTitle 'Shared Documents' --id '0d39dc11-75ff-4309-8b32-ff94f0e41607'
51
+ ```
52
+
53
+ Applies a sensitivity label by name to a document library based on the list title.
45
54
 
46
55
  ```sh
47
56
  m365 spo list sensitivitylabel ensure --webUrl 'https://contoso.sharepoint.com' --listTitle 'Shared Documents' --name 'Confidential'
48
57
  ```
49
58
 
50
- Applies a sensitivity label to a document library based on the list url.
59
+ Applies a sensitivity label by name to a document library based on the list url.
51
60
 
52
61
  ```sh
53
62
  m365 spo list sensitivitylabel ensure --webUrl 'https://contoso.sharepoint.com' --listUrl '/Shared Documents' --name 'Confidential'
54
63
  ```
55
64
 
56
- Applies a sensitivity label to a document library based on the list id.
65
+ Applies a sensitivity label by name to a document library based on the list id.
57
66
 
58
67
  ```sh
59
68
  m365 spo list sensitivitylabel ensure --webUrl 'https://contoso.sharepoint.com' --listId 'b4cfa0d9-b3d7-49ae-a0f0-f14ffdd005f7' --name 'Confidential'
@@ -0,0 +1,81 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+
3
+ # spo tenant applicationcustomizer set
4
+
5
+ Updates an Application Customizer that is deployed as a tenant-wide extension
6
+
7
+ ## Usage
8
+
9
+ ```sh
10
+ m365 spo tenant applicationcustomizer set [options]
11
+ ```
12
+
13
+ ## Options
14
+
15
+ ```md definition-list
16
+ `-t, --title [title]`
17
+ : The title of the Application Customizer to update. Specify either `title`, `id` or `clientSideComponentId`.
18
+
19
+ `-i, --id [id]`
20
+ : The id of the Application Customizer to update. Specify either `title`, `id` or `clientSideComponentId`.
21
+
22
+ `-c, --clientSideComponentId [clientSideComponentId]`
23
+ : The Client Side Component Id (GUID) of the Application Customizer to update. Specify either `title`, `id` or `clientSideComponentId`.
24
+
25
+ `--newTitle [newTitle]`
26
+ : The updated title of the Application Customizer.
27
+
28
+ `-p, --clientSideComponentProperties [clientSideComponentProperties]`
29
+ : The Client Side Component properties of the Application Customizer.
30
+
31
+ `-w, --webTemplate [webTemplate]`
32
+ : Optionally add a web template (e.g. STS#3, SITEPAGEPUBLISHING#0, etc) as a filter for what kind of sites the application customizer is registered on.
33
+ ```
34
+
35
+ <Global />
36
+
37
+ ## Remarks
38
+
39
+ Running this command from the Windows Command Shell (cmd.exe) or PowerShell for Windows OS XP, 7, 8, 8.1 without bash installed might require additional formatting for clientSideComponentProperties option that has JSON value because the command shell treats quotes differently. For example, this is how Application Customizer can be updated from the Windows cmd.exe:
40
+
41
+ ```sh
42
+ m365 spo tenant applicationcustomizer set --id 3 --clientSideComponentProperties '{\"someProperty\":\"Some value\"}'
43
+ ```
44
+
45
+ Note, how the clientSideComponentProperties option (--clientSideComponentProperties) has escaped double quotes `'{\"someProperty\":\"Some value\"}'` compared to execution from bash `'{"someProperty": "Some value"}'`.
46
+
47
+ :::caution Escaping JSON in PowerShell
48
+
49
+ When using the `--clientSideComponentProperties` option it's possible to enter a JSON string. In PowerShell 5 to 7.2 [specific escaping rules](./../../../user-guide/using-cli.mdx#escaping-double-quotes-in-powershell) apply due to an issue. Remember that you can also use [file tokens](./../../../user-guide/using-cli.mdx#passing-complex-content-into-cli-options) instead.
50
+
51
+ :::
52
+
53
+ ## Examples
54
+
55
+ Updates the title of an Application Customizer that is deployed as a tenant-wide extension by its id
56
+
57
+ ```sh
58
+ m365 spo tenant applicationcustomizer set --id 3 --newTitle "Some customizer"
59
+ ```
60
+
61
+ Updates the properties of an Application Customizer that is deployed as a tenant-wide extension by its id
62
+
63
+ ```sh
64
+ m365 spo tenant applicationcustomizer set --id 3 --clientSideComponentProperties '{ "someProperty": "Some value" }'
65
+ ```
66
+
67
+ Updates the title of an Application Customizer that is deployed as a tenant-wide extension by its title
68
+
69
+ ```sh
70
+ m365 spo tenant applicationcustomizer set --title "Some customizer" --newTitle "Updated customizer"
71
+ ```
72
+
73
+ Updates the title of an Application Customizer that is deployed as a tenant-wide extension by its clientSideComponentId
74
+
75
+ ```sh
76
+ m365 spo tenant applicationcustomizer set --clientSideComponentId "7f8fd1f2-9d26-4a4a-a607-bf4622d7ec11" --newTitle "Some customizer"
77
+ ```
78
+
79
+ ## Response
80
+
81
+ The command won't return a response on success.
@@ -305,3 +305,9 @@ Disable Azure AD B2B integration for SharePoint and OneDrive
305
305
  ```sh
306
306
  m365 spo tenant settings set --EnableAzureADB2BIntegration false
307
307
  ```
308
+
309
+ Disable comments on list items for SharePoint and Microsoft Lists
310
+
311
+ ```sh
312
+ m365 spo tenant settings set --CommentsOnListItemsDisabled true
313
+ ```
@@ -38,7 +38,8 @@ m365 status
38
38
  "connectedAs": "john.doe@contoso.onmicrosoft.com",
39
39
  "authType": "DeviceCode",
40
40
  "appId": "31359c7f-bd7e-475c-86db-fdb8c937548e",
41
- "appTenant": "common"
41
+ "appTenant": "common",
42
+ "cloudType": "Public"
42
43
  }
43
44
  ```
44
45
 
@@ -50,14 +51,15 @@ m365 status
50
51
  appTenant : common
51
52
  authType : DeviceCode
52
53
  connectedAs: john.doe@contoso.onmicrosoft.com
54
+ cloudType : Public
53
55
  ```
54
56
 
55
57
  </TabItem>
56
58
  <TabItem value="CSV">
57
59
 
58
60
  ```csv
59
- connectedAs,authType,appId,appTenant
60
- john.doe@contoso.onmicrosoft.com,DeviceCode,31359c7f-bd7e-475c-86db-fdb8c937548e,common
61
+ connectedAs,authType,appId,appTenant,cloudType
62
+ john.doe@contoso.onmicrosoft.com,DeviceCode,31359c7f-bd7e-475c-86db-fdb8c937548e,common,Public
61
63
  ```
62
64
 
63
65
  </TabItem>
@@ -76,6 +78,7 @@ m365 status
76
78
  authType | DeviceCode
77
79
  appId | 31359c7f-bd7e-475c-86db-fdb8c937548e
78
80
  appTenant | common
81
+ cloudType | Public
79
82
  ```
80
83
 
81
84
  </TabItem>
@@ -26,9 +26,13 @@ m365 util accesstoken get [options]
26
26
 
27
27
  ## Remarks
28
28
 
29
- The `util accesstoken get` command returns an access token for the specified resource. If an access token has been previously retrieved and is still valid, the command will return the cached token. If you want to ensure that the returned access token is valid for as long as possible, you can force the command to retrieve a new access token by using the `--new` option.
29
+ :::tip
30
+
31
+ Instead of specifying the full URL of the resource, you can use one of the following shorthand identifiers: `sharepoint`, `graph`.
30
32
 
31
- If the URL of your SharePoint tenant has been previously retrieved, you can use `sharepoint` as the resource to retrieve access token for SharePoint. To verify if the URL of your SharePoint tenant has been previously retrieved, use the [`spo get`](../../spo/spo-get.mdx) command. To explicitly set the URL of your SharePoint tenant use the [`spo set`](../../spo/spo-set.mdx) command.
33
+ :::
34
+
35
+ The `util accesstoken get` command returns an access token for the specified resource. If an access token has been previously retrieved and is still valid, the command will return the cached token. If you want to ensure that the returned access token is valid for as long as possible, you can force the command to retrieve a new access token by using the `--new` option.
32
36
 
33
37
  ## Examples
34
38
 
@@ -44,6 +48,12 @@ Get access token for SharePoint Online using the shorthand identifier
44
48
  m365 util accesstoken get --resource sharepoint
45
49
  ```
46
50
 
51
+ Get access token for Microsoft Graph using the shorthand identifier
52
+
53
+ ```sh
54
+ m365 util accesstoken get --resource graph
55
+ ```
56
+
47
57
  Get a new access token for SharePoint Online
48
58
 
49
59
  ```sh