> ## 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 Userの作成

export const Link = ({href, children, className, ...props}) => {
  const localizedHref = localizeLink(href);
  return <a href={localizedHref} className={className} {...props}>
      {children}
    </a>;
};

export const MultiRelatedLinks = ({sections = []}) => {
  if (!sections || sections.length === 0) {
    return null;
  }
  return <div className="space-y-8">
      {sections.map((section, index) => <RelatedLinks key={index} title={section.title} items={section.items} />)}
    </div>;
};

export const RelatedLinks = ({title, items = []}) => {
  const getBadgeClass = badge => {
    if (!badge) return "badge-default";
    const badgeType = badge.toLowerCase().replace(/\s+/g, "-");
    return `badge-${badge === "ガイド" ? "guide" : badgeType}`;
  };
  if (!items || items.length === 0) {
    return null;
  }
  return <div className="my-8">
      {}
      <h3 className="text-sm font-bold uppercase tracking-wider mb-4">{title}</h3>

      {}
      <div className="flex flex-col gap-3">
        {items.map((item, index) => <a key={index} href={item.href} className="py-2 px-3 rounded related_link hover:bg-[#f2f2f2] dark:hover:bg-[#111827] flex items-center gap-3 group no-underline hover:no-underline border-b-0">
            {}
            <span className={`px-2 py-1 rounded-full text-xs font-semibold uppercase tracking-wide flex-shrink-0 ${getBadgeClass(item.badge)}`}>
              {item.badge}
            </span>

            {}
            <span className="text-base">{item.label}</span>
          </a>)}
      </div>
    </div>;
};

App Userは、サーバー認証 (<Link href="/guides/authentication/jwt/jwt-setup">JWT</Link>または<Link href="/guides/authentication/client-credentials/client-credentials-setup">クライアント資格情報許可</Link>) を使用するアプリによって作成されるプログラム上のユーザーアカウントです。ログイン用のBoxアカウントを必要とせず、アプリケーションの背後でユーザー、グループ、またはプロセスを表します。

App Userを作成する前に、JWTまたはCCGアプリケーションを管理コンソールで<Link href="/guides/authorization/platform-app-approval">承認</Link>する必要があります。これにより、<Link href="/platform/user-types#service-account">サービスアカウント</Link>が生成されます。このサービスアカウントのアクセストークンを使用し、APIを通じてApp Userを作成します。

App UserはBox APIを介してのみアクセスでき、`box.com`に直接ログインするための資格情報を持っていません。

## 一般的なApp Userのパターン

一般的なApp Userは以下のようなパターンを目的に作成されます。

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

## 新しいApp Userの作成

新しいApp Userを生成するには、最低でもApp Userの名前が必要になります。

<CodeGroup>
  ```java Java v5 theme={null}
  BoxUser.Info createdUserInfo = BoxUser.createAppUser(api, "A User");
  ```

  ```python Python v4 theme={null}
  new_app_user = client.create_user('App User 123', login=None)
  ```

  ```cs .NET v6 theme={null}
  var userParams = new BoxUserRequest()
  {
      Name = "App User 12",
      ExternalAppUserId = "external-id",
      IsPlatformAccessOnly = true
  };
  BoxUser newUser = await client.UsersManager.CreateEnterpriseUserAsync(userParams);
  ```
</CodeGroup>

App Userの作成時に設定できるすべての使用可能なオプションパラメータを確認するには、<Link href="/reference/post-users">ユーザーを作成</Link>エンドポイントを参照してください。

<Note>
  新しく作成したアカウントを変更できるようにするには、受信した確認メールにあるリンクをクリックする必要があります。
</Note>

App Userが作成されると、ユーザーオブジェクトが返されます。ユーザーオブジェクト内には、App UserのIDがあります。これは、ユーザーを変更するAPIリクエストを実行するために今後使用される可能性があります。

<RelatedLinks
  title="関連するAPI"
  items={[
{ label: translate("Create user"), href: "/reference/post-users", badge: "POST" }
]}
/>

<RelatedLinks
  title="関連するガイド"
  items={[
{ label: translate("Create Managed User"), href: "/guides/users/create-managed-user", badge: "GUIDE" },
{ label: translate("Deprovision Users"), href: "/guides/users/deprovision/index", badge: "GUIDE" },
{ label: translate("Transfer Files & Folders"), href: "/guides/users/deprovision/transfer-folders", badge: "GUIDE" }
]}
/>
