# 通过 API 调用创建分阶段用户

**URL:** https://meta.discourse.org/t/creating-a-staged-user-with-an-api-call/84667
**Category:** Development
**Tags:** rest-api
**Created:** [2018年四月5日 19:19 UTC](https://meta.discourse.org/t/creating-a-staged-user-with-an-api-call/84667 "2018-04-05T19:19:10Z")
**Posts on this page:** 1
**Showing post:** 24

<div class="post-metadata">

### Author: ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)
#### Post date: [2020年四月22日 16:51 UTC](https://meta.discourse.org/t/creating-a-staged-user-with-an-api-call/84667/24 "2020-04-22T16:51:31Z")

</div>

> [@Honza\_Pobořil](#):
>
> 有关于这个端点的文档吗？我搜索了 API 文档，但没找到。

只有这一篇帖子：[Creating a staged user with an API call - #8 by blake](https://meta.discourse.org/t/creating-a-staged-user-with-an-api-call/84667/8?u=blake)

> [@Honza\_Pobořil](#):
>
> 我正在寻找一种方法，可以创建主题并将其分配给特定用户（通过 discourse-assign 插件）。

这完全可以实现。请查看 [https://meta.discourse.org/t/how-to-reverse-engineer-the-discourse-api/20576，你会看到](https://meta.discourse.org/t/how-to-reverse-engineer-the-discourse-api/20576%EF%BC%8C%E4%BD%A0%E4%BC%9A%E7%9C%8B%E5%88%B0) discourse-assign 插件调用了哪个端点。

> [@Honza\_Pobořil](#):
>
> 另外，我在想 API 密钥是否必须属于系统用户，或者我是否可以使用其他具有最小权限的用户（这些最小权限具体是什么？）。

不，不需要使用系统用户。你只需要一个拥有足够信任等级以创建和分配主题的用户即可。

---

_[View the full topic](https://meta.discourse.org/t/creating-a-staged-user-with-an-api-call/84667)._
