osapi.jive.corev3.people.Person
A Person represents a Jive user in a style that is as consistent as possible with the
OpenSocial
specification for a Person
object.
The JSON representation of a Person has several fields for information about emails, phone numbers, etc.
More information about these fields can be found here:
Addresses
- collection of a Jive user's physical addressesEmails
- collection of a Jive user's emailsJive
- Jive extensions to a Person object (level, username, external contributor, etc.)Level
- status level of a Jive userName
- contains first name, last name, and formatted namePhoneNumbers
- collection of a Jive user's phone numbersPhotos
- collection of URIs to a Jive user's profile imagesProfile
- profile information besides addresses, emails, phone numbers, and locationsProfileImage
- a Jive user's profile imageUpdate
- status update of a Jive user or place
Examples:
Example JSON
JSON with the most important data for a Person. See the table below for a list of all fields.
{ "name" : { "formatted" : "Administrator" }, "type" : "person", "status" : "My new status", "displayName" : "Administrator", "jive" : { "level" : { "name" : "Scout", "points" : 582 }, "profile" : [ { "value" : "Master of puppets", "jive_label" : "Title" }, { "value" : "Support", "jive_label" : "Department" }, { "value" : "ACME Inc.", "jive_label" : "Company" }, { "value" : "09/05/2001", "jive_label" : "Hire Date" }, { "value" : "I was born in Earth.", "jive_label" : "Biography" }, { "value" : "Expert in this and that.", "jive_label" : "Expertise" } ], "username" : "admin", "external" : false, "visible" : true, "enabled" : true, "externalContributor" : false, "federated" : false }, "emails" : [ { "value" : "admin@example.com", "type" : "work", "jive_label" : "Email", "primary" : true } ], "addresses" : [ { "value" : { "streetAddress" : "915 SW Stark St", "locality" : "Portland", "region" : "Oregon", "postalCode" : "97205", "country" : "USA", "formatted" : "915 SW Stark St\nPortland Oregon 97205\nUSA" }, "jive_label" : "Address", "primary" : true } ], "phoneNumbers" : [ { "value" : "503.972.6655", "jive_label" : "Phone Number", "primary" : true }, { "value" : "503.972.6644", "jive_label" : "Mobile Phone Number" } ], "photos" : [ { "value" : "https://example.jiveon.com/api/core/v3/people/1/images/1/data" } ], "thumbnailUrl" : "https://example.jiveon.com/api/core/v3/people/1/avatar", "followerCount" : 0, "followingCount" : 4, "published" : "2012-05-14T19:12:10.061+0000", "updated" : "2012-07-15T19:57:17.009+0000" }
Create Person
Read create()
to learn how to create a new person.
Update Person Status
Use update()
to update a person. By
setting the status
field, the person status will get updated and published in the activity stream.
Properties
Methods
Resources
Properties
Property | Type | Mode † | Description |
---|---|---|---|
addresses | Addresses | optional | ↑ Postal addresses belonging to this person, with standard types home,other,pobox,work and value type of address Availability:This person has at least one postal address visible to you. |
directReportCount | Integer | read-only | ↑ Number of people who report to this person. Since: 3.10 |
displayName | String | read-only | ↑ Formatted full name of this person, suitable for use in UI presentation. If the person has privacy settings that do not allow you to see his or her name, this will be the Jive username instead. |
emails | Emails | required | ↑ Email addresses belonging to this person, with standard types home,other,work and value type of string. Availability:This person has at least one email address visible to you. |
followerCount | Integer | read-only | ↑ Number of people following this object. Availability:Will be present only for object types that support being followed. |
followingCount | Integer | read-only | ↑ Number of people this person is following. |
id | String | read-only | ↑ Identifier (unique within an object type and Jive instance) of this object. This field is internal to Jive and should not be confused with contentID or placeID used in URIs. |
initialLogin | ISO 8601 Date | optional | ↑ Date and time when this person originally logged in which could have also been when they accepted an invitation if
they were invited to the community. Availability:Visible only to Jive admins or on your own person object. Since: 3.10 |
isFollowed | Boolean | read-only | ↑ Whether the current user is following this object. Availability:Will be present only for object types that support being followed. |
jive | Jive | required | ↑ Jive extensions to OpenSocial person object. |
location | String | optional | ↑ Geographic location of this person. |
mentionName | String | read-only | ↑ Formatted full name of this person, suitable for use in mentions. If the person has privacy settings that do not allow you to see his or her name, this will be the Jive username instead. |
name | Name | required | ↑ Name components for this person. |
phoneNumbers | PhoneNumbers | optional | ↑ Phone numbers belonging to this person, with standard types: fax, home, mobile, other, pager, work. Availability:This person has at least one phone number visible to you. |
photos | Photos | read-only | ↑ URI(s) of profile images for this person. To manage profile images in REST, use the Availability:Jive instance must be configured to support profile images. |
published | ISO 8601 Date | read-only | ↑ Date and time when this person was originally created. Availability:Visible only to Jive admins or on your own person object. |
resources | Object | read-only | ↑ Resource links (and related permissions for the requesting person) relevant to this object. |
status | String | optional | ↑ Most recent status update for this person. Updating the status of a person this way, will not let you include images. If you need to include images then try creating an Update content. |
| String[] | optional | ↑ Defined tags for this person. Availability:Tags have been defined by this person, and are visible to you. |
thumbnailId | String | read-only | ↑ Unique ID of the thumbnail (avatar) image for this person. This extra information can be used when clients are caching thumbnails but still want to miss the cache and get the new thumbnail. Since: 3.2 |
thumbnailUrl | String | read-only | ↑ URL of the thumbnail (avatar) image for this person. |
type | String | read-only | ↑ The object type of this object ("person"). |
typeCode | Integer | read-only | ↑ |
updated | ISO 8601 Date | read-only | ↑ Date and time this person was most recently updated. |
Methods
createExtProps(uriinfo,options)
POST /people/1234/extprops
Retrieves
ExtProps[]
Description
Creates extended properties for a person.
{ "any prop name": "any val", "any prop2 name": "any val" }
Availability:
Person should be editable to caller.
Options:
Name | Type | Required | Description |
---|---|---|---|
fields | String | false | Names of the fields to be returned |
Retrieves:
createStream(streamentity,options)
POST /people/1234/streams
Retrieves
Stream
Description
Create a new custom stream for the specified user. The minimum information required is:
{ "name" : "{name}" }
Custom stream names must be unique per person, and there is a configurable limit on the number of custom streams that a particular person can create (default limit is 10).
Availability:
Available only when the specified person is also the requesting person.
Takes:
Options:
Name | Type | Required | Description |
---|---|---|---|
fields | String | false | Names of the fields to be returned |
Retrieves:
createTask(task,options)
POST /people/1234/tasks
Retrieves
Task
Description
Create a new personal task for the specified user. The minimum information required is:
{ "subject": "Clean the carpet", "dueDate" : "2013-07-12T06:59:59.999+0000", "type": "task" }
Availability:
Available only when the specified person is also the requesting person.
Takes:
Options:
Name | Type | Required | Description |
---|---|---|---|
fields | String | false | Names of the fields to be returned |
Retrieves:
Since: 3.1
deleteExtProps()
DELETE /people/1234/extprops
Retrieves
--
Description
Deletes all extended properties for this person.
Availability:
Person should be editable to caller.
destroy()
DELETE /people/1234
Retrieves
--
Description
Delete this person and all content this person has created.
get(options)
GET /people/1234
Retrieves
Person
Description
Return an updated version of this person.
Options:
Name | Type | Required | Description |
---|---|---|---|
fields | String | false | Names of the fields to be returned |
Retrieves:
getActivity(options)
GET /people/1234/activities
Retrieves
Activity[]
Description
Return a paginated list of activity stream entries for the specified person.
Options:
Name | Type | Required | Description |
---|---|---|---|
after | String | false | Date and time representing the minimum "last activity in a collection" timestamp for selecting activities. Cannot specify both after and before |
before | String | false | Date and time representing the maximum "last activity in a collection" timestamp for selecting activities. Cannot specify both after and before |
count | Integer | false | Number of activities to be returned (you may get more activities than this in order to get all of the activities in the last collection) |
fields | String | false | Names of the fields to be returned |
Retrieves:
getBlog(options)
GET /people/1234/blog
Retrieves
Blog
Description
Return the blog for this person, if it exists.
Options:
Name | Type | Required | Description |
---|---|---|---|
fields | String | false | Names of the fields to be returned |
Retrieves:
getColleagues(options)
GET /people/1234/@colleagues
Retrieves
Person[]
Description
Return a paginated list of colleagues of this person.
Availability:
Jive instance must be configured to support Organization Chart relationships.
Options:
Name | Type | Required | Description |
---|---|---|---|
count | Integer | false | Number of colleagues to be returned |
fields | String | false | Names of the fields to be returned |
startIndex | Integer | false | Zero-relative index of the first colleague to be returned |
Retrieves:
getExtProps(options)
GET /people/1234/extprops
Retrieves
ExtProps
Description
Returns extended properties for this person.
Availability:
Person should be visible to caller.
Options:
Name | Type | Required | Description |
---|---|---|---|
fields | String | false | Names of the fields to be returned |
Retrieves:
getFollowers(options)
GET /people/1234/@followers
Retrieves
Person[]
Description
Return a paginated list of the people following the specified person.
Availability:
Jive instance must be configured to support Organization Chart relationships.
Options:
Name | Type | Required | Description |
---|---|---|---|
count | Integer | false | Number of followers to be returned (default is 25) |
fields | String | false | Names of the fields to be returned |
startIndex | Integer | false | Zero-relative index of the first follower to be returned |
Retrieves:
getFollowing(options)
GET /people/1234/@following
Retrieves
Person[]
Description
Return a paginated list of the people that the specified person is following.
Options:
Name | Type | Required | Description |
---|---|---|---|
count | Integer | false | Number of people to be returned (default is 25) |
fields | String | false | Names of the fields to be returned |
startIndex | Integer | false | Zero-relative index of the first being-followed person to be returned |
Retrieves:
getImages(options)
GET /people/1234/images
Retrieves
ProfileImage[]
Description
Return a list of profile images for the specified person.
Options:
Name | Type | Required | Description |
---|---|---|---|
fields | String | false | Names of the fields to be returned |
Retrieves:
getManager(options)
GET /people/1234/@manager
Retrieves
Person
Description
Return the person that is the manager of the specified person.
Availability:
Jive instance must be configured to support Organization Chart relationships.
Options:
Name | Type | Required | Description |
---|---|---|---|
fields | String | false | Names of the fields to be returned |
Retrieves:
getMembers(options)
GET /members/people/1234
Retrieves
Member[]
Description
Return a list of place memberships for this person.
Options:
Name | Type | Required | Description |
---|---|---|---|
count | Integer | false | Maximum number of memberships to be returned (default is 25) |
fields | String | false | Names of the fields to be returned |
startIndex | Integer | false | Zero-relative offset of the first membership to be returned (default is 0) |
state | String[] | false | List of membership state values (default is all states) |
place | String | false | URI of a social group whose membership should be returned. Since 3.9 |
Retrieves:
Since: 3.1
getReports(options)
GET /people/1234/@reports
Retrieves
Person[]
Description
Return a paginated list of the people that are direct reports of the specified person.
Availability:
Jive instance must be configured to support Organization Chart relationships.
Options:
Name | Type | Required | Description |
---|---|---|---|
count | Integer | false | Number of people to be returned (default is 25) |
fields | String | false | Names of the fields to be returned |
startIndex | Integer | false | Zero-relative index of the first being-followed person to be returned |
Retrieves:
getStreams(options)
GET /people/1234/streams
Retrieves
Stream[]
Description
Return a list of the custom (and standard) activity streams for the specified person.
Availability:
Available only when the specified person is also the requesting person.
Options:
Name | Type | Required | Description |
---|---|---|---|
fields | String | false | Names of the fields to be returned |
Retrieves:
getTasks(options)
GET /people/1234/tasks
Retrieves
Task[]
Description
Return the first page of a paginated list of tasks for this person.
Availability:
Available only when the specified person is also the requesting person.
Options:
Name | Type | Required | Description |
---|---|---|---|
count | Integer | false | Maximum number of tasks to be returned |
fields | String | false | Names of the fields to be returned |
startIndex | Integer | false | Zero-relative index of the first task to be returned |
Retrieves:
Since: 3.1
toURI()
Retrieves
String
Description
Retrieves:
update(personentity)
PUT /people/1234
Retrieves
Person
Description
Update the specified person, and return an updated Person describing him or her after the update has been completed.
Takes:
- Person containing the updated information
Options:
Name | Type | Required | Description |
---|---|---|---|
fields | String | false | Names of the fields to be returned |