Skip to main content

status

Shows Microsoft 365 login status

Usage

m365 status [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, the status command will show you information about the user or application name used to sign in and the details about the stored refresh and access tokens and their expiration date and time when run in debug mode.

Examples

Show the information about the current login to the Microsoft 365

m365 status

Response

{
"connectionName": "dd8b99a7-77c6-4238-a609-396d27844921",
"connectedAs": "john.doe@contoso.onmicrosoft.com",
"authType": "DeviceCode",
"appId": "31359c7f-bd7e-475c-86db-fdb8c937548e",
"appTenant": "common",
"cloudType": "Public"
}
CTRL + M