> ## Documentation Index
> Fetch the complete documentation index at: https://support.i.moneyforward.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Statsig

> How to integrate with Statsig.

export const IntegrationCapabilities = ({lang = "ja", modes = "", plan = "", lifecycle = "", automation = "", fetch = "", capabilities = "", memo = ""}) => {
  const TEXT = ({
    ja: {
      rows: {
        mode: "連携モード",
        plan: "連携確認プラン",
        lifecycle: "アカウントライフサイクル",
        automation: "自動化",
        fetch: "取得データ",
        capabilities: "対応機能",
        memo: "備考"
      },
      empty: "-",
      more: "各項目の意味は[連携可能SaaS・機能対応一覧](/integrations/supported-saas)をご覧ください。",
      mode: {
        "API Key": "APIキー"
      },
      lifecycle: {
        provisioning: "アカウント作成",
        deactivate: "アカウント無効化",
        delete: "アカウント削除"
      },
      automation: {
        provisioning: "アカウント作成",
        deactivate: "アカウント無効化",
        delete: "アカウント削除"
      },
      fetch: {
        User: "ユーザー名",
        Mail: "メールアドレス",
        Role: "ロール",
        Status: "ステータス",
        "2FA": "二要素認証",
        LastActivity: "最終利用日",
        Licenses: "ライセンス"
      },
      capabilities: {
        "employee-master": "従業員マスター連携",
        "identity-provider": "IDプロバイダー連携",
        "cost-aggregation": "コスト管理",
        "file-aggregation": "ファイル管理",
        "file-permissions": "ファイル権限管理",
        "device-aggregation": "MDM連携"
      }
    },
    en: {
      rows: {
        mode: "Integration mode",
        plan: "Verified plan",
        lifecycle: "Account lifecycle",
        automation: "Automation",
        fetch: "Fetched data",
        capabilities: "Capabilities",
        memo: "Notes"
      },
      empty: "-",
      more: "See [Supported SaaS and Capabilities](/en/integrations/supported-saas) for what each item means.",
      mode: {},
      lifecycle: {
        provisioning: "Account creation",
        deactivate: "Account deactivation",
        delete: "Account deletion"
      },
      automation: {
        provisioning: "Account creation",
        deactivate: "Account deactivation",
        delete: "Account deletion"
      },
      fetch: {
        LastActivity: "Last Activity"
      },
      capabilities: {
        "employee-master": "HR master",
        "identity-provider": "Identity provider",
        "cost-aggregation": "Cost management",
        "file-aggregation": "File management",
        "file-permissions": "File permissions",
        "device-aggregation": "MDM integration"
      }
    }
  })[lang === "en" ? "en" : "ja"];
  const BADGE_COLORS = {
    "ID/Password": "yellow",
    "API Key": "cyan",
    OAuth: "red",
    App: "purple",
    User: "blue",
    Mail: "cyan",
    Role: "orange",
    Status: "teal",
    "2FA": "pink",
    LastActivity: "green",
    Licenses: "purple",
    provisioning: "green",
    delete: "red",
    deactivate: "yellow",
    "employee-master": "blue",
    "identity-provider": "teal",
    "cost-aggregation": "yellow",
    "file-aggregation": "cyan",
    "file-permissions": "orange",
    "device-aggregation": "purple"
  };
  const list = value => String(value || "").split(",").map(item => item.trim()).filter(Boolean);
  const badges = (source, labels) => {
    const values = list(source);
    if (values.length === 0) {
      return <span className="integration-capabilities-empty">{TEXT.empty}</span>;
    }
    return values.map(value => <span key={value} className={"integration-catalog-badge integration-catalog-badge--" + (BADGE_COLORS[value] || "gray")}>
        {labels?.[value] ?? value}
      </span>);
  };
  const text = value => value || <span className="integration-capabilities-empty">{TEXT.empty}</span>;
  const ROWS = [["mode", badges(modes, TEXT.mode)], ["plan", text(plan)], ["lifecycle", badges(lifecycle, TEXT.lifecycle)], ["automation", badges(automation, TEXT.automation)], ["fetch", badges(fetch, TEXT.fetch)], ["capabilities", badges(capabilities, TEXT.capabilities)], ["memo", text(memo)]];
  return <div className="integration-capabilities">
      <dl className="integration-capabilities-list">
        {ROWS.map(([key, value]) => <div className="integration-capabilities-row" key={key}>
            <dt>{TEXT.rows[key]}</dt>
            <dd>{value}</dd>
          </div>)}
      </dl>
    </div>;
};

## Integration Specifications

<IntegrationCapabilities lang="en" modes="API Key" lifecycle="provisioning" fetch="User, Mail, Role, Status" />

## Prerequisites

### Getting your API key

1. After logging in to Statsig, select **Keys & Environments** from **Settings**.

   <img src="https://mintcdn.com/moneyforwardi/xh05AifYTyjhC1D3/images/integrations/statsig/settings-menu.png?fit=max&auto=format&n=xh05AifYTyjhC1D3&q=85&s=6d19d230e221cc25066b793fb850c813" alt="Statsig settings screen with the Keys & Environments menu shown" width="468" height="884" data-path="images/integrations/statsig/settings-menu.png" />

2. On the **API Keys** tab, click **Generate New Key**.

   <img src="https://mintcdn.com/moneyforwardi/xh05AifYTyjhC1D3/images/integrations/statsig/api-keys-generate.png?fit=max&auto=format&n=xh05AifYTyjhC1D3&q=85&s=46dca655cae936f970bedc395f4b3a28" alt="API Keys tab with the Generate New Key button shown" width="1920" height="140" data-path="images/integrations/statsig/api-keys-generate.png" />

3. For **Key Type**, select **Console**, check **Can Access Keys**, then click **Create**.

   <img src="https://mintcdn.com/moneyforwardi/xh05AifYTyjhC1D3/images/integrations/statsig/create-key-modal.png?fit=max&auto=format&n=xh05AifYTyjhC1D3&q=85&s=8b05e56407acf3fbcb9c2be180b16161" alt="Create New Key modal for setting the key type and access permissions" width="1002" height="970" data-path="images/integrations/statsig/create-key-modal.png" />

4. Open the key from the list of keys you created.

   <img src="https://mintcdn.com/moneyforwardi/xh05AifYTyjhC1D3/images/integrations/statsig/key-list.png?fit=max&auto=format&n=xh05AifYTyjhC1D3&q=85&s=e436afae547042a225a70d795f45d009" alt="The created console key shown in the key list" width="1920" height="173" data-path="images/integrations/statsig/key-list.png" />

5. Copy and save the **Secret Key Value** shown.

   <img src="https://mintcdn.com/moneyforwardi/xh05AifYTyjhC1D3/images/integrations/statsig/secret-key-value.png?fit=max&auto=format&n=xh05AifYTyjhC1D3&q=85&s=275e31257a05edad4183cfb11b62ea69" alt="Secret Key Value modal showing the key value" width="1000" height="336" data-path="images/integrations/statsig/secret-key-value.png" />

## Setting up the integration

1. On the integration screen, search for **Statsig**.

2. Enter a **workspace name** (optional) and the API key from the previous step, then click **Connect**.

   <img src="https://mintcdn.com/moneyforwardi/xh05AifYTyjhC1D3/images/integrations/statsig/setup-modal.png?fit=max&auto=format&n=xh05AifYTyjhC1D3&q=85&s=4958340f11ea09cfc9b65b15e0145f66" alt="Statsig integration setup screen" width="748" height="850" data-path="images/integrations/statsig/setup-modal.png" />

3. Once the integration with Statsig succeeds, registered user information appears in the account list. If it doesn't complete successfully, first try the steps in [Troubleshooting failed SaaS integrations](/en/it-management/saas-management/93nahw45is-trouble). If that doesn't resolve it, check [Information to provide](/en/it-management/saas-management/93nahw45is-trouble#info-to-provide) and contact [support](/en/contact-support).
