No Results
Search Tips:
- Please consider misspellings
- Try different search keywords
Newer Version Available
ChatterUsers Class
Namespace
ChatterUsers Methods
The following are methods for ChatterUsers. All methods are static.
deletePhoto(String, String)
API Version
28.0
Signature
public static Void deletePhoto(String communityId, String userId)
Parameters
Return Value
Type: Void
follow(String, String, String)
API Version
28.0
Signature
public static ConnectApi.Subscription follow(String communityId, String userId, String subjectId)
Parameters
Return Value
getChatterSettings(String, String)
API Version
28.0
Signature
public static ConnectApi.UserChatterSettings getChatterSettings(String communityId, String userId)
Parameters
Return Value
getFollowers(String, String)
API Version
28.0
Signature
public static ConnectApi.FollowerPage getFollowers(String communityId, String userId)
Parameters
Return Value
getFollowers(String, String, Integer, Integer)
API Version
28.0
Signature
public static ConnectApi.FollowerPage getFollowers(String communityId, String userId, Integer pageParam, Integer pageSize)
Parameters
- communityId
- Type: String
- Use either the ID for a community, internal, or null.
- userId
- Type: String
- The ID for a user.
- pageParam
- Type: Integer
- Specifies the number of the page you want returned. Starts at 0. If you pass in null or 0, the first page is returned.
- pageSize
- Type: Integer
- Specifies the number of items per page. Valid values are between 1 and 100. If you pass in null, the default size is 25.
Return Value
getFollowings(String, String)
API Version
28.0
Signature
public static ConnectApi.FollowingPage getFollowings(String communityId, String userId)
Parameters
Return Value
getFollowings(String, String, Integer)
API Version
28.0
Signature
public static ConnectApi.FollowingPage getFollowings(String communityId, String userId, Integer pageParam)
Parameters
Return Value
getFollowings(String, String, Integer, Integer)
API Version
28.0
Signature
public static ConnectApi.FollowingPage getFollowings(String communityId, String userId, Integer pageParam, Integer pageSize)
Parameters
- communityId
- Type: String
- Use either the ID for a community, internal, or null.
- userId
- Type: String
- The ID for a user.
- pageParam
- Type: Integer
- Specifies the number of the page you want returned. Starts at 0. If you pass in null or 0, the first page is returned.
- pageSize
- Type: Integer
- Specifies the number of items per page. Valid values are between 1 and 100. If you pass in null, the default size is 25.
Return Value
getFollowings(String, String, String)
API Version
28.0
Signature
public static ConnectApi.FollowingPage getFollowings(String communityId, String userId, String filterType)
Parameters
- communityId
- Type: String
- Use either the ID for a community, internal, or null.
- userId
- Type: String
- The ID for a user.
- filterType
- Type: String
- Specifies the key prefix to filter the type of objects returned. A key prefix is the first three characters of the object ID, which specifies the object type. For example, User objects have a prefix of 005 and Group objects have a prefix of 0F9.
Return Value
getFollowings(String, String, String, Integer)
API Version
28.0
Signature
public static ConnectApi.FollowingPage getFollowings(String communityId, String userId, String filterType, Integer pageParam)
Parameters
- communityId
- Type: String
- Use either the ID for a community, internal, or null.
- userId
- Type: String
- The ID for a user.
- filterType
- Type: String
- Specifies the key prefix to filter the type of objects returned. A key prefix is the first three characters of the object ID, which specifies the object type. For example, User objects have a prefix of 005 and Group objects have a prefix of 0F9.
- pageParam
- Type: Integer
- Specifies the number of the page you want returned. Starts at 0. If you pass in null or 0, the first page is returned.
Return Value
getFollowings(String, String, String, Integer, Integer)
API Version
28.0
Signature
public static ConnectApi.FollowingPage getFollowings(String communityId, String userId, String filterType, Integer pageParam, Integer pageSize)
Parameters
- communityId
- Type: String
- Use either the ID for a community, internal, or null.
- userId
- Type: String
- The ID for a user.
- filterType
- Type: String
- Specifies the key prefix to filter the type of objects returned. A key prefix is the first three characters of the object ID, which specifies the object type. For example, User objects have a prefix of 005 and Group objects have a prefix of 0F9.
- pageParam
- Type: Integer
- Specifies the number of the page you want returned. Starts at 0. If you pass in null or 0, the first page is returned.
- pageSize
- Type: Integer
- Specifies the number of items per page. Valid values are between 1 and 100. If you pass in null, the default size is 25.
Return Value
getGroups(String, String)
API Version
28.0
Signature
public static ConnectApi.UserGroupPage getGroups(String communityId, String userId)
Parameters
Return Value
getGroups(String, String, Integer, Integer)
API Version
28.0
Signature
public static ConnectApi.UserGroupPage getGroups(String communityId, String userId, Integer pageParam, Integer pageSize)
Parameters
- communityId
- Type: String
- Use either the ID for a community, internal, or null.
- userId
- Type: String
- The ID for a user.
- pageParam
- Type: Integer
- Specifies the number of the page you want returned. Starts at 0. If you pass in null or 0, the first page is returned.
- pageSize
- Type: Integer
- Specifies the number of items per page. Valid values are between 1 and 100. If you pass in null, the default size is 25.
Return Value
getPhoto(String, String)
API Version
28.0
Signature
public static ConnectApi.Photo getPhoto(String communityId, String userId)
Parameters
Return Value
Type: ConnectApi.Photo Class
getUser(String, String)
API Version
28.0
Signature
public static ConnectApi.UserSummary getUser(String communityId, String userId)
Parameters
Return Value
Usage
getUsers(String)
API Version
28.0
Signature
public static ConnectApi.UserPage getUsers(String communityId)
Parameters
- communityId
- Type: String
- Use either the ID for a community, internal, or null.
Return Value
getUsers(String, Integer, Integer)
API Version
28.0
Signature
public static ConnectApi.UserPage getUsers(String communityId, Integer pageParam, Integer pageSize)
Parameters
- communityId
- Type: String
- Use either the ID for a community, internal, or null.
- pageParam
- Type: Integer
- Specifies the number of the page you want returned. Starts at 0. If you pass in null or 0, the first page is returned.
- pageSize
- Type: Integer
- Specifies the number of items per page. Valid values are between 1 and 100. If you pass in null, the default size is 25.
Return Value
searchUserGroups(String, String, String)
API Version
30.0
Signature
public static ConnectApi.UserGroupPage searchUserGroups(String communityId, String userId, String q)
Parameters
- communityId
- Type: String
- Use either the ID for a community, internal, or null.
- userId
- Type: String
- The ID for the context user or the keyword me.
- q
- Type: String
- Required and cannot be null. Specifies the string to search. The search string must contain at least two characters, not including wildcards. See Wildcards.
Return Value
Type: ConnectApi.UserGroupPage Class
A paginated list of groups the context user is a member of.
searchUserGroups(String, String, String, Integer, Integer)
API Version
30.0
Signature
public static ConnectApi.UserGroupPage searchUserGroups(String communityId, String userId, String q, Integer pageParam, Integer pageSize)
Parameters
- communityId
- Type: String
- Use either the ID for a community, internal, or null.
- userId
- Type: String
- The ID for the context user or the keyword me.
- q
- Type: String
- Required and cannot be null. Specifies the string to search. The search string must contain at least two characters, not including wildcards. See Wildcards.
- pageParam
- Type: Integer
- Specifies the number of the page you want returned. Starts at 0. If you pass in null or 0, the first page is returned.
- pageSize
- Type: Integer
- Specifies the number of items per page. Valid values are between 1 and 100. If you pass in null, the default size is 25.
Return Value
Type: ConnectApi.UserGroupPage Class
A paginated list of groups the context user is a member of.
searchUsers(String, String)
API Version
28.0
Signature
public static ConnectApi.UserPage searchUsers(String communityId, String q)
Parameters
Return Value
searchUsers(String, String, Integer, Integer)
API Version
28.0
Signature
public static ConnectApi.UserPage searchUsers(String communityId, String q, Integer pageParam, Integer pageSize)
Parameters
- communityId
- Type: String
- Use either the ID for a community, internal, or null.
- q
- Type: String
- Required and cannot be null. Specifies the string to search. The search string must contain at least two characters, not including wildcards. See Wildcards.
- pageParam
- Type: Integer
- Specifies the number of the page you want returned. Starts at 0. If you pass in null or 0, the first page is returned.
- pageSize
- Type: Integer
- Specifies the number of items per page. Valid values are between 1 and 100. If you pass in null, the default size is 25.
Return Value
searchUsers(String, String, String, Integer, Integer)
API Version
28.0
Signature
public static ConnectApi.UserPage searchUsers(String communityId, String q, String searchContextId, Integer pageParam, Integer pageSize)
Parameters
- communityId
- Type: String
- Use either the ID for a community, internal, or null.
- q
- Type: String
- Required and cannot be null. Specifies the string to search. The search string must contain at least two characters, not including wildcards. See Wildcards.
- searchContextId
- Type: String
- A feed item ID that filters search results for feed @mentions. More useful results are listed first. When you specify this argument, you cannot query more than 500 results and you cannot use wildcards in the search term.
- pageParam
- Type: Integer
- Specifies the number of the page you want returned. Starts at 0. If you pass in null or 0, the first page is returned.
- pageSize
- Type: Integer
- Specifies the number of items per page. Valid values are between 1 and 100. If you pass in null, the default size is 25.
Return Value
setPhoto(String, String, String, Integer)
API Version
28.0
Signature
public static ConnectApi.Photo setPhoto(String communityId, String userId, String fileId, Integer versionNumber)
Parameters
- communityId
- Type: String
- Use either the ID for a community, internal, or null.
- userId
- Type: String
- The ID for the context user or the keyword me.
- fileId
- Type: String
- ID of a file already uploaded. The file must be an image, and be smaller than 2 MB.
- versionNumber
- Type: Integer
- Version number of the existing file. Specify either an existing version number, or null to get the latest version.
Return Value
Type: ConnectApi.Photo Class
Usage
Photos are processed asynchronously and may not be visible right away.
setPhoto(String, String, ConnectApi.BinaryInput)
API Version
28.0
Signature
public static ConnectApi.Photo setPhoto(String communityId, String userId, ConnectApi.BinaryInput fileUpload)
Parameters
- communityId
- Type: String
- Use either the ID for a community, internal, or null.
- userId
- Type: String
- The ID for the context user or the keyword me.
- fileUpload
- Type: ConnectApi.BinaryInput Class
- A file to use as the photo. The content type must be usable as an image.
Return Value
Type: ConnectApi.Photo Class
Usage
Photos are processed asynchronously and may not be visible right away.
setPhotoWithAttributes(String, String, ConnectApi.Photo)
API Version
29.0
Signature
public static ConnectApi.Photo setPhotoWithAttributes(String communityId, String userId, ConnectApi.Photo photo)
Parameters
- communityId
- Type: String
- Use either the ID for a community, internal, or null.
- userId
- Type: String
- The ID for the context user or the keyword me.
- photo
- Type: ConnectApi.Photo Class
- A ConnectApi.PhotoInput object specifying the file ID, version number, and cropping parameters.
Return Value
Type: ConnectApi.Photo Class
Usage
Photos are processed asynchronously and may not be visible right away.
setPhotoWithAttributes(String, String, ConnectApi.Photo, ConnectApi.BinaryInput)
API Version
29.0
Signature
public static ConnectApi.Photo setPhotoWithAttributes(String communityId, String userId, ConnectApi.Photo photo, ConnectApi.BinaryInput fileUpload)
Parameters
- communityId
- Type: String
- Use either the ID for a community, internal, or null.
- userId
- Type: String
- The ID for the context user or the keyword me.
- photo
- Type: ConnectApi.Photo Class
- A ConnectApi.PhotoInput object specifying the cropping parameters.
- fileUpload
- Type: ConnectApi.BinaryInput Class
- A file to use as the photo. The content type must be usable as an image.
Return Value
Type: ConnectApi.Photo Class
Usage
Photos are processed asynchronously and may not be visible right away.
setTestSearchUsers(String, String, ConnectApi.UserPage)
API Version
28.0
Signature
public static Void setTestSearchUsers(String communityId, String q, ConnectApi.UserPage result)
Parameters
- communityId
- Type: String
- Use either the ID for a community, internal, or null.
- q
- Type: String
- Required and cannot be null. Specifies the string to search. The search string must contain at least two characters, not including wildcards. See Wildcards.
- result
- Type: ConnectApi.UserPage Class
- The object containing test data.
Return Value
Type: Void
setTestSearchUsers(String, String, Integer, Integer, ConnectApi.UserPage)
API Version
28.0
Signature
public static Void setTestSearchUsers(String communityId, String q, Integer pageParam, Integer pageSize, ConnectApi.UserPage result)
Parameters
- communityId
- Type: String
- Use either the ID for a community, internal, or null.
- q
- Type: String
- Required and cannot be null. Specifies the string to search. The search string must contain at least two characters, not including wildcards. See Wildcards.
- pageParam
- Type: Integer
- Specifies the number of the page you want returned. Starts at 0. If you pass in null or 0, the first page is returned.
- pageSize
- Type: Integer
- Specifies the number of items per page. Valid values are between 1 and 100. If you pass in null, the default size is 25.
- result
- Type: ConnectApi.UserPage Class
- The object containing test data.
Return Value
Type: Void
setTestSearchUsers(String, String, String, Integer, Integer, ConnectApi.UserPage)
API Version
28.0
Signature
public static Void setTestSearchUsers(String communityId, String q, String searchContextId, Integer pageParam, Integer pageSize, ConnectApi.UserPage result)
Parameters
- communityId
- Type: String
- Use either the ID for a community, internal, or null.
- q
- Type: String
- Required and cannot be null. Specifies the string to search. The search string must contain at least two characters, not including wildcards. See Wildcards.
- searchContextId
- Type: String
- A feed item ID that filters search results for feed @mentions. More useful results are listed first. When you specify this argument, you cannot query more than 500 results and you cannot use wildcards in the search term.
- pageParam
- Type: Integer
- Specifies the number of the page you want returned. Starts at 0. If you pass in null or 0, the first page is returned.
- pageSize
- Type: Integer
- Specifies the number of items per page. Valid values are between 1 and 100. If you pass in null, the default size is 25.
- result
- Type: ConnectApi.UserPage Class
- The object containing test data.
Return Value
Type: Void
updateChatterSettings(String, String, ConnectApi.GroupEmailFrequency)
API Version
28.0
Signature
public static ConnectApi.UserChatterSettings updateChatterSettings(String communityId, String userId, ConnectApi.GroupEmailFrequency defaultGroupEmailFrequency)
Parameters
- communityId
- Type: String
- Use either the ID for a community, internal, or null.
- userId
- Type: String
- The ID for the context user or the keyword me.
- defaultGroupEmailFrequency
- Type: ConnectApi.GroupEmailFrequency
- defaultGroupEmailFrequency—Specifies the frequency with
which a user receives email from a group. Values:
- EachPost
- DailyDigest
- WeeklyDigest
- Never
- UseDefault
Don’t pass the value UseDefault for the defaultGroupEmailFrequency parameter because calling updateChatterSettings sets the default value.
Return Value
updateUser(String, String, ConnectApi.UserInput)
API Version
29.0
Signature
public static ConnectApi.UserDetail updateUser(String communityId, String userId, ConnectApi.UserInput userInput)
Parameters
- communityId
- Type: String
- Use either the ID for a community, internal, or null.
- userId
- Type: String
- The ID for the context user or the keyword me.
- userInput
- Type: ConnectApi.UserInput Class
- Specifies the updated information.