# CyberArkからのインポート

<figure><img src="https://859776093-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPL6k1aGsLiFiiJ3Y7zCl%2Fuploads%2F1ceVQfgYOXmrr7Asq7jG%2Fimage.png?alt=media&#x26;token=4b08e8e8-24dc-4f53-88ec-13e10225c37d" alt=""><figcaption></figcaption></figure>

KeeperコマンダーからCyberArk Privilege Cloud Webポータルまたはセルフホスト型のPassword Vault Web Access (PVWA) にログインしてアカウントとそのパスワードを取得し、対応するサーバーレコードを Keeperに自動的に作成します。

```sh
keeper import --format=cyberark server.domain
```

サーバーが CyberArk Privilege Cloud Web ポータル (すなわち、".cyberark.cloud" で終わる) の場合、CyberArk Identity テナント ID および CyberArk サービスユーザーの認証情報が求められます。

```
CyberArk Identity Tenant ID: abc12345
CyberArk service user name: myserviceuser
Cyberark service user password:
```

備考: IdentityテナントIDはログインURLの最初の部分です (例: <https://abc12345.id.cyberark.cloud/>...)

サーバーがその他のホスト名またはIPアドレスの場合、PVWAの認証方法、ユーザー名、およびパスワードが求められます。

```
CyberArk logon type (Cyberark, LDAP, RADIUS or Windows): LDAP
CyberArk username: myusername
CyberArk password: 
```

備考: Active Directoryアカウントでログインするには、WindowsではなくLDAPを使用してください。

Windowsおよび\*NIXグループのプラットフォームに基づくCyberArkアカウントはサーバーレコードとしてインポートされます。Business Websiteプラットフォーム (つまり、CyberArk Workforce Password Managementアカウント) に基づくアカウントはログインレコードとしてインポートされます。

### アカウントのインポート <a href="#using-a-search-string-to-limit-results" id="using-a-search-string-to-limit-results"></a>

ここでのプロセスでは、インポートされるアカウント (ID、名前、セーフを含む) が一覧表示され、タイマーとETA付きの進行状況メーターが表示されます。アカウントのパスワード取得に失敗した場合は、リトライ、スキップ、同様のエラーが発生したすべてのアカウントをスキップするオプションが表示されます。これにより、リクエストの再試行、アカウントのスキップ、エラーが発生したすべてのアカウントを一括スキップできます。

<figure><img src="https://859776093-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPL6k1aGsLiFiiJ3Y7zCl%2Fuploads%2F11RowOAekki7tJz9zqfZ%2Fimage.png?alt=media&#x26;token=59e4f2f1-7823-44ba-9d23-9b48dbc4101c" alt=""><figcaption><p>パスワードAPIエンドポイントからの400 (Bad Request) HTTPレスポンスによって表示されるダイアログ</p></figcaption></figure>

#### スキップされたアカウント

処理が完了すると、スキップされたアカウントが一覧表示されます。リストにはID、名前、セーフ、エラーコード、エラーメッセージが含まれます。

### 検索文字列を使用して結果を絞り込む <a href="#using-a-search-string-to-limit-results" id="using-a-search-string-to-limit-results"></a>

この処理では、デフォルトですべてのアカウントがインポートされますが、疑問符 (?) に続いて検索文字列を追加すると、検索に一致するアカウントのみが処理されます。

```sh
keeper import --format=cyberark 10.11.12.13?WinDomain
```

### カスタムクエリ文字列の使用

また、検索文字列に「=」が含まれている場合、その文字列は以下のようにCyberArkのGet Accountsエンドポイントにクエリ文字列として渡されます。

```
keeper import --format=cyberark example.cyberark.cloud?limit=10&offset=20
```

limitおよびoffsetパラメータをAccountsエンドポイントに渡し、アカウントをページングし、20番目のアカウントから開始し、10件ずつ取得します。

### PowerShellメソッド <a href="#powershell-method" id="powershell-method"></a>

[ユーザーガイド](https://app.gitbook.com/s/6Y1mjnoaNcCi93oXSTE3/import-records-1/cyberarkkaranoinpto)にPowerShellスクリプトを使用してCyber​​arkからKeeperにデータをインポートする手順が掲載されています。ただし、このスクリプトはボルトサーバーに直接アクセスするため、セルフホスト型サーバーでしか機能しません。


---

# Agent Instructions: 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:

```
GET https://docs.keeper.io/jp/keeperpam/commander-cli/command-reference/import-and-export-commands/cyberark-import.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
