User Resource
A user is someone with a Speakap account, enrolled in at least one network and identified by a unique email address and other personal details.
Changelog
1.0.4
1.0.10
- Added tourCompleted property.
1.0.13
- Added lastModified property.
1.0.22
1.1.3
- Added XID property.
- Removed relationshipStatus property.
1.3.7
- Added
internal
contactlabel. - Changed headerBackgroundUrl.
- Added organizationGroups relation.
Endpoints
Representations
JSON Properties
Name | Type | Description |
---|
address | object | Hash of address parts |
address.city | string | City |
address.country | object | Two digit ISO 3166-1 country code |
address.lines | array | List of (max 3) free format address lines |
address.postalCode | string | Postal code (free format) |
adminConditionsAccepted | boolean | Read-only Whether or not the user accepted Terms & Conditions for network administrators |
avatarThumbnailUrl | URI | Network profile only File URL to profile picture thumbnail |
birthday | string | Date of birth (ISO 8601 YYYY-MM-DD) |
deleted | boolean | Since 1.0.4 Read-only Whether this user has been deleted or not |
EID | EID | Unique entity identifier |
emailAddresses | array | List of alternative email addresses |
external | boolean | Since 1.0.22 Read-only Whether this is an external user with limited privileges |
fullName | string | Read-only Concatenated name parts |
gender | string | 'female' , 'male' or 'complicated' |
headerBackgroundUrl | URI | File URL to header background image. In API versions up to 1.3.6 this is the URL of a pre-scaled thumbnail. In versions 1.3.7 and higher this is the URL of the original file, which can be scaled by adding w and h query parameters as described here: Custom Thumbnails |
jobTitle | string | Network profile only Current job title |
languages | array | List of languages (ISO 639-1) |
lastModified | datetime | Since 1.0.4 Read-only Last time the user was modified |
name | object | Full name parts |
name.firstName | string | First name |
name.infix | string | Optional infixes ('de' , 'van der ', 'von' , etc.) |
name.familyName | string | Family or last name |
preferredLanguage | string | Global user only Preferred language in RFC 5646/4647 format (e.g. 'en-US' or 'nl-NL' ) |
primaryEmail | string | Read-only Primary email address |
privacyStatementAccepted | boolean | Read-only Whether or not the user accepted Speakap's general Terms & Conditions |
relationshipStatus | string | Until 1.1.3 Relationship status |
telephoneNumbers | array | List of telephone numbers |
tourCompleted | boolean | Since 1.0.10 global user only Whether or not this user has completed the tour at least once |
type | string | "user" |
XID | string | Since 1.1.3 Unique external identifier |
Email address properties
Name | Type | Description |
---|
confirmed | boolean | Read-only Whether the mail has been confirmed |
label | string | Label field |
primary | boolean | Whether the email is the primary email address (defaults to false) |
value | string | Actual email address |
Telephone number properties
Name | Type | Description |
---|
iddCode | string | Valid international calling code (excl. international call prefix) |
label | string | 'home' , 'work' , 'private' or 'internal' (since 1.3.7) |
value | string | Actual telephone number (free format) |
Links (Network profiles)
Relation | Resource | Description |
---|
avatar | message | File message containing the user's avatar |
headerBackground | message | File message containing the groups's header background |
network | network | Network |
settings | settings | Settings (e.g., notification and privacy settings) |
organizationGroups | group | Since 1.3.7 Collection of groups with type business_unit or local_department the user is a member of. |
Name | Type | Resource | Description |
---|
_membership.admin | string | group | Since 1.0.25 Whether this user is the admin of the requested group |
_meta.commented | datetime | message | Since 1.3.1 Date the requested message was commented on by this user |
_meta.liked | datetime | message | Since 1.0.16 Date the requested message was liked by this user |
_meta.read | datetime | message | Since 1.4.5 Date the requested news item was read by this user |
_meta.rsvp | string | message | Since 1.5 RSVP response to the requested event by this user: |
Example
{
"_links": {
"self": {
"href": "/networks/fedcba0987654321/users/1234567890abcdef/"
},
"avatar": {
"href": "/networks/fedcba0987654321/messages/abcdef0123456789/"
}
},
"EID": "1234567890abcdef",
"primaryEmail": "johndoe@gmail.com",
"privacyStatementAccepted": true,
"adminConditionsAccepted": false,
"emailAddresses": [
{ "label": "Primary", "value": "johndoe@gmail.com", "primary": true },
{ "label": "Home", "value": "johndoe@hotmail.com" }
],
"name": {
"firstName": "John",
"infix": "",
"familyName": "Doe"
},
"fullName": "John Doe",
"birthday": "1980-01-01",
"gender": "male",
"relationshipStatus": "single",
"languages":[
"nl",
"en"
],
"preferredLanguage": "en-US",
"tourCompleted": true,
"avatarThumbnailUrl": "http://vault.speakap.com/file/1234567890abcdef",
"headerImageUrl": "http://vault.speakap.com/file/abcdef0123456789",
"address": {
"lines": [
"Pedro de Medinalaan 5-9"
],
"postalCode": "1086 XK",
"city": "Amsterdam",
"country": "NL"
},
"telephoneNumbers": [
{ "iddCode": "31", "label": "Primary", "value": "012-3456789" },
{ "iddCode": "0", "label": "Extension", "value": "1788" }
],
"jobTitle": "Engineer",
"deleted": false,
"lastModified": "2014-11-04T14:17:38.123+01:00",
"external": false
}