# カスタムフィールドの値に基づいてユーザーを自動的にグループに追加

**URL:** <https://meta.discourse.org/t/automatically-add-users-to-groups-based-on-custom-field-value/86858>\
**Category:** Feature\
**Tags:** automation, completed, user-custom-fields\
**Created:** [2018 年 5 月 6 日午前 3:59 UTC](https://meta.discourse.org/t/automatically-add-users-to-groups-based-on-custom-field-value/86858 "2018-05-06T03:59:39Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![kstaikov](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kstaikov/32/72615_2.png) [@kstaikov](https://meta.discourse.org/u/kstaikov)\
**Post date:** [2018 年 5 月 6 日午前 3:59 UTC](https://meta.discourse.org/t/automatically-add-users-to-groups-based-on-custom-field-value/86858/1 "2018-05-06T03:59:39Z")

</div>

グループ作成時に、ユーザーのメールアドレスドメインに基づいた自動メンバーシップ設定を設けています。この機能を、カスタムフィールドの値に基づいて行えるようにしたいと考えています。

## 使用例

オーナーかテナントかを示すドロップダウン形式のカスタムフィールドがあるコンドミニアムコミュニティを想定しています。すべてのオーナーを自動的にオーナーグループに含め、特定のメッセージについてはオーナーのみを対象に送信できるようにしたいです。

## 留意点

ドロップダウンや確認用のカスタムフィールドであれば straightforward な機能ですが、テキストフィールドの場合は複雑になる可能性があります。そのため、ドロップダウンと確認フィールドにのみこの機能を有効化し、テキストフィールドの場合は完全一致によるマッチングで問題ありません。

---

_[View the full topic](https://meta.discourse.org/t/automatically-add-users-to-groups-based-on-custom-field-value/86858)._
