> For the complete documentation index, see [llms.txt](https://docs-embed.anyflow.jp/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-embed.anyflow.jp/connectors/notes/cybozu-auth-error.md).

# cybozu.com製品で認証エラーとなる場合

kintone等のcybozu.com製品でアプリの認証がエラーとなる場合によくある事象について説明します。

## IPアドレス制限が行われている

エンドユーザーがcybozu.comで[IPアドレス制限](https://jp.cybozu.help/general/ja/admin/list_security/list_access/ip_restrictions.html)を適用している場合は、Anyflowとの通信が許可されないため、認証が失敗します。

エンドユーザーがcybozu.com の共通管理にて、IP制限ホワイトリストに`AnyflowのIPアドレス`を追加すると解消されます。

```
Anyflow IPアドレス
34.85.41.213
```

設定方法は以下を確認してください。

[IPアドレス制限を設定する - cybozu.comヘルプ](https://jp.cybozu.help/general/ja/admin/list_security/list_access/ip_restrictions/enable_ip.html)

<figure><img src="https://files.readme.io/606c574-image.png" alt="cybozu.com共通管理でAnyflowのIPアドレスを許可する" width="600"><figcaption><p>cybozu.com共通管理でAnyflowのIPアドレスを許可する</p></figcaption></figure>

## APIトークンに設定ミスがある

kintoneの場合、APIトークンの設定にミスがある場合は、認証が失敗することがあります。

以下の観点を確認してください。

1. Anyflowの認証画面で、アプリID, APIトークン, サブドメインの入力に誤りがないか

<figure><img src="https://files.readme.io/7e01318-image.png" alt="Anyflowのkintone認証画面" width="600"><figcaption><p>Anyflowのkintone認証画面</p></figcaption></figure>

<br>

2. kintoneのAPIトークン作成画面で、「保存」ボタンを押しているか
3. 2の操作後にkintoneのアプリ設定画面で、「アプリを更新」ボタンを押しているか

<figure><img src="https://files.readme.io/917cb0c-image.png" alt="kintoneのヘルプより抜粋" width="600"><figcaption><p>kintoneのヘルプより抜粋</p></figcaption></figure>

APIトークンの作成・保存方法は以下を確認してください。

[APIトークンを作成する - kintoneヘルプ](https://jp.cybozu.help/k/ja/user/app_settings/api_token.html)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs-embed.anyflow.jp/connectors/notes/cybozu-auth-error.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
