--- title: "ユーザー詳細の取得" url: https://docs.catalyst.zoho.com/ja/sdk/web/v4/cloud-scale/authentication/get-user-details/ description: "このページでは、Webアプリケーションでユーザーアカウントの詳細を取得するメソッドについて、サンプルコードスニペットとともに説明します。" last_updated: 2026-02-23T12:39:41Z service: Cloud Scale type: general related_links: - name: "Get Component Instance - Web SDK" url: /ja/sdk/web/v4/cloud-scale/authentication/get-comp-instance - name: "Authentication" url: /ja/cloud-scale/help/authentication/introduction --- # ユーザー詳細の取得 Catalyst認証は、[アプリケーションユーザー](https://docs.catalyst.zoho.com/ja/cloud-scale/help/authentication/user-management/users/introduction/)の詳細を取得するためのいくつかのメソッドを提供します。現在のユーザー、任意のユーザー、またはアプリケーションの全ユーザーの情報を取得できます。 ### 現在のユーザー詳細の取得 `getCurrentProjectUser()` メソッドは、ファンクションが実行されているスコープのユーザーの詳細を取得します。コードスニペットで使用されている `userManagement` リファレンスは、先に作成した[コンポーネントインスタンス](https://docs.catalyst.zoho.com/ja/sdk/web/v4/cloud-scale/authentication/get-comp-instance/)です。 ここで返されるPromiseは、contentキーに現在のアプリケーションユーザーの詳細を含むオブジェクトに解決されます。 ```javascript //Get the details of the current user var userManagement = catalyst.userManagement; var currentUserPromise = userManagement.getCurrentProjectUser(); currentUserPromise .then((response) => { console.log(response.content); }) .catch((err) => { console.log(err); }); ``` また、`getCurrentProjectUser()` メソッドの代替として、`isUserAuthenticated()` メソッドも使用できます。 ```javascript //Get the details of the current user var userManagement = catalyst.auth; var currentUserPromise = userManagement.isUserAuthenticated(); currentUserPromise .then((response) => { console.log(response.content); }) .catch((err) => { console.log(err); }); ``` 各バージョンで受け取るサンプルレスポンスを以下に示します: **Web SDK** ``` { zuid: "10062169698", zaaid: "10062169862", org_id: "10062169862", status: "ACTIVE", is_confirmed: false, email_id: "amelia.burrows@zylker.com", first_name: "Amelia", last_name: "Burrows", created_time: "Jul 05, 2023 10:30 AM", modified_time: "Jul 05, 2023 10:30 AM", invited_time: "Jul 05, 2023 10:30 AM", role_details: { role_name: "App Administrator", role_id: "10103000000115014" }, user_type: "App User", user_id: "10103000000115057", locale: "us|en_us|America/Los_Angeles", time_zone: "America/Los_Angeles" } { zuid: 1005641433, zaaid: 1005641434, org_id: 1005641434, status: "ACTIVE", is_confirmed: false, email_id: "p.boyle@zylker.com", last_name: "Boyle", created_time: "Aug 12, 2021 12:27 PM", role_details: { role_name: "App User", role_id: 2305000000006024 }, user_type: "App User", user_id: 2305000000007745, locale: "us|en|Asia/Kolkata", time_zone: "Asia/Kolkata", project_profiles: [] } ```