tg-whoami

Show the authenticated caller’s own user record.

Synopsis

tg-whoami [options]

Description

Displays the user record associated with the current authentication token. Shows the user’s id, username, name, email, workspace, roles, enabled status, must-change-password flag, and creation timestamp.

Options

Option Default Description
-u, --api-url URL $TRUSTGRAPH_URL or http://localhost:8088/ TrustGraph API URL
-t, --token TOKEN $TRUSTGRAPH_TOKEN Authentication token

Examples

# Show your own user record
tg-whoami

# Verify a token against a specific API
tg-whoami -u https://trustgraph.example.com:8088/

# Use an explicit token
tg-whoami -t eyJhbGciOiJIUzI1NiIs...

Environment Variables

  • TRUSTGRAPH_URL: Default API URL
  • TRUSTGRAPH_TOKEN: Authentication token