Description
This function retrieves information about a Logaholic user.
Warning:
We strongly recommend that you use UAPI instead of cPanel API 2. However, no equivalent UAPI function exists.
Important:
As of cPanel & WHM version 11.48, the integrated Logaholic application is no longer available. We removed Logaholic's API functions, and they will not produce any results.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
Return |
Type |
Description |
Possible values |
Example |
username |
string |
Required The Logaholic username. |
A valid string. |
example |
Returns
Return |
Type |
Description |
Possible values |
Example |
reason |
string |
The function's status. |
|
The Logaholic user \u201cexample\u201d exists. |
userid |
integer |
The Logaholic user's ID number. |
A positive integer. |
3 |
|
string |
The Logaholic user's email address. |
A valid email address. |
user@example.com |
password |
string |
The Logaholic user's password, hidden for security reasons. |
__HIDDEN__ |
__HIDDEN__ |
foreignkey |
string |
The Logaholic user's foreign key. |
|
|
metadata |
string |
The Logaholic user's metadata. |
|
|
lastlogin |
integer |
The Logaholic user's last login time, in Unix time format. |
A valid Unix timestamp. |
1413992677 |
profiles |
string |
A list of the Logaholic user's profiles. |
A list of profile names. |
subdomain.example.com |
usersessionid |
string |
The Logaholic user's session ID. |
A valid session ID. |
cpsess1658535621 |
accessAddProfile |
boolean |
Whether the Logaholic user may add profiles. |
|
0 |
name |
string |
The Logaholic user's name. |
A valid string. |
President Skroob |
active |
boolean |
Whether the Logaholic user is currently active. |
|
1 |
subscriptionid |
string |
The Logaholic user's subscription number. |
An integer. |
0 |
username |
string |
The Logaholic user's username. |
A valid string. |
example |
created |
integer |
The Logaholic user's creation time, in Unix time format. |
A valid Unix timestamp. |
1413992677 |
accessEditProfile |
boolean |
Whether the Logaholic user may edit profiles. |
|
1 |
accessUpdateLogs |
boolean |
Whether the Logaholic user may update logs. |
|
0 |
isAdmin |
boolean |
Whether the Logaholic user is an administrator. |
|
0 |
expires |
boolean |
Whether the Logaholic user may expire. |
|
0 |
result |
boolean |
Whether the function succeeded. |
|
1 |
reason |
string |
A reason for failure. Note: This function only returns areasonvalue if it failed. |
A string that describes the error. |
This is an error message. |
result |
boolean |
Whether the function succeeded. |
|
1 |