Users
users
Methods
Gets information about the currently authenticated user.
Use this method to:
- Get user profile information
- Check authentication status
- Retrieve user settings
- Verify account details
Examples
Get current user:
Retrieves details about the authenticated user.
{}
Sets whether a user account is suspended.
Use this method to:
- Suspend problematic users
- Reactivate suspended accounts
- Manage user access
Examples
Suspend user:
Suspends a user account.
userId: "f53d2330-3795-4c5d-a1f3-453121af9c60" suspended: true
Reactivate user:
Removes suspension from a user account.
userId: "f53d2330-3795-4c5d-a1f3-453121af9c60" suspended: false
Domain types
Dotfiles
users.dotfiles
Methods
Gets the dotfiles for a user.
Use this method to:
- Retrieve user dotfiles
Examples
Get dotfiles:
Retrieves the dotfiles for the current user.
{}
Sets the dotfiles configuration for a user.
Use this method to:
- Configure user dotfiles
- Update dotfiles settings
Examples
Set dotfiles configuration:
Sets the dotfiles configuration for the current user.
{ "repository": "https://github.com/gitpod-io/dotfiles", }
Remove dotfiles:
Removes the dotfiles for the current user.
{}
Domain types
Pats
users.pats
Methods
Deletes a personal access token.
Use this method to:
- Revoke token access
- Remove unused tokens
- Rotate credentials
Examples
Delete token:
Permanently revokes a token.
personalAccessTokenId: "d2c94c27-3b76-4a42-b88c-95a85e392c68"
Gets details about a specific personal access token.
Use this method to:
- View token metadata
- Check token expiration
- Monitor token usage
Examples
Get token details:
Retrieves information about a specific token.
personalAccessTokenId: "d2c94c27-3b76-4a42-b88c-95a85e392c68"
Lists personal access tokens with optional filtering.
Use this method to:
- View all active tokens
- Audit token usage
- Manage token lifecycle
Examples
List user tokens:
Shows all tokens for specific users.
filter: userIds: ["f53d2330-3795-4c5d-a1f3-453121af9c60"] pagination: pageSize: 20
Domain types