--- title: "現在のユーザーの取得" url: https://docs.catalyst.zoho.com/ja/sdk/flutter/v2/cloud-scale/authentication/get-current-user/ description: "Flutterアプリケーションの現在のエンドユーザーの詳細を取得できます。" last_updated: 2026-02-23T12:39:41Z service: Cloud Scale type: general related_links: - name: "Authentication" url: /ja/cloud-scale/help/authentication/introduction - name: "Users" url: /ja/cloud-scale/help/authentication/user-management/users/introduction/ - name: "Add New User - API" url: /ja/api/code-reference/cloud-scale/authentication/add-new-user/#AddNewUser --- # 現在のユーザーの取得 `getCurrentUser()`メソッドを呼び出すことで、アプリケーションの現在の[エンドユーザー](https://docs.catalyst.zoho.com/ja/cloud-scale/help/authentication/user-management/users/introduction/)の詳細を取得できます。正常に実行されると、このメソッドは現在のユーザーオブジェクトを返します。これを使用して、名前、姓、メールアドレスなど、Catalystに登録されているユーザーの詳細を取得できます。 現在のユーザーを取得するためのコード構文を以下に示します: ```bash ZCatalystApp.getInstance().getCurrentUser( void Function() onSuccess, void Function(ZCatalystException) onFailed ) ``` サンプルコードスニペットを以下に示します: ```bash try { var (response, user) = await app.getCurrentUser(); print('User ID: ${user.id}') } on ZCatalystException catch (ex) { print(ex.toString()); } ```