You can obtain information about a user with the method getUserProfile.
Permission to run the request: Account Owner, Administrator, Organization Administrator.
|credentials (required)||credentials||Read the description of the Credentials object.|
|userId (required)||string||ID of a user, whose information you want to get.|
After the request has been completed, the system returns an object with the following properties.
|userId||string||ID of the specified user.|
|status||int||User status 1 - active, 2 - deleted, 3 - inactive.|
|organizationId||int||Organization ID to which a user belongs.|
|deactivationDate||date||User's deactivation date|
|groups||string||An array of group IDs, to which a given user belongs.|
|fields||string||Fields of user profile (UserFields) - An array of objects with the following properties: name, value.|
|Unknown user||A user with a given ID cannot be found|
|Permission denied||You do not have enough permissions to get user info.|