organization_member update_role#
Description#
組織メンバのロールを更新します。
Examples#
基本的な使い方#
対象組織の名前を --organization に、変更対象のユーザのuser_idを --user_id に指定します。
設定するロールを --role に指定します。
$ annofabcli organization_member update_role --organization org1 --user_id u1 u2 --role contributor
進捗と結果の出力については 一括処理のログ を参照してください。
所属していないユーザと、確認に対して no と回答したユーザはスキップ件数に含まれます。
Usage Details#
組織メンバのロールを更新します。
usage: annofabcli organization_member update_role [-h] [--yes]
[--endpoint_url ENDPOINT_URL]
[--annofab_user_id ANNOFAB_USER_ID]
[--annofab_password ANNOFAB_PASSWORD]
[--annofab_pat ANNOFAB_PAT]
[--logdir LOGDIR]
[--disable_log] [--debug]
-org ORGANIZATION
-u USER_ID [USER_ID ...]
--role {owner,administrator,contributor}
Named Arguments#
- -org, --organization
対象の組織の組織名を指定してください。
- -u, --user_id
変更対象ユーザのuser_idを指定してください。
file://を先頭に付けると、一覧が記載されたファイルを指定できます。 ファイルを読み込む場合は、ファイル指定を1個だけ渡してください。直接指定する値や別のファイル指定とは併用できません。- --role
Possible choices: owner, administrator, contributor
対象ユーザに設定するロールを指定します。
common options (after the subcommand)#
- --yes
処理中に現れる問い合わせに対して、常に
yesと回答します。- --endpoint_url
Annofab WebAPIのエンドポイントを指定します。
- --annofab_user_id
Annofabにログインする際のユーザーID
- --annofab_password
Annofabにログインする際のパスワード
- --annofab_pat
Annofabにログインする際のパーソナルアクセストークン
- --logdir
ログファイルを保存するディレクトリを指定します。
Default:
.log- --disable_log
ログを無効にします。
- --debug
HTTPリクエストの内容やレスポンスのステータスコードなど、デバッグ用のログが出力されます。
組織オーナまたは組織管理者ロールを持つユーザで実行してください。