> For the complete documentation index, see [llms.txt](https://manual.dxable.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://manual.dxable.com/1password/service-account.md).

# サービスアカウント

### **service-account** <a href="#hj55grff65ln" id="hj55grff65ln"></a>

#### **サブコマンド​** <a href="#id-8enwrrhllhir" id="id-8enwrrhllhir"></a>

* [service-account create: サービスアカウントをCreateする](https://developer.1password.com/docs/cli/reference/management-commands/service-account/#service-account-create)
* [service-account ratelimit: サービス アカウントのレート制限の使用状況を取得します](https://developer.1password.com/docs/cli/reference/management-commands/service-account/#service-account-ratelimit)

### **service-account create** <a href="#ajsm234am8zi" id="ajsm234am8zi"></a>

1Password CLI を使用してシークレットにプログラムでアクセスするためのサービス アカウントをCreateします。

$ op service-account create \<serviceAccountName> \[flags]

#### **Flags** <a href="#ti42sxx0gbov" id="ti42sxx0gbov"></a>

\--can-create-vaults Allow the service account to create new vaults.

\--expires-in duration Set how long the service account is valid for in (s)econds,

(m)inutes, (h)ours, (d)ays, or (w)eeks.

\--raw Only return the service account token.

\--vault stringArray Give access to this vault with a set of permissions. Has

syntax \<vault-name>:\<permission>\[,\<permission>]

​​

\--vault フラグを使用して、サービス アカウントがアクセスできる保管庫と、各保管庫に対する権限を指定できます。構文は次のようになります。

$ --vault \<vault-name>:\<permission>,\<permission>

権限は次のいずれかになります。

* read\_items
* write\_items (read\_items が必要)
* share\_items (read\_items が必要)

権限が指定されていない場合は、デフォルトで read\_items になります。

\--expires-in フラグを使用して、サービス アカウントの有効期限を設定できます。

1Password CLI はサービス アカウント トークンを 1 回だけ返します。トークンを紛失しないように、すぐに 1PasswordにSaveしてください。このトークンはパスワードのように扱い、プレーンテキストでSaveしないでください。

NOTE

組み込みの個人用、プライベート用、または従業員用の保管庫へのアクセス権をサービス アカウントに付与することはできません。

#### **例​** <a href="#djys9wnu2i0" id="djys9wnu2i0"></a>

新しいサービス アカウントをCreateします。

$ op service-account create my-service-account --vault Dev:read\_items --vault Test:read\_items,write\_items

有効期限付きのサービス アカウントをCreateします。

$ op service-account create my-service-account --expires-in=24h

新しい保管庫をCreateできるサービス アカウントをCreateします。

$ op service-account create my-service-account --can-create-vaults

### **service-account ratelimit​** <a href="#id-8sqzsdsw0r3t" id="id-8sqzsdsw0r3t"></a>

サービス アカウントの時間別および日別のレート制限の使用状況を取得します。

$ op service-account ratelimit \[{ \<serviceAccountName> | \<serviceAccountID> }] \[flags]


---

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

```
GET https://manual.dxable.com/1password/service-account.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.
