--- title: "現在のユーザーの取得" url: https://docs.catalyst.zoho.com/ja/sdk/android/v2/cloud-scale/authentication/get-current-user/ description: "アプリケーションの現在のエンドユーザーの詳細を取得できます。" 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( success: (ZCatalystUser) → Unit, failure: ((ZCatalystException) → Unit)? ): ZCatalystRequest<ZCatalystResponse<ZCatalystUser>>? ``` 以下にサンプルコードスニペットを示します: ```bash ZCatalystApp.getInstance().getCurrentUser( { user -> println("The current user is : ${user.firstName}") }, { exception -> println("Get current user failed! $exception") } ) ```