자동화 스크립트는 사용자의 사용자 정의 필드 값을 그룹의 **전체 이름(Full Name)**과 일치시킵니다. 각 그룹의 전체 이름이 해당 사용자 정의 필드 옵션과 정확히 일치하는지 확인하세요 (예: 드롭다운 옵션이 "cat"이라면, 그룹의 전체 이름은 "cat"이어야 합니다).
사용자 정의 필드 설정
다음으로, 사용자가 선택할 사용자 정의 필드를 생성합니다:
사이트의 관리자 영역으로 이동합니다.
관리자 사이드바의 커뮤니티 섹션에서 '사용자 필드(User Fields)'로 이동하거나 /admin/config/user-fields를 방문합니다.
그룹 전체 이름과 정확히 일치하는 사전 정의된 옵션을 가진 드롭다운 필드 유형을 사용하세요. 자유 텍스트 필드는 불일치를 일으킬 수 있습니다. 확인(confirmation) 필드 유형을 사용하는 경우, 값은 “true” 또는 "false"가 되므로 그룹의 전체 이름을 이에 맞게 설정해야 합니다.
자동화 생성
이제, 사용자의 사용자 정의 필드 선택에 따라 사용자를 그룹에 추가하는 자동화를 설정합니다:
Q: 이 자동화로 사용자를 기본 그룹에 추가할 수 있나요?
A: 기본적으로 이 자동화는 사용자를 보조 그룹에 추가합니다. 그룹을 기본 그룹으로 설정하려면 그룹의 ‘관리 > 멤버십’ 설정 페이지로 가서 '기본 그룹으로 자동 설정’을 선택하세요.
Q: ‘반복’ 트리거를 선택하면 자동화는 얼마나 자주 실행되나요?
A: 자동화 생성 시 주기를 설정할 수 있습니다. 커뮤니티의 필요에 가장 잘 맞는 일정을 선택하세요.
Q: 사용자가 사용자 정의 필드 선택을 변경하면 어떻게 되나요?
A: 반복 자동화를 설정한 경우, 다음 실행 시 업데이트된 선택에 따라 사용자를 새 그룹에 추가합니다. 그러나 자동화는 사용자가 이전 그룹에서 제거하지 않습니다 — 추가만 수행합니다. 필요할 경우 그룹 제거는 수동으로 관리해야 합니다.
Q: 자동화는 사용자를 어떤 그룹에 추가할지 어떻게 알까요?
A: 자동화는 사용자의 사용자 정의 필드 값을 각 그룹의 **전체 이름(Full Name)**과 일치시킵니다. 자동화 설정에 명시적인 그룹 선택 항목은 없으며, 일치 과정은 전체 이름에 기반하여 자동으로 이루어집니다.
No more rooting around in the user custom field json trying to find an id number, or any awkward typos snarling things up. Just super smooth and friendly UI.
Did all of this but it is not working as expected after testing.
Do you need to match the “full name” of the group to the automation name option? i.e. I see no option to pick the group you want to the user to be added to on trigger event.
I’m missing a step or something is not clicking in my head.
I was originally going to post a new topic “how to filter user signup before : after” so all new users from X day go into X group
However, I found this topic and decided it was what I needed.
The difference in my use case is to your example (thank you again) which is possibly even simpler, there is no need for multi chocie so the user only have to tick a “confirmation” and that confirmation field fix the users to X group
It strikes me then you are then limited to one group called “true” and you can never user that “confirmation” approach again.
I will run with the drop down for now as I might want to change the group filter on say an annual basis, i.e. a group for each year.
Finally, if I can suggest to the makers of the automation, to perhaps consider a more explicit step and thus field, to specify the intended user group that is the target of your filter, as this implied part of the setup has caused me a lot of confusion and time as it probably as others.
Actually, user fields are located in the community section of the admin sidebar.
Automation is implemented as a plugin, so you will find it under Plugins rather then under Customize.
In general, the screenshots and the navigation seem a little outdated. Also, the common term seems to be “custom user field,” and this guide often uses “user custom field” instead.
Some time ago, I suggested an alternative version that reflects most of these points. I’m sharing it here now so it can help someone in case they’re struggling with these aspects.
My draft
This guide explains how to automatically add users to groups based on their selection of a custom user field during signup or profile update.
Required user level: Administrator
Summary
Set up a custom user field
Create the necessary groups
Create an automation to add users to groups
Test the setup
Setting up the custom user field
First, create a custom user field that users will select from:
(There is also a detailed guide on user fields)
Go to your site’s Admin area
Navigate to User fields using the link in the community section of the admin sidebar or by visiting /admin/config/user-fields
Click “Add user field”
Set up the field with appropriate options
Here’s an example of how your user field might look:
The automation assigns users to a group if their input in the custom field exactly matches a group’s full name. To ensure accuracy, use a dropdown with predefined options that match group names exactly. Free text fields can cause mismatches. If using a confirmation field, groups need to be named ‘true’ or ‘false’.
Creating the groups
Next, create the groups you want users to be automatically added to:
(There is also a detailed guide on creating groups)
Go to Groups by using the link in the admin sidebar or adding /g or /groups to your forum’s URL.
Click “New Group” for each group you want to create
Make sure to add a “Full Name” for each group, as the automation script uses this
Q: Can this automation add users to primary groups?
A: By default, this automation adds users to secondary groups. To set a group as primary, go to the group’s Manage > Membership settings page and select “Automatically set as primary group”.
Q: How often does the automation run if I choose the “Recurring” trigger?
A: You can set the frequency when creating the automation. Choose a schedule that best fits your community’s needs.
Q: What happens if a user changes their custom user field selection?
A: If you’ve set up a recurring automation, it will update the user’s group membership based on their new selection during the next run.
Q: Can I use more than one automation based on a confirmation fields?
A: Yes! While both groups’ full names must be ‘true’ or ‘false’, you can create multiple groups with different names to distinguish them. When setting up the automation, simply select the respective custom field for each one.