Skip to main content

connection list

Show the list of available connections

Usage

m365 connection list [options]

Options

-h, --help [help]

Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are options, examples, remarks, response, full. Default is options.

--query [query]

JMESPath query string. See http://jmespath.org/ for more information and examples.

-o, --output [output]

Output type. json, text, csv, md, none. Default json.

--verbose

Runs command with verbose logging.

--debug

Runs command with debug logging.

Remarks

If you are logged in to Microsoft 365 with multiple identities, this command will show you a list of users and/or applications used to sign in.

Examples

Show the list of available identities used to sign in to Microsoft 365

m365 connection list

Response

[
{
"name": "028de82d-7fd9-476e-a9fd-be9714280ff3",
"connectedAs": "alexw@contoso.com",
"authType": "DeviceCode",
"active": true
},
{
"name": "acd6df42-10a9-4315-8928-53334f1c9d01",
"connectedAs": "Contoso Application",
"authType": "Secret",
"active": false
}
]
CTRL + M