@pnp/cli-microsoft365 6.8.0-beta.f473be5 → 6.8.0

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 (224) hide show
  1. package/.eslintrc.js +2 -0
  2. package/README.md +6 -1
  3. package/dist/Command.js +6 -0
  4. package/dist/chili/chili.js +298 -0
  5. package/dist/chili/index.js +20 -0
  6. package/dist/cli/Cli.js +2 -2
  7. package/dist/m365/aad/commands/user/user-add.js +30 -21
  8. package/dist/m365/app/commands/permission/permission-add.js +279 -0
  9. package/dist/m365/app/commands.js +1 -0
  10. package/dist/m365/commands/commands.js +2 -0
  11. package/dist/m365/commands/docs.js +42 -0
  12. package/dist/m365/commands/login.js +1 -1
  13. package/dist/m365/commands/setup.js +180 -0
  14. package/dist/m365/commands/setupPresets.js +25 -0
  15. package/dist/m365/pa/commands/app/app-consent-set.js +101 -0
  16. package/dist/m365/pa/commands.js +1 -0
  17. package/dist/m365/purview/commands/sensitivitylabel/sensitivitylabel-get.js +97 -0
  18. package/dist/m365/purview/commands/sensitivitylabel/sensitivitylabel-list.js +85 -0
  19. package/dist/m365/purview/commands/sensitivitylabel/sensitivitylabel-policysettings-list.js +89 -0
  20. package/dist/m365/purview/commands.js +3 -0
  21. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.17.2.js +25 -0
  22. package/dist/m365/spfx/commands/project/project-doctor/rules/FN001035_DEP_fluentui_react.js +18 -0
  23. package/dist/m365/spfx/commands/project/project-doctor/rules/FN021009_PKG_no_duplicate_oui_deps.js +11 -4
  24. package/dist/m365/spfx/commands/project/project-doctor.js +2 -1
  25. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001035_DEP_fluentui_react.js +18 -0
  26. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.15.2.js +2 -0
  27. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.17.2.js +61 -0
  28. package/dist/m365/spfx/commands/project/project-upgrade.js +2 -1
  29. package/dist/m365/spfx/commands/spfx-doctor.js +29 -30
  30. package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-remove.js +146 -0
  31. package/dist/m365/spo/commands/file/file-list.js +15 -4
  32. package/dist/m365/spo/commands/file/file-remove.js +3 -0
  33. package/dist/m365/spo/commands/list/list-get.js +30 -3
  34. package/dist/m365/spo/commands/list/list-list.js +39 -2
  35. package/dist/m365/spo/commands/listitem/listitem-batch-set.js +308 -0
  36. package/dist/m365/spo/commands/page/page-section-add.js +2 -3
  37. package/dist/m365/spo/commands/site/site-recyclebinitem-move.js +119 -0
  38. package/dist/m365/spo/commands/site/site-recyclebinitem-remove.js +106 -0
  39. package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-get.js +30 -39
  40. package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-list.js +47 -0
  41. package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-remove.js +151 -0
  42. package/dist/m365/spo/commands/tenant/tenant-commandset-remove.js +152 -0
  43. package/dist/m365/spo/commands/tenant/tenant-commandset-set.js +203 -0
  44. package/dist/m365/spo/commands/term/term-add.js +13 -4
  45. package/dist/m365/spo/commands/term/term-get.js +14 -5
  46. package/dist/m365/spo/commands/term/term-group-get.js +12 -3
  47. package/dist/m365/spo/commands/term/term-group-list.js +39 -4
  48. package/dist/m365/spo/commands/term/term-list.js +18 -9
  49. package/dist/m365/spo/commands/term/term-set-add.js +13 -4
  50. package/dist/m365/spo/commands/term/term-set-get.js +12 -3
  51. package/dist/m365/spo/commands/term/term-set-list.js +12 -3
  52. package/dist/m365/spo/commands.js +9 -0
  53. package/dist/m365/teams/commands/chat/chat-member-remove.js +137 -0
  54. package/dist/m365/teams/commands.js +1 -0
  55. package/dist/utils/formatting.js +35 -11
  56. package/dist/utils/pid.js +5 -0
  57. package/docs/docs/cmd/aad/o365group/o365group-get.md +0 -12
  58. package/docs/docs/cmd/aad/user/user-add.md +4 -0
  59. package/docs/docs/cmd/aad/user/user-set.md +2 -2
  60. package/docs/docs/cmd/adaptivecard/adaptivecard-send.md +13 -13
  61. package/docs/docs/cmd/app/app-get.md +25 -6
  62. package/docs/docs/cmd/app/app-open.md +8 -2
  63. package/docs/docs/cmd/app/permission/permission-add.md +53 -0
  64. package/docs/docs/cmd/app/permission/permission-list.md +19 -19
  65. package/docs/docs/cmd/booking/business/business-get.md +30 -8
  66. package/docs/docs/cmd/booking/business/business-list.md +17 -8
  67. package/docs/docs/cmd/cli/cli-consent.md +6 -0
  68. package/docs/docs/cmd/cli/cli-doctor.md +17 -0
  69. package/docs/docs/cmd/cli/cli-issue.md +6 -0
  70. package/docs/docs/cmd/cli/cli-reconsent.md +6 -0
  71. package/docs/docs/cmd/cli/completion/completion-sh-setup.md +6 -0
  72. package/docs/docs/cmd/cli/config/config-get.md +6 -0
  73. package/docs/docs/cmd/docs.md +51 -0
  74. package/docs/docs/cmd/flow/environment/environment-list.md +18 -0
  75. package/docs/docs/cmd/flow/flow-get.md +20 -0
  76. package/docs/docs/cmd/flow/flow-list.md +17 -0
  77. package/docs/docs/cmd/graph/changelog/changelog-list.md +52 -0
  78. package/docs/docs/cmd/graph/schemaextension/schemaextension-add.md +61 -0
  79. package/docs/docs/cmd/graph/schemaextension/schemaextension-get.md +61 -0
  80. package/docs/docs/cmd/graph/schemaextension/schemaextension-list.md +61 -0
  81. package/docs/docs/cmd/graph/schemaextension/schemaextension-remove.md +4 -0
  82. package/docs/docs/cmd/graph/schemaextension/schemaextension-set.md +4 -0
  83. package/docs/docs/cmd/graph/subscription/subscription-add.md +73 -0
  84. package/docs/docs/cmd/login.md +1 -1
  85. package/docs/docs/cmd/onedrive/onedrive-list.md +225 -0
  86. package/docs/docs/cmd/onedrive/report/report-activityfilecounts.md +39 -0
  87. package/docs/docs/cmd/onedrive/report/report-activityusercounts.md +39 -0
  88. package/docs/docs/cmd/onedrive/report/report-activityuserdetail.md +43 -0
  89. package/docs/docs/cmd/onedrive/report/report-usageaccountcounts.md +38 -0
  90. package/docs/docs/cmd/onedrive/report/report-usageaccountdetail.md +43 -0
  91. package/docs/docs/cmd/onedrive/report/report-usagefilecounts.md +38 -0
  92. package/docs/docs/cmd/onedrive/report/report-usagestorage.md +37 -0
  93. package/docs/docs/cmd/onenote/notebook/notebook-list.md +79 -0
  94. package/docs/docs/cmd/pa/app/app-consent-set.md +47 -0
  95. package/docs/docs/cmd/planner/plan/plan-get.md +1 -1
  96. package/docs/docs/cmd/planner/plan/plan-list.md +1 -1
  97. package/docs/docs/cmd/planner/roster/roster-add.md +2 -1
  98. package/docs/docs/cmd/planner/roster/roster-get.md +1 -1
  99. package/docs/docs/cmd/planner/roster/roster-remove.md +2 -1
  100. package/docs/docs/cmd/planner/task/task-get.md +0 -6
  101. package/docs/docs/cmd/planner/task/task-set.md +1 -1
  102. package/docs/docs/cmd/purview/retentionevent/retentionevent-add.md +6 -7
  103. package/docs/docs/cmd/purview/retentionevent/retentionevent-get.md +6 -7
  104. package/docs/docs/cmd/purview/retentionevent/retentionevent-list.md +4 -4
  105. package/docs/docs/cmd/purview/retentionevent/retentionevent-remove.md +4 -4
  106. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-add.md +10 -10
  107. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-get.md +11 -11
  108. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-list.md +10 -10
  109. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-remove.md +10 -10
  110. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-set.md +10 -10
  111. package/docs/docs/cmd/purview/retentionlabel/retentionlabel-add.md +12 -12
  112. package/docs/docs/cmd/purview/retentionlabel/retentionlabel-get.md +8 -9
  113. package/docs/docs/cmd/purview/retentionlabel/retentionlabel-list.md +8 -9
  114. package/docs/docs/cmd/purview/retentionlabel/retentionlabel-remove.md +8 -8
  115. package/docs/docs/cmd/purview/retentionlabel/retentionlabel-set.md +8 -8
  116. package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-get.md +118 -0
  117. package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-list.md +111 -0
  118. package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-policysettings-list.md +97 -0
  119. package/docs/docs/cmd/search/externalconnection/externalconnection-get.md +17 -0
  120. package/docs/docs/cmd/search/externalconnection/externalconnection-list.md +17 -0
  121. package/docs/docs/cmd/setup.md +86 -0
  122. package/docs/docs/cmd/spfx/project/project-doctor.md +1 -1
  123. package/docs/docs/cmd/spfx/project/project-upgrade.md +1 -1
  124. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-add.md +1 -1
  125. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-remove.md +77 -0
  126. package/docs/docs/cmd/spo/commandset/commandset-set.md +1 -1
  127. package/docs/docs/cmd/spo/contenttype/contenttype-set.md +2 -2
  128. package/docs/docs/cmd/spo/customaction/customaction-add.md +1 -1
  129. package/docs/docs/cmd/spo/customaction/customaction-set.md +1 -1
  130. package/docs/docs/cmd/spo/file/file-list.md +9 -6
  131. package/docs/docs/cmd/spo/file/file-remove.md +12 -0
  132. package/docs/docs/cmd/spo/folder/folder-copy.md +1 -1
  133. package/docs/docs/cmd/spo/list/list-get.md +10 -0
  134. package/docs/docs/cmd/spo/list/list-list.md +28 -0
  135. package/docs/docs/cmd/spo/listitem/listitem-batch-set.md +67 -0
  136. package/docs/docs/cmd/spo/listitem/listitem-list.md +1 -1
  137. package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-list.md +19 -0
  138. package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-remove.md +12 -0
  139. package/docs/docs/cmd/spo/orgnewssite/orgnewssite-list.md +6 -0
  140. package/docs/docs/cmd/spo/page/page-column-get.md +15 -0
  141. package/docs/docs/cmd/spo/page/page-column-list.md +16 -0
  142. package/docs/docs/cmd/spo/page/page-control-get.md +18 -0
  143. package/docs/docs/cmd/spo/page/page-control-list.md +18 -0
  144. package/docs/docs/cmd/spo/page/page-copy.md +35 -0
  145. package/docs/docs/cmd/spo/page/page-get.md +39 -0
  146. package/docs/docs/cmd/spo/page/page-list.md +53 -0
  147. package/docs/docs/cmd/spo/page/page-section-get.md +12 -0
  148. package/docs/docs/cmd/spo/page/page-section-list.md +13 -0
  149. package/docs/docs/cmd/spo/page/page-template-list.md +31 -0
  150. package/docs/docs/cmd/spo/propertybag/propertybag-get.md +6 -0
  151. package/docs/docs/cmd/spo/propertybag/propertybag-list.md +13 -0
  152. package/docs/docs/cmd/spo/report/report-activityfilecounts.md +7 -0
  153. package/docs/docs/cmd/spo/report/report-activitypages.md +7 -0
  154. package/docs/docs/cmd/spo/report/report-activityusercounts.md +7 -0
  155. package/docs/docs/cmd/spo/report/report-activityuserdetail.md +7 -0
  156. package/docs/docs/cmd/spo/report/report-siteusagedetail.md +7 -0
  157. package/docs/docs/cmd/spo/report/report-siteusagefilecounts.md +7 -0
  158. package/docs/docs/cmd/spo/report/report-siteusagepages.md +7 -0
  159. package/docs/docs/cmd/spo/report/report-siteusagesitecounts.md +7 -0
  160. package/docs/docs/cmd/spo/report/report-siteusagestorage.md +7 -0
  161. package/docs/docs/cmd/spo/roledefinition/roledefinition-get.md +20 -0
  162. package/docs/docs/cmd/spo/roledefinition/roledefinition-list.md +20 -0
  163. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-add.md +20 -0
  164. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-list.md +18 -0
  165. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-approve.md +20 -0
  166. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-list.md +17 -0
  167. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-set.md +13 -0
  168. package/docs/docs/cmd/spo/site/site-recyclebinitem-move.md +43 -0
  169. package/docs/docs/cmd/spo/site/site-recyclebinitem-remove.md +45 -0
  170. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-add.md +1 -1
  171. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-list.md +103 -0
  172. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-remove.md +49 -0
  173. package/docs/docs/cmd/spo/tenant/tenant-commandset-remove.md +49 -0
  174. package/docs/docs/cmd/spo/tenant/tenant-commandset-set.md +57 -0
  175. package/docs/docs/cmd/spo/term/term-add.md +107 -6
  176. package/docs/docs/cmd/spo/term/term-get.md +111 -10
  177. package/docs/docs/cmd/spo/term/term-group-get.md +71 -5
  178. package/docs/docs/cmd/spo/term/term-group-list.md +70 -2
  179. package/docs/docs/cmd/spo/term/term-list.md +80 -8
  180. package/docs/docs/cmd/spo/term/term-set-add.md +95 -11
  181. package/docs/docs/cmd/spo/term/term-set-get.md +92 -8
  182. package/docs/docs/cmd/spo/term/term-set-list.md +85 -5
  183. package/docs/docs/cmd/teams/app/app-list.md +17 -0
  184. package/docs/docs/cmd/teams/app/app-publish.md +18 -1
  185. package/docs/docs/cmd/teams/channel/channel-add.md +20 -0
  186. package/docs/docs/cmd/teams/channel/channel-get.md +21 -0
  187. package/docs/docs/cmd/teams/channel/channel-list.md +21 -0
  188. package/docs/docs/cmd/teams/channel/channel-member-list.md +20 -0
  189. package/docs/docs/cmd/teams/channel/channel-member-set.md +21 -0
  190. package/docs/docs/cmd/teams/chat/chat-get.md +22 -0
  191. package/docs/docs/cmd/teams/chat/chat-list.md +22 -0
  192. package/docs/docs/cmd/teams/chat/chat-member-list.md +20 -0
  193. package/docs/docs/cmd/teams/chat/chat-member-remove.md +52 -0
  194. package/docs/docs/cmd/teams/chat/chat-message-list.md +23 -0
  195. package/docs/docs/cmd/teams/funsettings/funsettings-list.md +15 -0
  196. package/docs/docs/cmd/teams/guestsettings/guestsettings-list.md +13 -0
  197. package/docs/docs/cmd/teams/membersettings/membersettings-list.md +17 -0
  198. package/docs/docs/cmd/teams/tab/tab-remove.md +1 -1
  199. package/docs/docs/cmd/todo/list/list-add.md +18 -0
  200. package/docs/docs/cmd/todo/list/list-get.md +18 -0
  201. package/docs/docs/cmd/todo/list/list-list.md +18 -0
  202. package/docs/docs/cmd/todo/task/task-get.md +21 -0
  203. package/docs/docs/cmd/todo/task/task-list.md +21 -0
  204. package/docs/docs/cmd/util/accesstoken/accesstoken-get.md +6 -0
  205. package/docs/docs/cmd/version.md +1 -1
  206. package/docs/docs/cmd/viva/connections/connections-app-create.md +3 -3
  207. package/docs/docs/cmd/yammer/group/group-list.md +42 -0
  208. package/docs/docs/cmd/yammer/message/message-add.md +32 -0
  209. package/docs/docs/cmd/yammer/message/message-get.md +32 -0
  210. package/docs/docs/cmd/yammer/message/message-list.md +34 -0
  211. package/docs/docs/cmd/yammer/network/network-list.md +70 -0
  212. package/docs/docs/cmd/yammer/report/report-activitycounts.md +7 -0
  213. package/docs/docs/cmd/yammer/report/report-activityusercounts.md +7 -0
  214. package/docs/docs/cmd/yammer/report/report-activityuserdetail.md +7 -0
  215. package/docs/docs/cmd/yammer/report/report-deviceusagedistributionusercounts.md +7 -0
  216. package/docs/docs/cmd/yammer/report/report-deviceusageusercounts.md +7 -0
  217. package/docs/docs/cmd/yammer/report/report-deviceusageuserdetail.md +7 -0
  218. package/docs/docs/cmd/yammer/report/report-groupsactivitycounts.md +7 -0
  219. package/docs/docs/cmd/yammer/report/report-groupsactivitydetail.md +7 -0
  220. package/docs/docs/cmd/yammer/report/report-groupsactivitygroupcounts.md +7 -0
  221. package/docs/docs/cmd/yammer/user/user-get.md +55 -0
  222. package/docs/docs/cmd/yammer/user/user-list.md +55 -0
  223. package/docs/docs/cmd/yammer/yammer-search.md +15 -3
  224. package/package.json +3 -2
@@ -1,9 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.formatting = void 0;
3
+ exports.formatting = exports.CheckStatus = void 0;
4
+ const chalk = require("chalk");
4
5
  const stripJsonComments = require("strip-json-comments");
5
6
  const base_permissions_1 = require("../m365/spo/base-permissions");
6
7
  const RoleType_1 = require("../m365/spo/commands/roledefinition/RoleType");
8
+ /**
9
+ * Has the particular check passed or failed
10
+ */
11
+ var CheckStatus;
12
+ (function (CheckStatus) {
13
+ CheckStatus[CheckStatus["Success"] = 0] = "Success";
14
+ CheckStatus[CheckStatus["Failure"] = 1] = "Failure";
15
+ })(CheckStatus = exports.CheckStatus || (exports.CheckStatus = {}));
7
16
  exports.formatting = {
8
17
  escapeXml(s) {
9
18
  if (!s) {
@@ -54,16 +63,23 @@ exports.formatting = {
54
63
  const regex = new RegExp(`\\s*(${quoteChar})?(.*?)\\1\\s*(?:${delimiter}|$)`, 'gs');
55
64
  const lines = s.split('\n');
56
65
  const match = (line) => [...line.matchAll(regex)]
57
- .map(m => m[2]) // we only want the second capture group
58
- .slice(0, -1); // cut off blank match at the end
59
- const heads = match(lines[0]);
60
- return lines.slice(1).map(line => {
61
- return match(line).reduce((acc, cur, i) => {
62
- const val = cur;
63
- const numValue = parseInt(val);
64
- const key = heads[i];
65
- return Object.assign(Object.assign({}, acc), { [key]: isNaN(numValue) || numValue.toString() !== val ? val : numValue });
66
- }, {});
66
+ .map(m => m[2]); // we only want the second capture group
67
+ const heads = match(lines[0]).slice(0, -1);
68
+ return lines.slice(1)
69
+ .filter(text => text.trim() !== '')
70
+ .map(line => {
71
+ const lineMatch = match(line);
72
+ const obj = {};
73
+ heads.forEach((key, index) => {
74
+ const value = parseInt(lineMatch[index]);
75
+ if (isNaN(value) || value.toString() !== lineMatch[index]) {
76
+ obj[key] = lineMatch[index];
77
+ }
78
+ else {
79
+ obj[key] = parseInt(lineMatch[index]);
80
+ }
81
+ });
82
+ return obj;
67
83
  });
68
84
  },
69
85
  encodeQueryParameter(value) {
@@ -132,6 +148,14 @@ exports.formatting = {
132
148
  }
133
149
  xml = xml.replace(/<\/?[0-9]{1,}>/g, '');
134
150
  return xml;
151
+ },
152
+ getStatus(result, message) {
153
+ const primarySupported = process.platform !== 'win32' ||
154
+ process.env.CI === 'true' ||
155
+ process.env.TERM === 'xterm-256color';
156
+ const success = primarySupported ? '✔' : '√';
157
+ const failure = primarySupported ? '✖' : '×';
158
+ return `${result === CheckStatus.Success ? chalk.green(success) : chalk.red(failure)} ${message}`;
135
159
  }
136
160
  };
137
161
  //# sourceMappingURL=formatting.js.map
package/dist/utils/pid.js CHANGED
@@ -68,6 +68,11 @@ exports.pid = {
68
68
  return processName;
69
69
  }
70
70
  return undefined;
71
+ },
72
+ isPowerShell() {
73
+ const processName = exports.pid.getProcessName(process.ppid) || '';
74
+ return processName.indexOf('powershell') > -1 ||
75
+ processName.indexOf('pwsh') > -1;
71
76
  }
72
77
  };
73
78
  //# sourceMappingURL=pid.js.map
@@ -8,12 +8,6 @@ Gets information about the specified Microsoft 365 Group or Microsoft Teams team
8
8
  m365 aad o365group get [options]
9
9
  ```
10
10
 
11
- ## Alias
12
-
13
- ```sh
14
- m365 teams team get
15
- ```
16
-
17
11
  ## Options
18
12
 
19
13
  `-i, --id <id>`
@@ -37,9 +31,3 @@ Get information about the Microsoft 365 Group with id _1caf7dcd-7e83-4c3a-94f7-9
37
31
  ```sh
38
32
  m365 aad o365group get --id 1caf7dcd-7e83-4c3a-94f7-932a1299c844 --includeSiteUrl
39
33
  ```
40
-
41
- Get information about the Microsoft Teams team with id _2eaf7dcd-7e83-4c3a-94f7-932a1299c844_
42
-
43
- ```sh
44
- m365 teams team get --id 2eaf7dcd-7e83-4c3a-94f7-932a1299c844
45
- ```
@@ -71,6 +71,10 @@ m365 aad user add [options]
71
71
  !!! note
72
72
  After running this command, it may take a minute before the user is effectively created in the tenant.
73
73
 
74
+ This command allows using unknown options. For a comprehensive list of user properties, please refer to the [Graph documentation page](https://learn.microsoft.com/en-us/graph/api/resources/user?view=graph-rest-1.0#properties).
75
+
76
+ If the specified option is not found, you will receive a `Resource 'xyz' does not exist or one of its queried reference-property objects are not present.` error.
77
+
74
78
  ## Examples
75
79
 
76
80
  Create a user and let him/her update the password at first login
@@ -74,9 +74,9 @@ m365 aad user set [options]
74
74
 
75
75
  ## Remarks
76
76
 
77
- This command allows using unknown options.
77
+ This command allows using unknown options. For a comprehensive list of user properties, please refer to the [Graph documentation page](https://learn.microsoft.com/en-us/graph/api/resources/user?view=graph-rest-1.0#properties).
78
78
 
79
- If the user with the specified id or user name doesn't exist, you will get a `Resource 'xyz' does not exist or one of its queried reference-property objects are not present.` error.
79
+ If the user with the specified ID or username doesn't exist, or if the specified option is not found, you will receive a `Resource 'xyz' does not exist or one of its queried reference-property objects are not present.` error.
80
80
 
81
81
  ## Examples
82
82
 
@@ -17,7 +17,7 @@ m365 adaptivecard send [options]
17
17
  : Title of the card. Specify either `title` or `card` but not both.
18
18
 
19
19
  `-d, --description [description]`
20
- : Contents of the card
20
+ : Contents of the card.
21
21
 
22
22
  `-i, --imageUrl [imageUrl]`
23
23
  : URL of the image to include on the card.
@@ -48,73 +48,73 @@ If your custom card is a card template (card with placeholders like `${title}`),
48
48
 
49
49
  ## Examples
50
50
 
51
- Send a predefined adaptive card with just title
51
+ Send a predefined adaptive card with just title.
52
52
 
53
53
  ```sh
54
54
  m365 adaptivecard send --url https://contoso.webhook.office.com/webhookb2/892e8ed3-997c-4b6e-8f8a-7f32728a8a87@f7322380-f203-42ff-93e8-66e266f6d2e4/IncomingWebhook/fcc6565ec7a944928bd43d6fc193b258/4f0482d4-b147-4f67-8a61-11f0a5019547 --title "CLI for Microsoft 365 v3.4"
55
55
  ```
56
56
 
57
- Send a predefined adaptive card with just description
57
+ Send a predefined adaptive card with just description.
58
58
 
59
59
  ```sh
60
60
  m365 adaptivecard send --url https://contoso.webhook.office.com/webhookb2/892e8ed3-997c-4b6e-8f8a-7f32728a8a87@f7322380-f203-42ff-93e8-66e266f6d2e4/IncomingWebhook/fcc6565ec7a944928bd43d6fc193b258/4f0482d4-b147-4f67-8a61-11f0a5019547 --description "New release of CLI for Microsoft 365"
61
61
  ```
62
62
 
63
- Send card with title and description
63
+ Send card with title and description.
64
64
 
65
65
  ```sh
66
66
  m365 adaptivecard send --url https://contoso.webhook.office.com/webhookb2/892e8ed3-997c-4b6e-8f8a-7f32728a8a87@f7322380-f203-42ff-93e8-66e266f6d2e4/IncomingWebhook/fcc6565ec7a944928bd43d6fc193b258/4f0482d4-b147-4f67-8a61-11f0a5019547 --title "CLI for Microsoft 365 v3.4" --description "New release of CLI for Microsoft 365"
67
67
  ```
68
68
 
69
- Send card with title, description and image
69
+ Send card with title, description, and image.
70
70
 
71
71
  ```sh
72
72
  m365 adaptivecard send --url https://contoso.webhook.office.com/webhookb2/892e8ed3-997c-4b6e-8f8a-7f32728a8a87@f7322380-f203-42ff-93e8-66e266f6d2e4/IncomingWebhook/fcc6565ec7a944928bd43d6fc193b258/4f0482d4-b147-4f67-8a61-11f0a5019547 --title "CLI for Microsoft 365 v3.4" --description "New release of CLI for Microsoft 365" --imageUrl "https://contoso.com/image.gif"
73
73
  ```
74
74
 
75
- Send card with title, description and action
75
+ Send card with title, description, and action.
76
76
 
77
77
  ```sh
78
78
  m365 adaptivecard send --url https://contoso.webhook.office.com/webhookb2/892e8ed3-997c-4b6e-8f8a-7f32728a8a87@f7322380-f203-42ff-93e8-66e266f6d2e4/IncomingWebhook/fcc6565ec7a944928bd43d6fc193b258/4f0482d4-b147-4f67-8a61-11f0a5019547 --title "CLI for Microsoft 365 v3.4" --description "New release of CLI for Microsoft 365" --actionUrl "https://aka.ms/cli-m365"
79
79
  ```
80
80
 
81
- Send card with title, description, image and action
81
+ Send card with title, description, image, and action.
82
82
 
83
83
  ```sh
84
84
  m365 adaptivecard send --url https://contoso.webhook.office.com/webhookb2/892e8ed3-997c-4b6e-8f8a-7f32728a8a87@f7322380-f203-42ff-93e8-66e266f6d2e4/IncomingWebhook/fcc6565ec7a944928bd43d6fc193b258/4f0482d4-b147-4f67-8a61-11f0a5019547 --title "CLI for Microsoft 365 v3.4" --description "New release of CLI for Microsoft 365" --imageUrl "https://contoso.com/image.gif" --actionUrl "https://aka.ms/cli-m365"
85
85
  ```
86
86
 
87
- Send card with title, description, action and unknown options
87
+ Send card with title, description, action, and unknown options.
88
88
 
89
89
  ```sh
90
90
  m365 adaptivecard send --url https://contoso.webhook.office.com/webhookb2/892e8ed3-997c-4b6e-8f8a-7f32728a8a87@f7322380-f203-42ff-93e8-66e266f6d2e4/IncomingWebhook/fcc6565ec7a944928bd43d6fc193b258/4f0482d4-b147-4f67-8a61-11f0a5019547 --title "CLI for Microsoft 365 v3.4" --description "New release of CLI for Microsoft 365" --actionUrl "https://aka.ms/cli-m365" --Version "v3.4.0" --ReleaseNotes "https://pnp.github.io/cli-microsoft365/about/release-notes/#v340"
91
91
  ```
92
92
 
93
- Send custom card without any data
93
+ Send custom card without any data.
94
94
 
95
95
  ```sh
96
96
  m365 adaptivecard send --url https://contoso.webhook.office.com/webhookb2/892e8ed3-997c-4b6e-8f8a-7f32728a8a87@f7322380-f203-42ff-93e8-66e266f6d2e4/IncomingWebhook/fcc6565ec7a944928bd43d6fc193b258/4f0482d4-b147-4f67-8a61-11f0a5019547 --card '{"type":"AdaptiveCard","body":[{"type":"TextBlock","size":"Medium","weight":"Bolder","text":"CLI for Microsoft 365 v3.4"},{"type":"TextBlock","text":"New release of CLI for Microsoft 365","wrap":true}],"actions":[{"type":"Action.OpenUrl","title":"View","url":"https://aka.ms/cli-m365"}],"$schema":"http://adaptivecards.io/schemas/adaptive-card.json","version":"1.2"}'
97
97
  ```
98
98
 
99
- Send custom card with just title merged
99
+ Send custom card with just title merged.
100
100
 
101
101
  ```sh
102
102
  m365 adaptivecard send --url https://contoso.webhook.office.com/webhookb2/892e8ed3-997c-4b6e-8f8a-7f32728a8a87@f7322380-f203-42ff-93e8-66e266f6d2e4/IncomingWebhook/fcc6565ec7a944928bd43d6fc193b258/4f0482d4-b147-4f67-8a61-11f0a5019547 --card '{"type":"AdaptiveCard","body":[{"type":"TextBlock","size":"Medium","weight":"Bolder","text":"${title}"}],"$schema":"http://adaptivecards.io/schemas/adaptive-card.json","version":"1.2"}' --title "CLI for Microsoft 365 v3.4"
103
103
  ```
104
104
 
105
- Send custom card with all known options merged
105
+ Send custom card with all known options merged.
106
106
 
107
107
  ```sh
108
108
  m365 adaptivecard send --url https://contoso.webhook.office.com/webhookb2/892e8ed3-997c-4b6e-8f8a-7f32728a8a87@f7322380-f203-42ff-93e8-66e266f6d2e4/IncomingWebhook/fcc6565ec7a944928bd43d6fc193b258/4f0482d4-b147-4f67-8a61-11f0a5019547 --card '{"type":"AdaptiveCard","body":[{"type":"TextBlock","size":"Medium","weight":"Bolder","text":"${title}"},{"type":"TextBlock","text":"${description}","wrap":true},{"type":"FactSet","facts":[{"$data":"${properties}","title":"${key}:","value":"${value}"}]}],"actions":[{"type":"Action.OpenUrl","title":"View","url":"${actionUrl}"}],"$schema":"http://adaptivecards.io/schemas/adaptive-card.json","version":"1.2"}' --title "CLI for Microsoft 365 v3.4" --description "New release of CLI for Microsoft 365" --imageUrl "https://contoso.com/image.gif" --actionUrl "https://aka.ms/cli-m365"
109
109
  ```
110
110
 
111
- Send custom card with unknown option merged
111
+ Send custom card with unknown option merged.
112
112
 
113
113
  ```sh
114
114
  m365 adaptivecard send --url https://contoso.webhook.office.com/webhookb2/892e8ed3-997c-4b6e-8f8a-7f32728a8a87@f7322380-f203-42ff-93e8-66e266f6d2e4/IncomingWebhook/fcc6565ec7a944928bd43d6fc193b258/4f0482d4-b147-4f67-8a61-11f0a5019547 --card '{"type":"AdaptiveCard","body":[{"type":"TextBlock","size":"Medium","weight":"Bolder","text":"${Title}"}],"$schema":"http://adaptivecards.io/schemas/adaptive-card.json","version":"1.2"}' --Title "CLI for Microsoft 365 v3.4"
115
115
  ```
116
116
 
117
- Send custom card with card data
117
+ Send custom card with card data.
118
118
 
119
119
  ```sh
120
120
  m365 adaptivecard send --url https://contoso.webhook.office.com/webhookb2/892e8ed3-997c-4b6e-8f8a-7f32728a8a87@f7322380-f203-42ff-93e8-66e266f6d2e4/IncomingWebhook/fcc6565ec7a944928bd43d6fc193b258/4f0482d4-b147-4f67-8a61-11f0a5019547 --card '{"type":"AdaptiveCard","body":[{"type":"TextBlock","size":"Medium","weight":"Bolder","text":"${title}"},{"type":"TextBlock","text":"${description}","wrap":true},{"type":"FactSet","facts":[{"$data":"${properties}","title":"${key}:","value":"${value}"}]}],"actions":[{"type":"Action.OpenUrl","title":"View","url":"${viewUrl}"}],"$schema":"http://adaptivecards.io/schemas/adaptive-card.json","version":"1.2"}' --cardData '{"title":"Publish Adaptive Card Schema","description":"Now that we have defined the main rules and features of the format, we need to produce a schema and publish it to GitHub. The schema will be the starting point of our reference documentation.","creator":{"name":"Matt Hidinger","profileImage":"https://pbs.twimg.com/profile_images/3647943215/d7f12830b3c17a5a9e4afcc370e3a37e_400x400.jpeg"},"createdUtc":"2017-02-14T06:08:39Z","viewUrl":"https://adaptivecards.io","properties":[{"key":"Board","value":"Adaptive Cards"},{"key":"List","value":"Backlog"},{"key":"Assigned to","value":"Matt Hidinger"},{"key":"Due date","value":"Not set"}]}'
@@ -11,7 +11,7 @@ m365 app get [options]
11
11
  ## Options
12
12
 
13
13
  `--appId [appId]`
14
- : Client ID of the Azure AD app registered in the .m365rc.json file to retrieve information for
14
+ : Client ID of the Azure AD app registered in the .m365rc.json file to retrieve information for.
15
15
 
16
16
  --8<-- "docs/cmd/_global.md"
17
17
 
@@ -23,13 +23,13 @@ If you have multiple apps registered in your .m365rc.json file, you can specify
23
23
 
24
24
  ## Examples
25
25
 
26
- Retrieve information about your current Azure AD app
26
+ Retrieve information about your current Azure AD app.
27
27
 
28
28
  ```sh
29
29
  m365 app get
30
30
  ```
31
31
 
32
- Retrieve information about the Azure AD app with client ID _e23d235c-fcdf-45d1-ac5f-24ab2ee0695d_ specified in the _.m365rc.json_ file
32
+ Retrieve information about the Azure AD app with client ID specified in the _.m365rc.json_ file.
33
33
 
34
34
  ```sh
35
35
  m365 app get --appId e23d235c-fcdf-45d1-ac5f-24ab2ee0695d
@@ -54,7 +54,7 @@ m365 app get --appId e23d235c-fcdf-45d1-ac5f-24ab2ee0695d
54
54
  "isDeviceOnlyAuthSupported": null,
55
55
  "isFallbackPublicClient": null,
56
56
  "notes": null,
57
- "publisherDomain": "8b7jz1.onmicrosoft.com",
57
+ "publisherDomain": "contoso.onmicrosoft.com",
58
58
  "serviceManagementReference": null,
59
59
  "signInAudience": "AzureADMyOrg",
60
60
  "tags": [],
@@ -172,7 +172,7 @@ m365 app get --appId e23d235c-fcdf-45d1-ac5f-24ab2ee0695d
172
172
  parentalControlSettings : {"countriesBlockedForMinors":[],"legalAgeGroupRule":"Allow"}
173
173
  passwordCredentials : []
174
174
  publicClient : {"redirectUris":[]}
175
- publisherDomain : 8b7jz1.onmicrosoft.com
175
+ publisherDomain : contoso.onmicrosoft.com
176
176
  requiredResourceAccess : [{"resourceAppId":"b55b276d-2b09-4ad2-8de5-f09cf24ffba9","resourceAccess":[{"id":"162b1576-a2b2-458d-b7b9-04481911b4ef","type":"Role"}]},{"resourceAppId":"00000005-0000-0ff1-ce00-000000000000","resourceAccess":[{"id":"8e5870bb-8808-44dc-8e10-c509ed919ddd","type":"Scope"},{"id":"5db81a03-0de0-432b-b31e-71d57c8d2e0b","type":"Scope"}]}]
177
177
  samlMetadataUrl : null
178
178
  serviceManagementReference: null
@@ -188,5 +188,24 @@ m365 app get --appId e23d235c-fcdf-45d1-ac5f-24ab2ee0695d
188
188
 
189
189
  ```csv
190
190
  id,deletedDateTime,appId,applicationTemplateId,disabledByMicrosoftStatus,createdDateTime,displayName,description,groupMembershipClaims,identifierUris,isDeviceOnlyAuthSupported,isFallbackPublicClient,notes,publisherDomain,serviceManagementReference,signInAudience,tags,tokenEncryptionKeyId,samlMetadataUrl,defaultRedirectUri,certification,optionalClaims,addIns,api,appRoles,info,keyCredentials,parentalControlSettings,passwordCredentials,publicClient,requiredResourceAccess,verifiedPublisher,web,spa
191
- b3241f2a-6551-43d4-a72f-0d02ccfeb77f,,02f9ff8c-b79e-4552-bdda-4facd74d6df1,,,2022-10-28T21:20:57Z,My AAD app,,,[],,,,8b7jz1.onmicrosoft.com,,AzureADMyOrg,[],,,,,,[],"{""acceptMappedClaims"":null,""knownClientApplications"":[],""requestedAccessTokenVersion"":null,""oauth2PermissionScopes"":[],""preAuthorizedApplications"":[]}","[{""allowedMemberTypes"":[""User""],""description"":""Managers"",""displayName"":""Managers"",""id"":""d7c46856-8a66-485a-9047-098eba08b9a3"",""isEnabled"":true,""origin"":""Application"",""value"":""managers""}]","{""logoUrl"":null,""marketingUrl"":null,""privacyStatementUrl"":null,""supportUrl"":null,""termsOfServiceUrl"":null}",[],"{""countriesBlockedForMinors"":[],""legalAgeGroupRule"":""Allow""}",[],"{""redirectUris"":[]}","[{""resourceAppId"":""b55b276d-2b09-4ad2-8de5-f09cf24ffba9"",""resourceAccess"":[{""id"":""162b1576-a2b2-458d-b7b9-04481911b4ef"",""type"":""Role""}]},{""resourceAppId"":""00000005-0000-0ff1-ce00-000000000000"",""resourceAccess"":[{""id"":""8e5870bb-8808-44dc-8e10-c509ed919ddd"",""type"":""Scope""},{""id"":""5db81a03-0de0-432b-b31e-71d57c8d2e0b"",""type"":""Scope""}]}]","{""displayName"":null,""verifiedPublisherId"":null,""addedDateTime"":null}","{""homePageUrl"":null,""logoutUrl"":null,""redirectUris"":[],""implicitGrantSettings"":{""enableAccessTokenIssuance"":false,""enableIdTokenIssuance"":false},""redirectUriSettings"":[]}","{""redirectUris"":[]}"
191
+ b3241f2a-6551-43d4-a72f-0d02ccfeb77f,,02f9ff8c-b79e-4552-bdda-4facd74d6df1,,,2022-10-28T21:20:57Z,My AAD app,,,[],,,,contoso.onmicrosoft.com,,AzureADMyOrg,[],,,,,,[],"{""acceptMappedClaims"":null,""knownClientApplications"":[],""requestedAccessTokenVersion"":null,""oauth2PermissionScopes"":[],""preAuthorizedApplications"":[]}","[{""allowedMemberTypes"":[""User""],""description"":""Managers"",""displayName"":""Managers"",""id"":""d7c46856-8a66-485a-9047-098eba08b9a3"",""isEnabled"":true,""origin"":""Application"",""value"":""managers""}]","{""logoUrl"":null,""marketingUrl"":null,""privacyStatementUrl"":null,""supportUrl"":null,""termsOfServiceUrl"":null}",[],"{""countriesBlockedForMinors"":[],""legalAgeGroupRule"":""Allow""}",[],"{""redirectUris"":[]}","[{""resourceAppId"":""b55b276d-2b09-4ad2-8de5-f09cf24ffba9"",""resourceAccess"":[{""id"":""162b1576-a2b2-458d-b7b9-04481911b4ef"",""type"":""Role""}]},{""resourceAppId"":""00000005-0000-0ff1-ce00-000000000000"",""resourceAccess"":[{""id"":""8e5870bb-8808-44dc-8e10-c509ed919ddd"",""type"":""Scope""},{""id"":""5db81a03-0de0-432b-b31e-71d57c8d2e0b"",""type"":""Scope""}]}]","{""displayName"":null,""verifiedPublisherId"":null,""addedDateTime"":null}","{""homePageUrl"":null,""logoutUrl"":null,""redirectUris"":[],""implicitGrantSettings"":{""enableAccessTokenIssuance"":false,""enableIdTokenIssuance"":false},""redirectUriSettings"":[]}","{""redirectUris"":[]}"
192
+ ```
193
+
194
+ === "Markdown"
195
+
196
+ ```md
197
+ # app get --appId "02f9ff8c-b79e-4552-bdda-4facd74d6df1"
198
+
199
+ Date: 5/29/2023
200
+
201
+ ## My AAD app (b3241f2a-6551-43d4-a72f-0d02ccfeb77f)
202
+
203
+ Property | Value
204
+ ---------|-------
205
+ id | b3241f2a-6551-43d4-a72f-0d02ccfeb77f
206
+ appId | 02f9ff8c-b79e-4552-bdda-4facd74d6df1
207
+ createdDateTime | 2022-10-28T21:20:57Z
208
+ displayName | My AAD app
209
+ publisherDomain | contoso.onmicrosoft.com
210
+ signInAudience | AzureADMyOrg
192
211
  ```
@@ -1,6 +1,6 @@
1
1
  # app open
2
2
 
3
- Returns deep link of the current AD app to open the Azure portal on the Azure AD app registration management page.
3
+ Returns deep link of the current AD app to open the Azure portal on the Azure AD app registration management page
4
4
 
5
5
  ## Usage
6
6
 
@@ -38,7 +38,7 @@ Prints the url of the Azure AD application registration management page on the p
38
38
  m365 app open --preview
39
39
  ```
40
40
 
41
- Prints the URL to the Azure AD application registration management page on the Azure Portal, evading a possible choice prompt in the case of multiple saved apps in the `.m365rc.json` file.
41
+ Prints the URL to the Azure AD application registration management page on the Azure Portal, evading a possible choice prompt in the case of multiple saved apps in the _.m365rc.json_ file.
42
42
 
43
43
  ```sh
44
44
  m365 app open --appId d75be2e1-0204-4f95-857d-51a37cf40be8
@@ -63,3 +63,9 @@ m365 app open --appId d75be2e1-0204-4f95-857d-51a37cf40be8
63
63
  ```csv
64
64
  Use a web browser to open the page https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps/ApplicationMenuBlade/Overview/appId/02f9ff8c-b79e-4552-bdda-4facd74d6df2/isMSAApp/
65
65
  ```
66
+
67
+ === "Markdown"
68
+
69
+ ```md
70
+ Use a web browser to open the page https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps/ApplicationMenuBlade/Overview/appId/02f9ff8c-b79e-4552-bdda-4facd74d6df2/isMSAApp/
71
+ ```
@@ -0,0 +1,53 @@
1
+ # app permission add
2
+
3
+ Adds the specified application and/or delegated permissions to the current AAD app API permissions
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 app permission add [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `--appId [appId]`
14
+ : Client ID of the Azure AD app registered in the .m365rc.json file to retrieve API permissions for.
15
+
16
+ `--applicationPermission [applicationPermission]`
17
+ : Space-separated list of application permissions to add.
18
+
19
+ `--delegatedPermission [delegatedPermission]`
20
+ : Space-separated list of delegated permissions to add.
21
+
22
+ `--grantAdminConsent`
23
+ : If specified, admin consent to the newly added permissions will be granted.
24
+
25
+ --8<-- "docs/cmd/_global.md"
26
+
27
+ ## Remarks
28
+
29
+ If you have multiple apps registered in your .m365rc.json file, you can specify the app for which you'd like to retrieve permissions using the `--appId` option. If you don't specify the app using the `--appId` option, you'll be prompted to select one of the applications from your .m365rc.json file.
30
+
31
+ ## Examples
32
+
33
+ Adds the specified application permissions to the default app registered in the _.m365rc.json_ file while granting admin consent.
34
+
35
+ ```sh
36
+ m365 app permission add --applicationPermission 'https://graph.microsoft.com/User.ReadWrite.All https://graph.microsoft.com/User.Read.All' --grantAdminConsent
37
+ ```
38
+
39
+ Adds the specified delegated permissions to the default app registered in the _.m365rc.json_ file without granting admin consent.
40
+
41
+ ```sh
42
+ m365 app permission add --delegatedPermission 'https://graph.microsoft.com/offline_access'
43
+ ```
44
+
45
+ Adds the specified application and delegated permissions to a specific app registered in the _.m365rc.json_ file while granting admin consent.
46
+
47
+ ```sh
48
+ m365 app permission add --appId '1663767b-4172-4519-bfd1-28e6ff19055b' --applicationPermission 'https://graph.microsoft.com/User.ReadWrite.All https://graph.microsoft.com/User.Read.All' --delegatedPermission 'https://graph.microsoft.com/offline_access' --grantAdminConsent
49
+ ```
50
+
51
+ ## Response
52
+
53
+ The command won't return a response on success.
@@ -11,25 +11,25 @@ m365 app permission list [options]
11
11
  ## Options
12
12
 
13
13
  `--appId [appId]`
14
- : Client ID of the Azure AD app registered in the .m365rc.json file to retrieve API permissions for
14
+ : Client ID of the Azure AD app registered in the .m365rc.json file to retrieve API permissions for.
15
15
 
16
16
  --8<-- "docs/cmd/_global.md"
17
17
 
18
18
  ## Remarks
19
19
 
20
- Use this command to quickly look up API permissions for the Azure AD application registration registered in the .m365rc.json file in your current project (folder).
20
+ Use this command to quickly look up API permissions for the Azure AD application registration registered in the _.m365rc.json_ file in your current project (folder).
21
21
 
22
- If you have multiple apps registered in your .m365rc.json file, you can specify the app for which you'd like to retrieve permissions using the `--appId` option. If you don't specify the app using the `--appId` option, you'll be prompted to select one of the applications from your .m365rc.json file.
22
+ If you have multiple apps registered in your .m365rc.json file, you can specify the app for which you'd like to retrieve permissions using the `--appId` option. If you don't specify the app using the `--appId` option, you'll be prompted to select one of the applications from your _.m365rc.json_ file.
23
23
 
24
24
  ## Examples
25
25
 
26
- Retrieve API permissions for your current Azure AD app
26
+ Retrieve API permissions for your current Azure AD app.
27
27
 
28
28
  ```sh
29
29
  m365 app permission list
30
30
  ```
31
31
 
32
- Retrieve API permissions for the Azure AD app with client ID _e23d235c-fcdf-45d1-ac5f-24ab2ee0695d_ specified in the _.m365rc.json_ file
32
+ Retrieve API permissions for the Azure AD app with the client ID specified in the _.m365rc.json_ file.
33
33
 
34
34
  ```sh
35
35
  m365 app permission list --appId e23d235c-fcdf-45d1-ac5f-24ab2ee0695d
@@ -45,16 +45,6 @@ m365 app permission list --appId e23d235c-fcdf-45d1-ac5f-24ab2ee0695d
45
45
  "resource": "Microsoft Teams - Teams And Channels Service",
46
46
  "permission": "channels.readwrite",
47
47
  "type": "Application"
48
- },
49
- {
50
- "resource": "Yammer",
51
- "permission": "access_as_user",
52
- "type": "Delegated"
53
- },
54
- {
55
- "resource": "Yammer",
56
- "permission": "user_impersonation",
57
- "type": "Delegated"
58
48
  }
59
49
  ]
60
50
  ```
@@ -65,8 +55,6 @@ m365 app permission list --appId e23d235c-fcdf-45d1-ac5f-24ab2ee0695d
65
55
  resource permission type
66
56
  -------------------------------------------- ------------------ -----------
67
57
  Microsoft Teams - Teams And Channels Service channels.readwrite Application
68
- Yammer access_as_user Delegated
69
- Yammer user_impersonation Delegated
70
58
  ```
71
59
 
72
60
  === "CSV"
@@ -74,6 +62,18 @@ m365 app permission list --appId e23d235c-fcdf-45d1-ac5f-24ab2ee0695d
74
62
  ```csv
75
63
  resource,permission,type
76
64
  Microsoft Teams - Teams And Channels Service,channels.readwrite,Application
77
- Yammer,access_as_user,Delegated
78
- Yammer,user_impersonation,Delegated
65
+ ```
66
+
67
+ === "Markdown"
68
+
69
+ ```md
70
+ # app permission list
71
+
72
+ Date: 5/29/2023
73
+
74
+ Property | Value
75
+ ---------|-------
76
+ resource | Microsoft Teams - Teams And Channels Service
77
+ permission | channels.readwrite
78
+ type | Application
79
79
  ```
@@ -20,13 +20,13 @@ m365 booking business get [options]
20
20
 
21
21
  ## Examples
22
22
 
23
- Retrieve the specified Microsoft Bookings business with id _business@contoso.onmicrosoft.com_.
23
+ Retrieve the specified Microsoft Bookings business with the specified id.
24
24
 
25
25
  ```sh
26
26
  m365 booking business get --id 'business@contoso.onmicrosoft.com'
27
27
  ```
28
28
 
29
- Retrieve the specified Microsoft Bookings business with name _business name_.
29
+ Retrieve the specified Microsoft Bookings business with the specified name.
30
30
 
31
31
  ```sh
32
32
  m365 booking business get --name 'business name'
@@ -38,15 +38,15 @@ m365 booking business get --name 'business name'
38
38
 
39
39
  ```json
40
40
  {
41
- "id": "Accounting@8b7jz1.onmicrosoft.com",
41
+ "id": "Accounting@contoso.onmicrosoft.com",
42
42
  "displayName": "Accounting",
43
43
  "businessType": "Financial services",
44
44
  "phone": "",
45
- "email": "runningdevadmin@8b7jz1.onmicrosoft.com",
45
+ "email": "runningdevadmin@contoso.onmicrosoft.com",
46
46
  "webSiteUrl": "",
47
47
  "defaultCurrencyIso": "USD",
48
48
  "isPublished": true,
49
- "publicUrl": "https://outlook.office365.com/owa/calendar/Accounting@8b7jz1.onmicrosoft.com/bookings/",
49
+ "publicUrl": "https://outlook.office365.com/owa/calendar/Accounting@contoso.onmicrosoft.com/bookings/",
50
50
  "languageTag": "",
51
51
  "address": {
52
52
  "street": "",
@@ -126,8 +126,8 @@ m365 booking business get --name 'business name'
126
126
  businessType : Financial services
127
127
  defaultCurrencyIso: USD
128
128
  displayName : Accounting
129
- email : runningdevadmin@8b7jz1.onmicrosoft.com
130
- id : Accounting@8b7jz1.onmicrosoft.com
129
+ email : runningdevadmin@contoso.onmicrosoft.com
130
+ id : Accounting@contoso.onmicrosoft.com
131
131
  phone :
132
132
  ```
133
133
 
@@ -135,6 +135,28 @@ m365 booking business get --name 'business name'
135
135
 
136
136
  ```csv
137
137
  id,displayName,businessType,phone,email,defaultCurrencyIso
138
- Accounting@8b7jz1.onmicrosoft.com,Accounting,Financial services,,runningdevadmin@8b7jz1.onmicrosoft.com,USD
138
+ Accounting@contoso.onmicrosoft.com,Accounting,Financial services,,runningdevadmin@contoso.onmicrosoft.com,USD
139
+ ```
140
+
141
+ === "Markdown"
142
+
143
+ ```md
144
+ # booking business get --name "Accounting"
145
+
146
+ Date: 5/29/2023
147
+
148
+ ## Accounting (Accounting@contoso.onmicrosoft.com)
139
149
 
150
+ Property | Value
151
+ ---------|-------
152
+ id | Accounting@contoso.onmicrosoft.com
153
+ displayName | Accounting
154
+ businessType | Financial services
155
+ phone |
156
+ email | runningdevadmin@contoso.onmicrosoft.com
157
+ webSiteUrl |
158
+ defaultCurrencyIso | USD
159
+ isPublished | true
160
+ publicUrl | https://outlook.office365.com/owa/calendar/Accounting@contoso.onmicrosoft.com/bookings/
161
+ languageTag |
140
162
  ```
@@ -29,10 +29,6 @@ m365 booking business list
29
29
  {
30
30
  "id": "Accounting@8b7jz1.onmicrosoft.com",
31
31
  "displayName": "Accounting"
32
- },
33
- {
34
- "id": "BestShop@8b7jz1.onmicrosoft.com",
35
- "displayName": "Best Shop"
36
32
  }
37
33
  ]
38
34
  ```
@@ -42,14 +38,27 @@ m365 booking business list
42
38
  ```text
43
39
  id displayName
44
40
  --------------------------------- -----------
45
- Accounting@8b7jz7.onmicrosoft.com Accounting
46
- BestShop@8b7jz7.onmicrosoft.com Best Shop
41
+ Accounting@contoso.onmicrosoft.com Accounting
47
42
  ```
48
43
 
49
44
  === "CSV"
50
45
 
51
46
  ```csv
52
47
  id,displayName
53
- Accounting@8b7jz7.onmicrosoft.com,Accounting
54
- BestShop@8b7jz7.onmicrosoft.com,Best Shop
48
+ Accounting@contoso.onmicrosoft.com,Accounting
49
+ ```
50
+
51
+ === "Markdown"
52
+
53
+ ```md
54
+ # booking business list
55
+
56
+ Date: 5/29/2023
57
+
58
+ ## Accounting (Accounting@contoso.onmicrosoft.com)
59
+
60
+ Property | Value
61
+ ---------|-------
62
+ id | Accounting@contoso.onmicrosoft.com
63
+ displayName | Accounting
55
64
  ```
@@ -50,3 +50,9 @@ m365 cli consent --service yammer
50
50
  ```csv
51
51
  To consent permissions for executing yammer commands, navigate in your web browser to https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=31359c7f-bd7e-475c-86db-fdb8c937548e&response_type=code&scope=https%3A%2F%2Fapi.yammer.com%2Fuser_impersonation
52
52
  ```
53
+
54
+ === "Markdown"
55
+
56
+ ```md
57
+ To consent permissions for executing yammer commands, navigate in your web browser to https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=31359c7f-bd7e-475c-86db-fdb8c937548e&response_type=code&scope=https%3A%2F%2Fapi.yammer.com%2Fuser_impersonation
58
+ ```
@@ -73,3 +73,20 @@ m365 cli doctor
73
73
  os,cliVersion,nodeVersion,cliAadAppId,cliAadAppTenant,authMode,cliEnvironment,cliConfig,roles,scopes
74
74
  "{""platform"":""win32"",""version"":""Windows 10 Pro"",""release"":""10.0.19045""}",6.1.0,v16.13.0,31359c7f-bd7e-475c-86db-fdb8c937548e,common,DeviceCode,,"{""output"":""json"",""showHelpOnFailure"":false}",[],"[""AllSites.FullControl""]"
75
75
  ```
76
+
77
+ === "Markdown"
78
+
79
+ ```md
80
+ # cli doctor
81
+
82
+ Date: 2022-09-05
83
+
84
+ Property | Value
85
+ ---------|-------
86
+ cliVersion | 6.1.0
87
+ nodeVersion | v16.13.0
88
+ cliAadAppId | 31359c7f-bd7e-475c-86db-fdb8c937548e
89
+ cliAadAppTenant | common
90
+ authMode | DeviceCode
91
+ cliEnvironment |
92
+ ```
@@ -52,3 +52,9 @@ m365 cli issue --type command
52
52
  ```csv
53
53
  https://aka.ms/cli-m365/new-command
54
54
  ```
55
+
56
+ === "Markdown"
57
+
58
+ ```md
59
+ https://aka.ms/cli-m365/new-command
60
+ ```
@@ -40,6 +40,12 @@ m365 cli reconsent
40
40
  To re-consent the PnP Microsoft 365 Management Shell Azure AD application navigate in your web browser to https://login.microsoftonline.com/common/oauth2/authorize?client_id=31359c7f-bd7e-475c-86db-fdb8c937548e&response_type=code&prompt=admin_consent
41
41
  ```
42
42
 
43
+ === "Markdown"
44
+
45
+ ```md
46
+ To re-consent the PnP Microsoft 365 Management Shell Azure AD application navigate in your web browser to https://login.microsoftonline.com/common/oauth2/authorize?client_id=31359c7f-bd7e-475c-86db-fdb8c937548e&response_type=code&prompt=admin_consent
47
+ ```
48
+
43
49
  ## More information
44
50
 
45
51
  - Re-consent the PnP Microsoft 365 Management Shell Azure AD application: [https://pnp.github.io/cli-microsoft365/user-guide/connecting-office-365/#re-consent-the-pnp-office-365-management-shell-azure-ad-application](https://pnp.github.io/cli-microsoft365/user-guide/connecting-office-365/#re-consent-the-pnp-office-365-management-shell-azure-ad-application)