--- title: "user modify-key" slug: "user-modify-key" tags: ["5.4"] updated: 2026-10-28T01:52:43Z published: 2026-10-28T01:52:43Z canonical: "docs.vastdata.com/user-modify-key" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.vastdata.com/llms.txt > Use this file to discover all available pages before exploring further. # user modify-key This command enables or disables an S3 access key pair. An access key pair consists of a secret key and an access key. The access key pair is enabled/disabled by specifying the access key in the pair. ##### Usage ```plaintext user modify-key {--id ID | --uid UID | --sid SID}                --access-key ACCESS-KEY                [--enable|--disable]                [--tenant-id ID] ``` ##### Required Parameters | `--id ID` | Identifies a VAST provider user by VAST ID. | | --- | --- | | `--uid UID` | Identifies a user by POSIX (NFS) UID number. | | `--sid SID` | Identifies a user by Security Identifier (SID). | | `--access-key ACCESS-KEY` | Specifies an S3 access key to disable or enable the key pair. | ##### Options | `--enable` | Enables the S3 access key pair. | | --- | --- | | `--disable` | Disables the S3 access key pair. | | `--tenant-id ID` | Specify the ID of the tenant with which the user is associated. | ##### Example This example shows disabling an access key pair. ```plaintext vcli: admin> user modify-key --id 4 --access-key NHZ9GBLYS21TST3BGQXO --disable Are you sure you want to disable this access key [NHZ9GBLYS21TST3BGQXO]? [y/N] y ```