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 isoptions
.--query [query]
JMESPath query string. See http://jmespath.org/ for more information and examples.
-o, --output [output]
Output type.
json
,text
,csv
,md
,none
. Defaultjson
.--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
- JSON
- Text
- CSV
- Markdown
[
{
"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
}
]
name connectedAs authType active
------------------------------------ ------------------- ---------- ------
028de82d-7fd9-476e-a9fd-be9714280ff3 alexw@contoso.com DeviceCode true
acd6df42-10a9-4315-8928-53334f1c9d01 Contoso Application Secret false
name,connectedAs,authType,active
028de82d-7fd9-476e-a9fd-be9714280ff3,alexw@contoso.com,DeviceCode,true
acd6df42-10a9-4315-8928-53334f1c9d01,Contoso Application,Secret,false
# connection list
Date: 7/2/2023
## 028de82d-7fd9-476e-a9fd-be9714280ff3
Property | Value
---------|-------
name | 028de82d-7fd9-476e-a9fd-be9714280ff3
connectedAs | alexw@contoso.com
authType | DeviceCode
active | true
## acd6df42-10a9-4315-8928-53334f1c9d01
Property | Value
---------|-------
name | acd6df42-10a9-4315-8928-53334f1c9d01
connectedAs | Contoso Application
authType | Secret
active | false