2.79. hammer user
ユーザーを操作します。
Usage: hammer user [OPTIONS] SUBCOMMAND [ARG] ... Parameters: SUBCOMMAND Subcommand [ARG] ... Subcommand arguments Subcommands: access-token Managing personal access tokens add-role Assign a user role create Create a user delete Delete a user info Show a user list List all users remove-role Remove a user role ssh-keys Managing User SSH Keys. update Update a user Options: -h, --help Print help
2.79.1. hammer user access-token
パーソナルアクセストークンを管理します。
Usage: hammer user access-token [OPTIONS] SUBCOMMAND [ARG] ... Parameters: SUBCOMMAND Subcommand [ARG] ... Subcommand arguments Subcommands: create Create a Personal Access Token for a user info Show a Personal Access Token for a user list List all Personal Access Tokens for a user revoke Revoke a Personal Access Token for a user Options: -h, --help Print help
2.79.1.1. hammer user access-token create
ユーザーのパーソナルアクセストークンを作成します。
Usage: hammer user access-token create [OPTIONS] Options: --expires-at EXPIRES_AT Expiry Date --location LOCATION_NAME Location name --location-id LOCATION_ID --location-title LOCATION_TITLE Location title --name NAME --organization ORGANIZATION_NAME Organization name --organization-id ORGANIZATION_ID Organization ID --organization-title ORGANIZATION_TITLE Organization title --user USER_LOGIN User's login to search by --user-id USER_ID -h, --help Print help
2.79.1.2. hammer user access-token info
ユーザーのパーソナルアクセストークンを表示します。
Usage: hammer user access-token info [OPTIONS] Options: --fields FIELDS Show specified fileds or predefined filed sets only. (See below) Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for complex parameters --id ID --location LOCATION_NAME Location name --location-id LOCATION_ID --location-title LOCATION_TITLE Location title --name NAME Name to search by --organization ORGANIZATION_NAME Organization name --organization-id ORGANIZATION_ID Organization ID --organization-title ORGANIZATION_TITLE Organization title --user USER_LOGIN User's login to search by --user-id USER_ID -h, --help Print help Predefined field sets: -------------|-----|---------|----- FIELDS | ALL | DEFAULT | THIN -------------|-----|---------|----- Id | x | x | x Name | x | x | x Active | x | x | Expires at | x | x | Created at | x | x | Last used at | x | x | -------------|-----|---------|-----
2.79.1.3. hammer user access-token list
ユーザーのパーソナルアクセストークンすべてを一覧表示します。
Usage: hammer user access-token list [OPTIONS] Options: --fields FIELDS Show specified fileds or predefined filed sets only. (See below) Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for complex parameters --location LOCATION_NAME Location name --location-id LOCATION_ID --location-title LOCATION_TITLE Location title --order ORDER Sort field and order, eg. ‘id DESC’ --organization ORGANIZATION_NAME Organization name --organization-id ORGANIZATION_ID Organization ID --organization-title ORGANIZATION_TITLE Organization title --page PAGE Page number, starting at 1 --per-page PER_PAGE Number of results per page to return --search SEARCH Filter results --user USER_LOGIN User's login to search by --user-id USER_ID -h, --help Print help Predefined field sets: -----------|-----|---------|----- FIELDS | ALL | DEFAULT | THIN -----------|-----|---------|----- Id | x | x | x Name | x | x | x Active | x | x | Expires at | x | x | -----------|-----|---------|-----
2.79.1.4. hammer user access-token revoke
ユーザーのパーソナルアクセストークンを取り消します。
Usage: hammer user access-token revoke [OPTIONS] Options: --id ID --location LOCATION_NAME Location name --location-id LOCATION_ID --location-title LOCATION_TITLE Location title --name NAME Name to search by --organization ORGANIZATION_NAME Organization name --organization-id ORGANIZATION_ID Organization ID --organization-title ORGANIZATION_TITLE Organization title --user USER_LOGIN User's login to search by --user-id USER_ID -h, --help Print help