# 是否有用于设置用户的主要组的API

**URL:** <https://meta.discourse.org/t/is-there-an-api-to-set-the-primary-group-for-a-user/309611>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [2024 年5 月 28 日 00:29 UTC](https://meta.discourse.org/t/is-there-an-api-to-set-the-primary-group-for-a-user/309611 "2024-05-28T00:29:24Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

作者： ![barto\_95](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/barto_95/32/199996_2.png) [@barto\_95](https://meta.discourse.org/u/barto_95)\
发布日期： [2024 年6 月 11 日 08:40 UTC](https://meta.discourse.org/t/is-there-an-api-to-set-the-primary-group-for-a-user/309611/13 "2024-06-11T08:40:17Z")

</div>

> [@barto\_95](#):
>
> /admin/users/2/primary\_group.json

是的，问题在于我使用的用户权限

谢谢 🙂

---

_[View the full topic](https://meta.discourse.org/t/is-there-an-api-to-set-the-primary-group-for-a-user/309611)._
