API documentation

User Class Reference

Description

Renders a user.

Protected Member Functions

 _render ($user)
 Renders a user. More...
 

Member Function Documentation

_render (   $user)
protected

Renders a user.

{
"id": 4,
"entityType": "Users",
"rev": "0",
"name": "John Smith",
"firstName": "John",
"lastName": "Smith",
"isEnabled": true,
"isAdministrator": false,
"emails": [
"jsmith@example.com",
"john@example.com"
],
"teams": {
"viewOwn": [ Team ], // optional - only if teams at this restriction
"viewTeam": [ Team ], // optional - only if teams at this restriction
"viewAll": [ Team ] // optional - only if teams at this restriction
},
"email": "jsmith@example.com", // DEPRECATED use emails
"username": "jsmith@dev.example.com" // DEPRECATED use any email address
"modifiedTime": "2010-04-26T15:25:10+0000" // ATOM/rfc3339 format. If modified_time is blank the created_time value is returned in its place.
"createdTime": "2010-04-26T15:25:10+0000" // ATOM/rfc3339 format.
}
Returns
array