---
title: チーム変更トリガーを設定する
description: 従業員レコード上のリレーションが変わった瞬間に発火する、Buddy Assigned、Promoted to Manager、Change of Manager、Change of Location、Connected to Slackの各トリガーを使います。
sidebar:
  order: 2
area: flows
feature: automations
appPath: /flows/home
lastVerified: 2026-11-15
version: "2026-10-23"
audience: admin
related:
  - flows/automations/tutorial-buddy-programme
  - flows/automations/tutorial-new-manager-flow
  - flows/automations/trigger-catalogue
  - integrations/slack
intercom:
  - id: "11987518"
    title: Select the Right Trigger for your Flow (Pyn 2)
    url: https://intercom.help/pyn/en/articles/11987518-select-the-right-trigger-for-your-flow-pyn-2
    note: draws on
  - id: "12651319"
    title: Using Triggers in Pyn (Pyn 2)
    url: https://intercom.help/pyn/en/articles/12651319-using-triggers-in-pyn-pyn-2
    note: draws on
translation:
  source: flows/automations/configure-a-team-change-trigger.mdx
  sourceSha: c980864b050032bb91f493ea057733f98a0a14bb
---

**Team and Org Changes**のトリガー（Group Changeを除く）はリレーションを監視します。誰かのバディが誰か、マネージャーが誰か、直属の部下が誰か、どの国グループにいるか、どのSlackアカウントと照合されているかです。リレーションが変わるとすぐに、その日を基準日として発火し、設定するオフセットや繰り返しはありません。

## 始める前に

- リレーションは、HRISの同期（マネージャーと、HRISが提供する場合はバディやHRBP）、Employee File、そして**Buddy**または**Mentor**の項目を持つフォームから届きます。リレーションがどの経路で届いても、トリガーは発火します。
- これらのトリガーは、最初のHRIS読み込み以降の変化で発火します。HRISを接続したとき、既存のマネージャーが新たに昇進したものとして扱われることはありません。

## 手順

1. Pynで、左ナビゲーションの**Flows**を開き、**Automations**を選びます。**Create New**を選び、**Team and Org Changes**を選びます。

![Team and Org Changes triggers fire the moment a relationship or group membership changes.](https://support.pyn.ai/media/flows/automations/flows-automations-team-trigger.png)

2. 変化に合うトリガーを選びます。

- **Buddy Assigned**：「An employee was assigned a buddy.」プリンシパルは新入社員で、バディにはすべてのステップで**Buddy**受信者として送れます。
- **Promoted to Manager**：「An employee moves from zero to one or more reports.」最初の直属の部下が現れたときに1回だけ発火します。プリンシパルは新任マネージャーです。
- **Change of Manager**：「The reporting line for an employee has changed.」プリンシパルはマネージャーが変わった従業員です。
- **Change of Location**：「A change in the primary work location for the employee.」従業員が別の国グループに入ったときに発火します。
- **Connected to Slack**：「An employee is matched to their Slack account.」

3. **Configure**で説明を読みます。Buddy Assigned、Promoted to Manager、Change of Manager、Change of Locationには「Only ... after the first time the employee directory loads are included.」が、Connected to Slackには「Only connections made after the first time the messaging integration loads are included.」が加わります。

4. ライフサイクルステージやグループを絞るには**Audience**を開きます。他のすべての新しいオートメーションと同様に、オーディエンスは**Current**から始まります。

5. ステップを追加し、**Publish**を選びます。

> **Note:** Change of Locationは国グループを監視します。その**Configure**タブには「This flow runs when an employee joins a matching group.」とあります。

## 確認できること

リレーションが変わった日に、該当する従業員がその日付を**Reference Date**として[エンロールメント](https://support.pyn.ai/ja/activity/enrollments/)に現れます。**on the day of**にスケジュールされたステップは同じ日のスケジュールされた時刻に送信され、時刻がすでに過ぎているステップはすぐに送信されます。

## 関連ページ

- [バディプログラム](https://support.pyn.ai/ja/flows/automations/tutorial-buddy-programme/)：Buddy Assignedトリガーを最初から最後まで扱います。
- [新任マネージャーのフロー](https://support.pyn.ai/ja/flows/automations/tutorial-new-manager-flow/)：Promoted to Managerについてです。
- [トリガーカタログ](https://support.pyn.ai/ja/flows/automations/trigger-catalogue/)：既定値と、各トリガーが監視するリレーションです。
- [Slack](https://support.pyn.ai/ja/integrations/slack/)：従業員がSlackアカウントとどう照合されるかです。
