Skip to content

Take User Profile Picture ​

A simple component that makes use of the Media Capture and Streams API to allow Salesforce users to take a new photo with their device's camera and use it to update their personal user profile.

Available in: App Page · Home Page · Record Page · Flow Screen

take-user-profile-picture

take-user-profile-picture

Read on Medium ​

Allow your Salesforce Users to take a new Profile Picture

Allow your Salesforce Users to take a new Profile Picture

Usage ​

html
<c-take-user-profile-picture></c-take-user-profile-picture>

The component is self-contained: it asks for camera access, takes a photo and updates the profile picture of the current user.

Component Dependencies ​

NameTypeDescription
UserProfilePictureControllerApexController class for updating the user's profile picture.
UserProfilePictureControllerTestApexTest class for UserProfilePictureController.

Released under the MIT License.