argocd account command manages user account settings, including passwords, tokens, and permissions.
Quick Examples
Subcommands
list
List all user accounts.get
Get account details.get-user-info
Get information about the currently logged-in user.- Current username
- JWT issuer
- JWT subject
- SSO groups (if applicable)
- Available capabilities
update-password
Update account password.- Interactive
- Non-Interactive
- Update Other User
Update password with prompts:You’ll be prompted:
string
Account name (admins only, updates another user)
string
Current password (required unless admin)
string
New password
generate-token
Generate authentication token for an account.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
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.string
Account name or project role
can-i
Check if the current user has permission to perform an action.get- View resourcescreate- Create new resourcesupdate- Modify existing resourcesdelete- Remove resourcessync- Synchronize applicationsoverride- Override parametersaction- Execute resource actions
applications- Argo CD applicationsapplicationsets- ApplicationSetsclusters- Cluster credentialsrepositories- Repository connectionsprojects- Projectsaccounts- User accountscertificates- TLS certificatesgpgkeys- GPG keys
bcrypt
Generate bcrypt hash for a password.argocd-cm ConfigMap for local user definitions.
Account Management
Local Users vs SSO
Argo CD supports two types of users:- Local Users: Defined in
argocd-cmConfigMap - SSO Users: Authenticated via OIDC/SAML
Managing Local Users
Local users are defined in theargocd-cm ConfigMap:
argocd-cm.yaml
login- Can log in via UI/CLIapiKey- Can generate API tokens
argocd-secret:
Common Workflows
First-Time Setup
Create Service Account for CI/CD
Configure RBAC for User
After creating a user, configure permissions inargocd-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