Skip to main content

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

OptionValueRequiredEnvDefaultDescription
--client-idCLIENT_IDnoTEAMS_CLI_CLIENT_IDAzure AD application (client) ID
--tenant-idTENANT_IDnoTEAMS_CLI_TENANT_IDAzure AD tenant ID or domain
--scopesSCOPESnoTEAMS_CLI_SCOPESOAuth scopes (space-separated) to include in the consent URL

Examples

teams auth consent-url --tenant-id example.onmicrosoft.com --scopes "User.Read People.Read Files.Read.All offline_access" --output json

Exit Codes

CodeMeaning
0success
2invalid input
3authentication error
4permission denied
5not found
6rate limited

See Also