local-user-edit
使用方法
avcli local-user-edit user [--username name] [--realname name] [--email address] [--password password] [--new-password password] [--local-groups groups] [--permissions permission-types] user-name-or-sid
説明
local-user-edit コマンドを使用して既存のユーザを編集します。--password オプションを指定しない場合、パスワードは変更されません。--password オプションを指定すると、パスワードの入力確認のためユーザにコマンド プロンプトが 2 度表示されます。このコマンドは管理者ロール (グループ admin) を持つユーザのみが実行できます。プラットフォーム管理者 (グループ platform_admin) または読み取り専用 (グループ read-only) ロールを持つユーザは、このコマンドを実行できません。
オプション
--username name | 割り当てるユーザ名。 |
--password password | ユーザに新しいパスワードの入力を求めるプロンプトを表示するかどうかを示す、ブール値のフラグ。 |
--new-password password | --password を使用する場合と異なり、パスワードをコマンドライン オプションとして指定します。 |
--realname name | ユーザの実名。 |
--email address | ユーザの電子メール アドレス。 |
--local-groups groups | ユーザが参加するローカル グループをカンマ区切りのリストとして指定します。 |
--permissions permission-types | ローカル ユーザのアクセス許可をカンマ区切りのリストとして指定します。 |
group-name-or-sid | 名前またはセキュリティ ID。 |
例
$ avcli local-user-edit --email bsmith@example.net bsmith
$ avcli local-user-edit --realname "Robert Smith" --email rsmith@example.com bsmith
$ avcli local-user-edit --email bsmith@example.net --local-groups read_only --permissions ADD_USER,UPDATE_USER bsmith
$ avcli local-user-edit --password bsmith
$ avcli local-user-edit --new-password secret bsmith