Revoking a Grant

You can revoke a grant on the KMS console in either of the following scenarios:

When a grant is revoked, the grantee does not have the corresponding permission anymore. However, if the grantee has created the same grant to another user, permission of that user will not be affected.

This section describes how to revoke a grant on the KMS console.

Prerequisites

You have created a grant.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner of the management console and select a region or project.
  3. Click on the left and choose Security > Key Management Service.
  4. Click the alias of the target custom key to view its details.
  5. In the Grants tab, locate the target grant and click Revoke Grant in the Operation column.
  6. Enter DELETE in the confirmation dialog box and click OK.

    In the displayed dialog box, click OK. If Grant grant ID revoked successfully is displayed in the upper right corner, the grant has been revoked.

    You can call the API to verify that the key grant has been revoked. For example, if the grant to create a data key is revoked for a user, an error will be reported when the user calls the API to create a data key.