Skip to main content

Update access to GPG keypair

Update UIDs of GPG keypairs begin with:

smctl gpg keypair update-access <GPG keypair alias or ID>

or

smctl gpg keypair edit-access <GPG keypair alias or ID>

Flags

Tabela 1. Flags for updating access to GPG keypairs

Shortcut

Flag

Description

--groups string

Assign the keypair o a group by specifying the group ID.

--operation string

Overwrite, add, or remove access.

--restricted

Specify true to restrict access or false to allow all users on this account access to the GPG keypair.

--team-id string

Assign the keypair to a team by specifying the Team ID.

users string

Assign the keypair to specific users by specifying the user IDs.

--account-id string

Account ID for the user.

-h

--help

Help for updating access to GPG keypairs.


Example 1

Description: Add a user to the existing user list that manage the GPG keypair.

Command:

smctl gpg keypair update-access <GPG keypair alias or ID> --operation <add or remove or overwrite> --users <user ID>

Command sample:

smctl gpg keypair update-access master-gpg-key --operation add --users 530ef4ed-8db4-4e74-b730-7c5cf2e0cad5

Example 2

Description: Change the GPG key access to open.

Command:

smctl gpg keypair update-access <GPG keypair alias or ID> --restricted=<true or false>

Command sample:

smctl gpg keypair update-access master-gpg-key --restricted=false