teams auth consent-url
Auto-generated reference
This page is generated from checked-in CLI metadata for release v0.3.0. Do not edit it by hand.
Print the admin consent URL for the active auth app.
Synopsis
teams auth consent-url [--client-id ID] [--tenant-id TENANT] [--scopes SCOPES]
Options
| Option | Value | Required | Env | Default | Description |
|---|---|---|---|---|---|
--client-id | CLIENT_ID | no | TEAMS_CLI_CLIENT_ID | Azure AD application (client) ID | |
--tenant-id | TENANT_ID | no | TEAMS_CLI_TENANT_ID | Azure AD tenant ID or domain | |
--scopes | SCOPES | no | TEAMS_CLI_SCOPES | OAuth scopes (space-separated) to include in the consent URL |
Examples
Generate consent URL for a scoped profile
teams auth consent-url --tenant-id example.onmicrosoft.com --scopes "User.Read People.Read Files.Read.All offline_access" --output json
Exit Codes
| Code | Meaning |
|---|---|
| 0 | success |
| 2 | invalid input |
| 3 | authentication error |
| 4 | permission denied |
| 5 | not found |
| 6 | rate limited |