Skip to content

Commit bb3c2e6

Browse files
committed
Adds command 'cli app reconsent'. Closes #6657
1 parent 26ade35 commit bb3c2e6

File tree

7 files changed

+689
-0
lines changed

7 files changed

+689
-0
lines changed
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
import Global from '/docs/cmd/_global.mdx';
2+
import Tabs from '@theme/Tabs';
3+
import TabItem from '@theme/TabItem';
4+
5+
# cli app reconsent
6+
7+
Reconsent all permission scopes used in CLI for Microsoft 365
8+
9+
## Usage
10+
11+
```sh
12+
m365 cli app reconsent [options]
13+
```
14+
15+
## Options
16+
17+
<Global />
18+
19+
## Remarks
20+
21+
This command will add all missing scopes used in CLI for Microsoft 365 to your current app registration. It will only add missing scopes and won't remove any scopes that are already present in the app registration.
22+
23+
## Examples
24+
25+
Consent all permission scopes used in CLI for Microsoft 365 to the current app registration
26+
27+
```sh
28+
m365 cli app reconsent
29+
```
30+
31+
## Response
32+
33+
<Tabs>
34+
<TabItem value="JSON">
35+
36+
```json
37+
"To consent to the new scopes for your Microsoft Entra application registration, please navigate to the following URL: https://login.microsoftonline.com/f72203fd-b0a0-472d-85eb-079a117a80de/adminconsent?client_id=62b981af-59d3-4d25-8baf-6cc067a03102"
38+
```
39+
40+
</TabItem>
41+
<TabItem value="Text">
42+
43+
```text
44+
To consent to the new scopes for your Microsoft Entra application registration, please navigate to the following URL: https://login.microsoftonline.com/f72203fd-b0a0-472d-85eb-079a117a80de/adminconsent?client_id=62b981af-59d3-4d25-8baf-6cc067a03102
45+
```
46+
47+
</TabItem>
48+
<TabItem value="CSV">
49+
50+
```csv
51+
To consent to the new scopes for your Microsoft Entra application registration, please navigate to the following URL: https://login.microsoftonline.com/f72203fd-b0a0-472d-85eb-079a117a80de/adminconsent?client_id=62b981af-59d3-4d25-8baf-6cc067a03102
52+
```
53+
54+
</TabItem>
55+
<TabItem value="Markdown">
56+
57+
```md
58+
To consent to the new scopes for your Microsoft Entra application registration, please navigate to the following URL: https://login.microsoftonline.com/f72203fd-b0a0-472d-85eb-079a117a80de/adminconsent?client_id=62b981af-59d3-4d25-8baf-6cc067a03102
59+
```
60+
61+
</TabItem>
62+
</Tabs>
63+

docs/src/config/sidebars.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,15 @@ const sidebars: SidebarsConfig = {
7171
label: 'issue',
7272
id: 'cmd/cli/cli-issue'
7373
},
74+
{
75+
app: [
76+
{
77+
type: 'doc',
78+
label: 'app reconsent',
79+
id: 'cmd/cli/app/app-reconsent'
80+
}
81+
]
82+
},
7483
{
7584
completion: [
7685
{

src/m365/cli/commands.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
const prefix: string = 'cli';
22

33
export default {
4+
APP_RECONSENT: `${prefix} app reconsent`,
45
COMPLETION_CLINK_UPDATE: `${prefix} completion clink update`,
56
COMPLETION_PWSH_SETUP: `${prefix} completion pwsh setup`,
67
COMPLETION_PWSH_UPDATE: `${prefix} completion pwsh update`,

0 commit comments

Comments
 (0)