Skip to main content
The argocd account command manages user account settings, including passwords, tokens, and permissions.

Quick Examples

Subcommands

list

List all user accounts.
Output:

get

Get account details.
Output:

get-user-info

Get information about the currently logged-in user.
Output:
This shows:
  • Current username
  • JWT issuer
  • JWT subject
  • SSO groups (if applicable)
  • Available capabilities

update-password

Update account password.
Update password with prompts:
You’ll be prompted:
Key Flags:
string
Account name (admins only, updates another user)
string
Current password (required unless admin)
string
New password
Strong passwords are recommended. Use at least 12 characters with a mix of uppercase, lowercase, numbers, and symbols.

generate-token

Generate authentication token for an account.
Key Flags:
string
Account name or project role (format: proj:PROJECT:ROLE)
duration
Token expiration (e.g., 24h, 30d, 1y). Defaults to no expiration
string
Token identifier for easy identification
Output:
Save the token securely. It cannot be retrieved later, only regenerated.

Using Generated Tokens

list-tokens

List authentication tokens for an account (requires account name).

delete-token

Delete an authentication token.
Key Flags:
string
Account name or project role

can-i

Check if the current user has permission to perform an action.
Syntax:
Common Actions:
  • get - View resources
  • create - Create new resources
  • update - Modify existing resources
  • delete - Remove resources
  • sync - Synchronize applications
  • override - Override parameters
  • action - Execute resource actions
Common Resources:
  • applications - Argo CD applications
  • applicationsets - ApplicationSets
  • clusters - Cluster credentials
  • repositories - Repository connections
  • projects - Projects
  • accounts - User accounts
  • certificates - TLS certificates
  • gpgkeys - GPG keys
Output:
or

bcrypt

Generate bcrypt hash for a password.
Output:
This hash can be used in the argocd-cm ConfigMap for local user definitions.

Account Management

Local Users vs SSO

Argo CD supports two types of users:
  1. Local Users: Defined in argocd-cm ConfigMap
  2. SSO Users: Authenticated via OIDC/SAML

Managing Local Users

Local users are defined in the argocd-cm ConfigMap:
argocd-cm.yaml
Capabilities:
  • login - Can log in via UI/CLI
  • apiKey - Can generate API tokens
Then set passwords in argocd-secret:

Common Workflows

First-Time Setup

Create Service Account for CI/CD

Configure RBAC for User

After creating a user, configure permissions in argocd-rbac-cm:
argocd-rbac-cm.yaml

Rotate CI/CD Token

Audit User Permissions

Temporary Access Token

Security Best Practices

  • Strong Passwords: Use at least 12 characters with complexity
  • Token Expiration: Always set expiration for tokens (e.g., 90d)
  • Token IDs: Use descriptive IDs to track token usage
  • Regular Rotation: Rotate tokens every 90 days
  • Principle of Least Privilege: Grant minimum required permissions
  • Audit Logs: Monitor account usage via Argo CD audit logs
  • SSO Preferred: Use SSO instead of local users for human access
  • Service Accounts: Use dedicated accounts for automation
  • Remove Unused Accounts: Delete or disable accounts no longer needed
  • Secure Token Storage: Store tokens in secrets managers (Vault, etc.)

Troubleshooting

Password Issues

Token Not Working

Permission Denied

Account Not Found

Environment Variables

string
Authentication token to use instead of login
string
Default username for authentication
string
Default password for authentication (not recommended)

Next Steps

CLI Overview

Learn about authentication and configuration

Admin Commands

Administrative operations