# 如何赋予用户自己生成API令牌的权限？

**URL:** <https://meta.discourse.org/t/how-to-give-users-the-freedom-to-generate-api-tokens-for-themselves/320904>\
**Category:** Support\
**Created:** [2024年八月9日 14:09 UTC](https://meta.discourse.org/t/how-to-give-users-the-freedom-to-generate-api-tokens-for-themselves/320904 "2024-08-09T14:09:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Taskovich](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/taskovich/32/439189_2.png) [@Taskovich](https://meta.discourse.org/u/Taskovich)\
**Post date:** [2024年八月9日 14:09 UTC](https://meta.discourse.org/t/how-to-give-users-the-freedom-to-generate-api-tokens-for-themselves/320904/1 "2024-08-09T14:09:16Z")

</div>

您好，论坛的各位用户。最近我想创建一个对我们论坛有用的机器人，但它需要一个 API 令牌才能工作。我是一名普通用户，不是管理员，无法生成令牌，但管理员并不反对允许用户自行生成令牌。我想知道如何才能让用户拥有这个功能？我在论坛上搜索了一些信息，但与我的问题相关的信息很少（如果答案已经存在而我创建了一个不必要的主题，我深表歉意）。

---

<div class="post-metadata">

**Author:** ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)\
**Post date:** [2024年八月10日 05:04 UTC](https://meta.discourse.org/t/how-to-give-users-the-freedom-to-generate-api-tokens-for-themselves/320904/2 "2024-08-10T05:04:54Z")

</div>

这是论坛的 API 密钥，对吗？\n\n据我所知，管理员可以创建它，而普通用户不能。一种解决方法是让管理员创建它，然后将其传递给成员。\n然而，有用户尝试了此方法：\n[API key creation - #3 by ClawdiaWolf](https://meta.discourse.org/t/api-key-creation/257074/3?u=natedhaliwal)

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [2024年九月9日 05:05 UTC](https://meta.discourse.org/t/how-to-give-users-the-freedom-to-generate-api-tokens-for-themselves/320904/3 "2024-09-09T05:05:38Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
