0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

小ネタ:ユーザーの表示名を"姓 名"にしたい

0
Posted at

したいこと

日本人なら誰もが思うこと。

image.png

あれれ~。
でも、表示名ってOCIコンソールから変えられないんですよねえ(たぶん)

では、変えてみよう

OCI CLIで --display-name を指定して作るとか、作成時は名と姓を入れ替えて作成後に変更するとか、今後作成するものについてはまだ回避手段がありますが、すでに作成済のアカウントだと無理。

こういう時は、OCI CLIで。
endpointで指定するURLはoci iam domain list --compartment-id <テナンシのOCID>で確認できます。

$ oci identity-domains user patch \
 --user-id ocid1.user.oc1..XXXXX \
 --schemas '["urn:ietf:params:scim:api:messages:2.0:PatchOp"]' \
 --operations '[{"op": "replace", "path": "displayName", "value": "江戸川 コナン"}]' \
 --endpoint https://XXXXX.identity.oraclecloud.com:443

うん。ばっちり☆

image.png

意外にやり方見つからなかったんですよねえ。
なので、自分自身への備忘録も兼ねて。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?