--- title: "How do I fix it if the 'getCurrentUser()' method in the User Management SDK returns null?" url: https://docs.catalyst.zoho.com/en/faq/sdk/getcurrentuser-return-null/ description: "If the client portal wasn't authenticated before triggering the Basic I/O or Advanced I/O function that contains the getCurrentUser() method, then the function …" last_updated: 2026-11-13T05:00:22Z service: All Services type: faq --- If the client portal wasn't authenticated before triggering the Basic I/O or Advanced I/O function that contains the [`getCurrentUser()`](https://docs.catalyst.zoho.com/en/api/code-reference/cloud-scale/authentication/get-current-user/#GetCurrentUser) method, then the function will run using the admin authentication. This will cause the method to return a null response. Therefore, you should ensure that you have authenticated the client portal before executing the `getCurrentUser()` method.