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

# OAuth 2.0 を使用した Gmail IMAP インポートの設定

> OAuth 2.0 を使用して ABBYY FlexiCapture で Gmail IMAP インポートを設定する手順。Google へのサインイン、メールボックスフォルダーの選択、バッチ作成のテストについて説明します。

IMAP 画像インポートプロファイル用に、OAuth 2.0 認証情報を使用して Gmail インポートを設定します。

<Steps>
  <Step title="プロジェクトを作成してアップロードする">
    プロジェクトを作成し、Application Server にアップロードします。

    <Frame>
      <img src="https://mintcdn.com/abbyy/M5jnw37NmJ-asKkj/images/flexi-capture/clip0012.png?fit=max&auto=format&n=M5jnw37NmJ-asKkj&q=85&s=de2cc3f5f2a2f976147b232b2b7df063" alt="プロジェクトの作成とサーバーへのアップロードを示すスクリーンショット。" width="840" height="114" data-path="images/flexi-capture/clip0012.png" />
    </Frame>
  </Step>

  <Step title="IMAP 画像インポートプロファイルを設定する">
    Gmail を使用する IMAP 画像インポートプロファイルを設定し、画像インポート元を選択します。

    <Frame>
      <img src="https://mintcdn.com/abbyy/M5jnw37NmJ-asKkj/images/flexi-capture/clip0013.png?fit=max&auto=format&n=M5jnw37NmJ-asKkj&q=85&s=7f7a430a67a113720d58f4187bd02d6c" alt="Gmail 用の IMAP 画像インポートプロファイルを設定するスクリーンショット。" width="516" height="293" data-path="images/flexi-capture/clip0013.png" />
    </Frame>
  </Step>

  <Step title="インポートプロファイルの設定を開く">
    画像インポートプロファイルの設定を開きます。

    <Frame>
      <img src="https://mintcdn.com/abbyy/M5jnw37NmJ-asKkj/images/flexi-capture/clip0009.png?fit=max&auto=format&n=M5jnw37NmJ-asKkj&q=85&s=eaf9f16ab892d3fd788d2add4eb10ff4" alt="画像インポートプロファイルの設定を示すスクリーンショット。" width="600" height="479" data-path="images/flexi-capture/clip0009.png" />
    </Frame>
  </Step>

  <Step title="Gmail ID を入力してサインインを開始する">
    Gmail ID を入力し、**Sign-in** をクリックして OAuth 認証を開始します。Google OAuth のウィンドウが表示されます。

    <Frame>
      <img src="https://mintcdn.com/abbyy/M5jnw37NmJ-asKkj/images/flexi-capture/clip0014.png?fit=max&auto=format&n=M5jnw37NmJ-asKkj&q=85&s=1c0547fb7cf6a4df996e6ca82df553b2" alt="Gmail ID フィールドと Sign-in ボタンを示すスクリーンショット。" width="763" height="386" data-path="images/flexi-capture/clip0014.png" />
    </Frame>
  </Step>

  <Step title="Google アカウントにサインインする">
    Gmail アカウントを入力し、**Next** をクリックしてパスワードを入力します。

    <Frame>
      <img src="https://mintcdn.com/abbyy/M5jnw37NmJ-asKkj/images/flexi-capture/clip0007.png?fit=max&auto=format&n=M5jnw37NmJ-asKkj&q=85&s=fe2e55d715b2ec7652cd90ff0aad0b4c" alt="Google アカウントのサインインページを示すスクリーンショット。" width="870" height="393" data-path="images/flexi-capture/clip0007.png" />
    </Frame>
  </Step>

  <Step title="アクセスを許可する">
    信頼に関するメッセージを確認し、**Continue** をクリックします。認証に成功すると、`Thank you for allowing` というメッセージが表示されます。OAuth のポップアップが閉じ、Project Setup Station に戻ります。

    <Frame>
      <img src="https://mintcdn.com/abbyy/M5jnw37NmJ-asKkj/images/flexi-capture/clip0016.png?fit=max&auto=format&n=M5jnw37NmJ-asKkj&q=85&s=351d40ee288156d20deced56e4b86041" alt="Continue ボタンを含む Google の信頼に関するメッセージを示すスクリーンショット。" width="593" height="366" data-path="images/flexi-capture/clip0016.png" />
    </Frame>
  </Step>

  <Step title="接続の種類を設定する">
    IMAP プロファイルの設定を完了します。**Type of encrypted connection** を **Auto** に設定し、**OK** をクリックします。

    <Frame>
      <img src="https://mintcdn.com/abbyy/M5jnw37NmJ-asKkj/images/flexi-capture/clip0017.png?fit=max&auto=format&n=M5jnw37NmJ-asKkj&q=85&s=b2141a759cfd57ed75f175f1c71a0f59" alt="Type of encrypted connection が Auto に設定されているスクリーンショット。" width="563" height="412" data-path="images/flexi-capture/clip0017.png" />
    </Frame>
  </Step>

  <Step title="Gmail フォルダーを参照する">
    **Browse** をクリックして、Gmail フォルダーの階層を表示します。

    <Frame>
      <img src="https://mintcdn.com/abbyy/M5jnw37NmJ-asKkj/images/flexi-capture/clip0004.png?fit=max&auto=format&n=M5jnw37NmJ-asKkj&q=85&s=9dd77c915bc1e208b34fbfcec91469f3" alt="Gmail フォルダー階層用の Browse ボタンを示すスクリーンショット。" width="566" height="388" data-path="images/flexi-capture/clip0004.png" />
    </Frame>
  </Step>

  <Step title="対象フォルダーを選択する">
    処理する文書を格納するフォルダーを選択します。

    <Frame>
      <img src="https://mintcdn.com/abbyy/M5jnw37NmJ-asKkj/images/flexi-capture/clip0003.png?fit=max&auto=format&n=M5jnw37NmJ-asKkj&q=85&s=d25de5bacf37add1c90a4c330e79a88c" alt="対象の Gmail フォルダーを選択するスクリーンショット。" width="774" height="377" data-path="images/flexi-capture/clip0003.png" />
    </Frame>
  </Step>

  <Step title="プロファイルを完了する">
    IMAP プロファイルの残りの設定を完了します。

    <Frame>
      <img src="https://mintcdn.com/abbyy/M5jnw37NmJ-asKkj/images/flexi-capture/clip0001.png?fit=max&auto=format&n=M5jnw37NmJ-asKkj&q=85&s=74e3b53d9bd68e33bb9e29f24bfa4024" alt="残りの IMAP プロファイル設定を示すスクリーンショット。" width="631" height="231" data-path="images/flexi-capture/clip0001.png" />
    </Frame>
  </Step>

  <Step title="Hot Folder を有効にする">
    管理および監視コンソールで、プロジェクトの **Hot Folder** トグルを有効にします。
  </Step>

  <Step title="インポートをテストする">
    選択した Gmail フォルダーに添付ファイル付きのメールを送信します。文書が処理され、バッチが作成されることを確認します。

    <Frame>
      <img src="https://mintcdn.com/abbyy/M5jnw37NmJ-asKkj/images/flexi-capture/clip0002.png?fit=max&auto=format&n=M5jnw37NmJ-asKkj&q=85&s=7f8f4ebaca3ec7fc4de51e36f5790de9" alt="インポートした文書からバッチが作成されたことを確認するスクリーンショット。" width="863" height="144" data-path="images/flexi-capture/clip0002.png" />
    </Frame>
  </Step>
</Steps>
