# 既存ユーザーの新しい API キーが作成できない（バグの可能性）

**URL:** <https://meta.discourse.org/t/cant-create-a-new-api-key-for-existing-user-maybe-bug/134099>\
**Category:** Product Support\
**Created:** [2019 年 11 月 22 日午前 1:59 UTC](https://meta.discourse.org/t/cant-create-a-new-api-key-for-existing-user-maybe-bug/134099 "2019-11-22T01:59:36Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![dylanh724](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dylanh724/32/119642_2.png) [@dylanh724](https://meta.discourse.org/u/dylanh724)\
**Post date:** [2019 年 11 月 22 日午前 1:59 UTC](https://meta.discourse.org/t/cant-create-a-new-api-key-for-existing-user-maybe-bug/134099/1 "2019-11-22T01:59:36Z")

</div>

ユーザーは API キーを 1 つしか持てないのでしょうか？これがバグでないのであれば、ここには明確なガイダンスが必要です。

 ![image](https://global.discourse-cdn.com/meta/original/3X/0/4/048581140ebddbdd353d18cb781372ca278788b1.png)

これを入力しても「保存」をクリックできません。なぜですか？

![image](https://global.discourse-cdn.com/meta/original/3X/8/c/8cadef086dcc723d449c4ab989c9d0729f6c4bd0.png)

このボタンが無効になっている理由を説明するツールチップやエラーメッセージをその下に追加するのはどうでしょうか？

後でわかったのですが、通常のユーザー名にはポップアップする候補が表示されますが、API キーを持つ既存のアカウントは全く表示されず、非常に混乱を招く体験になります。最初にユーザー名を入力したときは、何も表示されず、「ユーザーが見つかりません」や「ユーザーはすでに API キーを持っています（最大 1 つ）」といった候補も出ませんでした。

異なる用途のために 1 つ以上の API キーを割り当てられないのは奇妙に感じます。API キーの主な目的はスコープを非常に特定することだと考えていたのですが、これはむしろバグのように思えます。

 ![image](https://global.discourse-cdn.com/meta/original/3X/1/6/165c7e1ac3d8bb141cd7d7a4b85127fec3e13ff6.png)

---

_[View the full topic](https://meta.discourse.org/t/cant-create-a-new-api-key-for-existing-user-maybe-bug/134099)._
