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
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
The account name
Account
Account name
Whether the account is enabled
Account capabilities (e.g., “login”, “apiKey”)
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
The account name
The current password
The new password
UpdatePasswordResponse
REST Endpoint: PUT /api/v1/account/password
CreateToken
Creates an authentication token for an account. Request:CreateTokenRequest
The account name
Token identifier (optional, auto-generated if not provided)
Token expiration duration in seconds (0 means no expiration)
CreateTokenResponse
The generated JWT token
POST /api/v1/account/{name}/token
DeleteToken
Deletes an authentication token. Request:DeleteTokenRequest
The account name
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
The resource type (e.g., “applications”, “clusters”, “repositories”)
The action to check (e.g., “get”, “create”, “update”, “delete”, “sync”, “override”)
The subresource (e.g., specific project name or application name)
CanIResponse
Either “yes” or “no” indicating if the action is allowed
GET /api/v1/account/can-i/{resource}/{action}/{subresource}