この文章は Salesforce 機械翻訳システムを使用して翻訳されました。詳細はこちらをご参照ください。
英語に切り替える

UserProfiles クラス

ユーザープロファイルデータにアクセスします。このユーザープロファイルデータが、プロファイルページ (Chatter プロファイルページとも呼ばれる) に入力されます。このデータには、ユーザー情報 (住所、マネージャー、電話番号など)、一部のユーザー機能 (権限)、および一連のサブタブアプリケーション (プロファイルページのカスタムタブ) が含まれます。

名前空間

ConnectApi

UserProfiles のメソッド

UserProfiles のメソッドは次のとおりです。すべてのメソッドが静的です。

deleteBannerPhoto(communityId, userId)

ユーザーのバナー写真を削除します。

API バージョン

36.0

Chatter が必要かどうか

はい

署名

public static Void deleteBannerPhoto(String communityId, String userId)

パラメーター

communityId
型: String
Experience Cloud サイトの ID、internal、または null
userId
型: String
ユーザーの ID。

戻り値

型: Void

deletePhoto(communityId, userId)

ユーザーの写真を削除します。

API バージョン

35.0

Chatter が必要かどうか

はい

署名

public static Void deletePhoto(String communityId, String userId)

パラメーター

communityId
型: String
Experience Cloud サイトの ID、internal、または null
userId
型: String
コンテキストユーザーの ID またはキーワード me

戻り値

型: Void

getBannerPhoto(communityId, userId)

ユーザーのバナー写真を取得します。

API バージョン

36.0

Chatter が必要かどうか

はい

署名

public static ConnectApi.BannerPhoto getBannerPhoto(String communityId, String userId)

パラメーター

communityId
型: String
Experience Cloud サイトの ID、internal、または null
userId
型: String
ユーザーの ID。

戻り値

型: ConnectApi.BannerPhoto

getPhoto(communityId, userId)

ユーザーの写真を取得します。

API バージョン

35.0

ゲストユーザーが使用可能

35.0

Chatter が必要かどうか

はい

署名

public static ConnectApi.Photo getPhoto(String communityId, String userId)

パラメーター

communityId
型: String
Experience Cloud サイトの ID、internal、または null
userId
型: String
ユーザーの ID。

戻り値

型: ConnectApi.Photo

getUserProfile(communityId, userId)

コンテキストユーザーのユーザープロファイルを取得します。

API バージョン

29.0

Chatter が必要かどうか

はい

署名

public static ConnectApi.UserProfile getUserProfile(String communityId, String userId)

パラメーター

communityId
型: String
Experience Cloud サイトの ID、internal、または null
userId
型: String
ユーザーの ID。

戻り値

型: ConnectApi.UserProfile

setBannerPhoto(communityId, userId, fileId, versionNumber)

アップロードされたファイルをユーザーのバナー写真として設定します。

API バージョン

36.0

Chatter が必要かどうか

はい

署名

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

パラメーター

communityId
型: String
Experience Cloud サイトの ID、internal、または null
userId
型: String
ユーザーの ID。
fileId
型: String
ユーザーのバナーとして使用するアップロードされたファイルの ID。キープレフィックスは 069、画像は 8 MB 未満にする必要があります。
versionNumber
型: Integer
ファイルのバージョン番号。既存のバージョン番号を指定するか、null を指定して最新バージョンを取得します。

戻り値

型: ConnectApi.BannerPhoto

使用方法

写真は非同期に処理され、すぐには表示されない場合があります。

setBannerPhoto(communityId, userId, fileUpload)

アップロードされていないファイルをユーザーのバナー写真として設定します。

API バージョン

36.0

Chatter が必要かどうか

はい

署名

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

パラメーター

communityId
型: String
Experience Cloud サイトの ID、internal、または null
userId
型: String
ユーザーの ID。
fileUpload
型: ConnectApi.Binary​​Input
写真として使用するファイル。画像として使用できるコンテンツタイプである必要があります。

戻り値

型: ConnectApi.BannerPhoto

使用方法

写真は非同期に処理され、すぐには表示されない場合があります。

setBannerPhotoWithAttributes(communityId, userId, bannerPhoto)

アップロードされたファイルをユーザーのバナー写真として設定してトリミングします。

API バージョン

36.0

Chatter が必要かどうか

はい

署名

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

パラメーター

communityId
型: String
Experience Cloud サイトの ID、internal、または null
userId
型: String
ユーザーの ID。
bannerPhoto
型: ConnectApi.BannerPhotoInput
ファイルの ID とバージョン、およびファイルのトリミング方法を指定する ConnectApi.BannerPhotoInput オブジェクト。

戻り値

型: ConnectApi.BannerPhoto

使用方法

写真は非同期に処理され、すぐには表示されない場合があります。

setBannerPhotoWithAttributes(communityId, userId, bannerPhoto, fileUpload)

アップロードされていないファイルをユーザーのバナー写真として設定してトリミングします。

API バージョン

36.0

Chatter が必要かどうか

はい

署名

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

パラメーター

communityId
型: String
Experience Cloud サイトの ID、internal、または null
userId
型: String
��ーザーの ID。
bannerPhoto
型: ConnectApi.BannerPhotoInput
トリミングパラメーターを指定する ConnectApi.BannerPhotoInput オブジェクト。
fileUpload
型: ConnectApi.Binary​​Input
写真として使用するファイル。画像として使用できるコンテンツタイプである必要があります。

戻り値

型: ConnectApi.BannerPhoto

使用方法

写真は非同期に処理され、すぐには表示されない場合があります。

setPhoto(communityId, userId, fileId, versionNumber)

アップロードされたファイルをユーザーの写真として設定します。

API バージョン

35.0

Chatter が必要かどうか

はい

署名

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

パラメーター

communityId
型: String
Experience Cloud サイトの ID、internal、または null
userId
型: String
コンテキストユーザーの ID またはキーワード me
fileId
型: String
アップロードされたファイルの ID。ファイルは画像であり、2 GB 未満である必要があります。
versionNumber
型: Integer
既存ファイルのバージョン番号。既存のバージョン番号を指定するか、null を指定して最新バージョンを取得します。

戻り値

型: ConnectApi.Photo

使用方法

写真は非同期に処理され、すぐには表示されない場合があります。

setPhoto(communityId, userId, fileUpload)

アップロードされていないファイルをユーザーの写真として設定します。

API バージョン

35.0

Chatter が必要かどうか

はい

署名

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

パラメーター

communityId
型: String
Experience Cloud サイトの ID、internal、または null
userId
型: String
コンテキストユーザーの ID またはキーワード me
fileUpload
型: ConnectApi.Binary​​Input
写真として使用するファイル。画像として使用できるコンテンツタイプである必要があります。

戻り値

型: ConnectApi.Photo

使用方法

写真は非同期に処理され、すぐには表示されない場合があります。

setPhotoWithAttributes(communityId, userId, photo)

アップロードされたファイルをユーザーの写真として設定してトリミングします。

API バージョン

35.0

Chatter が必要かどうか

はい

署名

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

パラメーター

communityId
型: String
Experience Cloud サイトの ID、internal、または null
userId
型: String
コンテキストユーザーの ID またはキーワード me
photo
型: ConnectApi.PhotoInput
ファイル ID、バージョン番号、およびトリミングパラメーターを指定する ConnectApi.PhotoInput オブジェクト。

戻り値

型: ConnectApi.Photo

使用方法

写真は非同期に処理され、すぐには表示されない場合があります。

setPhotoWithAttributes(communityId, userId, photo, fileUpload)

アップロードされていないファイルをユーザーの写真として設定してトリミングします。

API バージョン

35.0

Chatter が必要かどうか

はい

署名

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

パラメーター

communityId
型: String
Experience Cloud サイトの ID、internal、または null
userId
型: String
コンテキストユーザーの ID またはキーワード me
photo
型: ConnectApi.PhotoInput
トリミングパラメーターを指定する ConnectApi.PhotoInput オブジェクト。
fileUpload
型: ConnectApi.Binary​​Input
写真として使用するファイル。画像として使用できるコンテンツタイプである必要があります。

戻り値

型: ConnectApi.Photo

使用方法

写真は非同期に処理され、すぐには表示されない場合があります。