Skip to main content

teams auth login

Auto-generated reference

This page is generated from checked-in CLI metadata for release v0.3.0. Do not edit it by hand.

Authenticate with Microsoft Teams.

Synopsis

teams auth login [--device-code] [--client-id ID] [--tenant-id ID] [--scopes SCOPES]

Options

OptionValueRequiredEnvDefaultDescription
--client-credentialsnoUse client credentials flow (non-interactive)
--device-codenoUse device code flow
--client-idCLIENT_IDnoTEAMS_CLI_CLIENT_IDAzure AD application (client) ID
--client-secretCLIENT_SECRETnoTEAMS_CLI_CLIENT_SECRETAzure AD client secret
--tenant-idTENANT_IDnoTEAMS_CLI_TENANT_IDAzure AD tenant ID
--scopesSCOPESnoTEAMS_CLI_SCOPESOAuth scopes (space-separated, for delegated flows)

Examples

Device code login

teams auth login --device-code

Login with extra delegated scopes

teams auth login --device-code --scopes "User.Read People.Read Files.Read.All offline_access"

Exit Codes

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

See Also