Get the Details of the Current User
Description
This API enables you to fetch the details of the current user logged into the Catalyst application, on whose scope the function is being executed.
Request URL
https://api.catalyst.zoho.com/baas/v1/project/{project_id}/project-user/current
project_id - The unique ID of the project
Request Header
Authorization: Zoho-oauthtoken 1000.910***************************16.2f****************************57
Request Method
GET
Scope
scope=ZohoCatalyst.projects.users.READ
Note: This operation can also be executed with Catalyst user authentication permissions using Catalyst SDKs. However, the user can only obtain their own user details. Refer to the Catalyst API Prerequisites section for details.
SDK Documentation
Sample Request
curl -X GET \
https://api.catalyst.zoho.com/baas/v1/project/3000000005007/project-user/current \
-H "Authorization: Zoho-oauthtoken 1000.910***************************16.2f****************************57"
Sample Response
{
"status":"success",
"data":{
"zuid": 3000000006111,
"zaaid":1019540153,
"status":"ACTIVE",
"user_id":671930409,
"is_confirmed":true,
"email_id":"p.boyle@zylker.com",
"first_name":"Patricia",
"last_name":"Boyle",
"created_time":"Jul 09, 2019 04:11 PM",
"modified_time":"Jul 09, 2019 04:11 PM",
"invited_time":"Jul 09, 2019 04:11 PM",
"role_details":{
"role_id":3000000005090,
"role_name":"App Administrator"
}
}
}