メインコンテンツへスキップ

Documentation Index

Fetch the complete documentation index at: https://developer.box.com/llms.txt

Use this file to discover all available pages before exploring further.

App Users are programmatic user accounts that can be created by apps using server authentication ( or ). They represent users, groups, or processes behind the scenes in your application without requiring a Box account to log in. Before you can create App Users, your JWT or CCG application must be in the Admin Console, which generates a . You use the Service Account’s access token to create App Users through the API. App Users can only be accessed through the Box APIs and don’t have credentials to log in to box.com directly.

一般的なApp Userのパターン

一般的なApp Userは以下のようなパターンを目的に作成されます。
  • box.comアカウントを持たない単一のアプリケーションユーザーまたはユーザーグループを表すため。
  • App Userに会社内のすべてのイベントを監視させるなどの、アプリケーションプロセスを表すため。
  • コンテンツがbox.comウェブアプリによって変更される可能性を排除し、ユーザーアカウントのファイルおよびフォルダ構造を完全に制御する機能をアプリケーションに提供するため。

新しいApp Userの作成

新しいApp Userを生成するには、最低でもApp Userの名前が必要になります。
BoxUser.Info createdUserInfo = BoxUser.createAppUser(api, "A User");
App Userの作成時に設定できるすべての使用可能なオプションパラメータを確認するには、エンドポイントを参照してください。
新しく作成したアカウントを変更できるようにするには、受信した確認メールにあるリンクをクリックする必要があります。
App Userが作成されると、ユーザーオブジェクトが返されます。ユーザーオブジェクト内には、App UserのIDがあります。これは、ユーザーを変更するAPIリクエストを実行するために今後使用される可能性があります。