> ## Documentation Index
> Fetch the complete documentation index at: https://translations.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> ユーザープロファイルの構造に影響する Yahoo API の変更について説明します。

# Yahoo API の変更

Yahoo は、アプリケーションが [Social Directory API](https://developer.yahoo.com/oauth/social-directory-eol/) からユーザープロファイルを取得するために使用する API を、Yahoo の `/userinfo` エンドポイントに変更しました。この変更により、Auth0 における Yahoo ユーザーのユーザープロファイルの構造も変わります。

これまで Auth0 は、Yahoo が返すすべてのプロファイルデータを読み込み、さらに Yahoo のプロファイルからマッピングした以下の追加フィールドも加えていました。

Yahoo は `url`、`profileUrl`、`isConnected`、および [Yahoo のドキュメント](https://developer.yahoo.com/oauth/social-directory-eol/) に記載されているその他のフィールド群の返却を終了しました (「List Of Attributes Deprecated in Social Directory Profile Api」を参照) 。これらのフィールドも、今後はプロファイルに含まれなくなります。

Yahoo の `/userinfo` エンドポイントは、[Yahoo アプリケーション](https://developer.yahoo.com/apps/) の定義で設定した API の権限に応じて、返すフィールドが異なります。Yahoo では、**Profile (Social Directory)** の権限セクションで、次の 4 つの権限のいずれかを付与できます。

* Read Public Basic
* Read Public Extended
* Read Write Public
* Read Write Public and Private

<div id="actions">
  ## Actions
</div>

<Tooltip tip="Auth0 Dashboard: サービスを設定するための Auth0 の主要製品。" cta="用語集を見る" href="/docs/ja-jp/glossary?term=Auth0+Dashboard">Auth0 Dashboard</Tooltip> で Yahoo 接続を設定する際は、Yahoo 側の設定で付与した権限に対応する属性を選択してください。Yahoo 側で指定した内容と一致しない属性を選択すると、ログイントランザクションは失敗します。

Auth0 の接続設定で権限を何も選択しない場合、Auth0 はデフォルトで `openid` スコープを要求し、Yahoo アプリケーションで指定した API 権限に対応するプロファイル項目を返します。たとえば、Yahoo アプリケーションが **Read Public Extended** 権限で設定されている場合、Yahoo は次の項目を返します。

* `sub, name`
* `given_name`
* `family_name`
* `locale`
* `email`
* `email_verified`
* `birthdate`
* `profile_images`
* `picture`
* `preferred_username`
* `phone_number`
* `nickname`

Yahoo 接続を使用してユーザーを認証し、基本情報を取得している場合、アプリケーションは引き続き変更なしで動作します。

アプリケーションが現在利用できなくなったユーザープロファイル内の項目にアクセスしている場合は、Auth0 Dashboard で正しい **Connection Attribute** を有効にし、適切な項目名を使用するようにアプリケーションコードを調整する必要があります。
