Name

globus-connect-server whoami - Show the currently logged-in primary identity

Synopsis

globus-connect-server whoami [OPTIONS]…​

Description

The globus-connect-server whoami command displays the primary identity of the authorization token on the local machine.

Normally, this command displays its output in a tabular form. You can use the -F json option to view the full OpenID Connect identity token introspection response object.

If you do not have a valid a valid authorization token, this command displays an error message. You can run globus-connect-server login to obtain a new token.

Options

-h, --help

Show help message and exit.

--version

Show the version and exit.

-F, --format "text"|"json"

Select the output format for this command.

Example

This example shows the current user’s token information in text form:

globus-connect-server whoami
Username         | Name       | ID                                   | Email
---------------- | ---------- | ------------------------------------ | -----------------
user@example.org | Umbert Ser | 1a4eb5c8-f20e-4150-ae83-233082614183 | user@example.edu

This example shows the same token in json form:

globus-connect-server whoami -F json
[
  {
    "email": "user@example.edu",
    "identity_provider": "76e2a632-7945-441f-be66-50f1997a3abd",
    "identity_provider_display_name": "Example University",
    "last_authentication": 1587662065,
    "name": "Umbert Ser",
    "organization": "example.edu",
    "sub": "1a4eb5c8-f20e-4150-ae83-233082614183",
    "username": "user@example.edu"
  }
]

© 2010- The University of Chicago Legal