EmployeeProfiles Class

Get, set and crop, and delete employee banner photos and photos.

ConnectApi

These methods are for EmployeeProfiles. All methods are static.

Delete an employee’s banner photo.

51.0

No

public static Void deleteBannerPhoto(String employeeId)

employeeId

Type: String

ID of the employee.

Type: Void

Delete an employee’s photo.

51.0

No

public static Void deletePhoto(String employeeId)

employeeId

Type: String

ID of the employee.

Type: Void

Get an employee’s banner photo.

51.0

No

public static ConnectApi.BannerPhoto getBannerPhoto(String employeeId)

employeeId

Type: String

ID of the employee.

Type: ConnectApi.BannerPhoto

Get an employee’s photo.

51.0

51.0

No

public static ConnectApi.Photo getPhoto(String employeeId)

employeeId

Type: String

ID of the employee.

Type: ConnectApi.Photo

Set an uploaded file as an employee’s banner photo.

51.0

No

public static ConnectApi.BannerPhoto setBannerPhoto(String employeeId, String fileId, Integer versionNumber)

employeeId

Type: String

ID of the employee.

fileId

Type: String

ID of the uploaded file to use as the employee banner photo. The file must be an image and be smaller than 2 GB.

versionNumber

Type: Integer

Version number of the file. Specify an existing version number or, to get the latest version, specify null.

Type: ConnectApi.BannerPhoto

Set a file that hasn’t been uploaded as an employee’s banner photo.

51.0

No

public static ConnectApi.BannerPhoto setBannerPhoto(String employeeId, ConnectApi.BinaryInput fileUpload)

employeeId

Type: String

ID of the employee.

fileUpload

Type: ConnectApi.Binary​​Input

File to use as the photo. The content type must be usable as an image.

Type: ConnectApi.BannerPhoto

Photos are processed asynchronously and might not be visible right away.

Set and crop an uploaded file as an employee’s banner photo.

51.0

No

public static ConnectApi.BannerPhoto setBannerPhotoWithAttributes(String employeeId, ConnectApi.BannerPhotoInput bannerPhoto)

employeeId

Type: String

ID of the employee.

bannerPhoto

Type: ConnectApi.BannerPhotoInput

A ConnectApi.BannerPhotoInput object that specifies the ID and version of the file, and how to crop the file.

Type: ConnectApi.BannerPhoto

Photos are processed asynchronously and might not be visible right away.

Set and crop a file that hasn’t been uploaded as an employee’s banner photo.

51.0

No

public static ConnectApi.BannerPhoto setBannerPhotoWithAttributes(String employeeId, ConnectApi.BannerPhotoInput bannerPhoto, ConnectApi.BinaryInput fileUpload)

employeeId

Type: String

ID of the employee.

bannerPhoto

Type: ConnectApi.BannerPhotoInput

A ConnectApi.BannerPhotoInput object specifying the cropping parameters.

fileUpload

Type: ConnectApi.Binary​​Input

File to use as the photo. The content type must be usable as an image.

Type: ConnectApi.BannerPhoto

Photos are processed asynchronously and might not be visible right away.

Set an uploaded file as an employee’s photo.

51.0

No

public static ConnectApi.Photo setPhoto(String employeeId, String fileId, Integer versionNumber)

employeeId

Type: String

ID of the employee.

fileId

Type: String

ID of the uploaded file to use as the employee photo. The file must be an image and be smaller than 2 GB.

versionNumber

Type: Integer

Version number of the file. Specify an existing version number or, to get the latest version, specify null.

Type: ConnectApi.Photo

Photos are processed asynchronously and might not be visible right away.

Set a file that hasn’t been uploaded as an employee’s photo.

51.0

No

public static ConnectApi.Photo setPhoto(String employeeId, ConnectApi.BinaryInput fileUpload)

employeeId

Type: String

ID of the employee.

fileUpload

Type: ConnectApi.Binary​​Input

File to use as the photo. The content type must be usable as an image.

Type: ConnectApi.Photo

Photos are processed asynchronously and might not be visible right away.

Set and crop an uploaded file as an employee’s photo.

51.0

No

public static ConnectApi.Photo setPhotoWithAttributes(String employeeId, ConnectApi.PhotoInput photo)

employeeId

Type: String

ID of the employee.

photo

Type: ConnectApi.PhotoInput

A ConnectApi.PhotoInput object specifying the file ID, version number, and cropping parameters.

Type: ConnectApi.Photo

Photos are processed asynchronously and might not be visible right away.

Set and crop a file that hasn’t been uploaded as an employee’s photo.

51.0

No

public static ConnectApi.Photo setPhotoWithAttributes(String employeeId, ConnectApi.PhotoInput photo, ConnectApi.BinaryInput fileUpload)

employeeId

Type: String

ID of the employee.

photo

Type: ConnectApi.PhotoInput

A ConnectApi.PhotoInput object specifying the cropping parameters.

fileUpload

Type: ConnectApi.Binary​​Input

File to use as the photo. The content type must be usable as an image.

Type: ConnectApi.Photo

Photos are processed asynchronously and might not be visible right away.