# 查找“通过 User Custom Field 添加用户到组”的 Userfield 自定义名称

**URL:** <https://meta.discourse.org/t/finding-userfield-custom-name-for-add-user-to-group-through-user-custom-field/241608>\
**Category:** Product Support\
**Tags:** automation, user-custom-fields\
**Created:** [2022 年10 月 8 日 00:00 UTC](https://meta.discourse.org/t/finding-userfield-custom-name-for-add-user-to-group-through-user-custom-field/241608 "2022-10-08T00:00:17Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

作者： ![leonardo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/leonardo/32/228634_2.png) [@leonardo](https://meta.discourse.org/u/leonardo)\
发布日期： [2022 年10 月 11 日 18:12 UTC](https://meta.discourse.org/t/finding-userfield-custom-name-for-add-user-to-group-through-user-custom-field/241608/5 "2022-10-11T18:12:39Z")

</div>

输出中只有一个用户字段，ID 为 1，因此您应将 `User Custom Field Name` 字段设置为 `user_field_1`，而不是像现在这样设置为 `1`。

> [@danieljohnkennedy](#):
>
> 安装了自动化插件后，我看到有一个关于信任级别之间晋升的触发器。是否有办法根据降级触发操作，特别是从 TL3 到 TL2？

截至今天，恐怕该触发器明确检查降级并避免触发——它仅适用于晋升：

> <https://github.com/discourse/discourse-automation/blob/1d0ee3ece3316a63e50bc61ae9d64f014e9c5b8e/plugin.rb#L116>

---

_[View the full topic](https://meta.discourse.org/t/finding-userfield-custom-name-for-add-user-to-group-through-user-custom-field/241608)._
