Account Service
Account Service API updates Argo CD account settings.Service Definition
Package:account
Service: AccountService
The AccountService manages user accounts, authentication tokens, and permission checks in Argo CD.
RPC Methods
ListAccounts
Returns the list of accounts. Request:ListAccountRequest
(Empty request)
Response: AccountsList
Account[]
List of accounts
name(string): Account nameenabled(bool): Whether the account is enabledcapabilities(string[]): Account capabilitiestokens(Token[]): List of tokens associated with the account
GET /api/v1/account
GetAccount
Returns an account by name. Request:GetAccountRequest
string
required
The account name
Account
string
Account name
bool
Whether the account is enabled
string[]
Account capabilities (e.g., “login”, “apiKey”)
Token[]
List of tokens associated with the account
id(string): Token IDissuedAt(int64): Token issue timestampexpiresAt(int64): Token expiration timestamp
GET /api/v1/account/{name}
UpdatePassword
Updates an account’s password to a new value. Request:UpdatePasswordRequest
string
required
The account name
string
required
The current password
string
required
The new password
UpdatePasswordResponse
REST Endpoint: PUT /api/v1/account/password
CreateToken
Creates an authentication token for an account. Request:CreateTokenRequest
string
required
The account name
string
Token identifier (optional, auto-generated if not provided)
int64
Token expiration duration in seconds (0 means no expiration)
CreateTokenResponse
string
The generated JWT token
POST /api/v1/account/{name}/token
DeleteToken
Deletes an authentication token. Request:DeleteTokenRequest
string
required
The account name
string
required
The token ID to delete
EmptyResponse
REST Endpoint: DELETE /api/v1/account/{name}/token/{id}
CanI
Checks if the current account has permission to perform an action. Request:CanIRequest
string
required
The resource type (e.g., “applications”, “clusters”, “repositories”)
string
required
The action to check (e.g., “get”, “create”, “update”, “delete”, “sync”, “override”)
string
The subresource (e.g., specific project name or application name)
CanIResponse
string
Either “yes” or “no” indicating if the action is allowed
GET /api/v1/account/can-i/{resource}/{action}/{subresource}