SharinPix Permission object

The SharinPix Permission object permits users to configure a set of SharinPix album abilities.

Once created, a SharinPix Permission record can be assigned to:

  • SharinPix album components
  • SharinPix Single Image components
  • SharinPix search components

In this article, we will demonstrate how to:

Creation of a SharinPix Permission record

To create a new SharinPix Permission record, follow the steps below:

  • From App Launcher, type SharinPix Permission
  • Then click on the button New
  • Next, in the Information section, enter SharinPix Album Permission as the Name. You can leave the description as blank since it is optional
  • In the dropdown that follows, make sure that the value selected is Album. This dropdown allows users to select the component for which he/she wants to set up the abilities in the permission record

For this demo, we will configure the album abilities, therefore we will leave the value as Album.


The SharinPix abilities available in the SharinPix Permission record are also available from the SharinPix Global Settings. When no SharinPix Permission is applied, the abilities set in the SharinPix Global Settings will be applied by default.

For more information about the SharinPix abilities, refer to the following article:

SharinPix abilities

For more information on how to access the abilities from the SharinPix Global Settings, refer to the following article:

Extended Setup - Customizing your SharinPix Global Settings

  • Next, go ahead and select the abilities you want to apply to the album by selecting the corresponding checkboxes

Each checkbox has 3 states:

  • Default value: When a dash is present in the checkbox, as demonstrated in the above image for the checkbox corresponding to the Delete images ability, this means that the ability value will reflect the value set in SharinPix Global Settings by default. For example, if in this case the Delete images abiliy has been set up to true in the SharinPix Global Settings, it will be enabled on the album as well even if the permission record has been assigned to the same album
  • False: When a checkbox is left blank, this will force the ability value to false as demonstrated by the Fullscreen option ability's checkbox in the above image
  • True: When a checkbox is selected, this will force the ability value to true as demonstrated by the Tag images ability's checkbox in the above image

  • Once you have configured the necessary abilities, click on the Save button to create the SharinPix Permission record

Assign a SharinPix Permission record to a SharinPix component

Assign to a standard SharinPix component

To assign a SharinPix Permission record to a standard SharinPix component such as the SharinPix Album component, follows the steps below:

  • Go to the permission record and copy the name (or the ID generated)

Here we will use the name of the record we created in the previous section, that is SharinPix Album Permission and assign the same to a standard SharinPix Album component. You can make use of the SharinPix Permission ID instead if you wish.

  • Next, open the Lightning App Builder page for the record page containing your SharinPix Album component
  • Then, in the SharinPix Album parameters section, paste the SharinPix Permission name in the field labeled Custom Permission Id or Name as shown below:
  • Click on Save when done

You can now test if the ability changes have been applied to your SharinPix Album component at the record page level.

Assign to your customized SharinPix component (Developer-Oriented)

A SharinPix Permission record can also be assigned to a customized SharinPix component such as a custom search or a custom SharinPix album. To so so, all you need to do is to copy the permission ID and assign it to the permissionId attribute in your custom code. Here's an example:

 <sharinpix:SharinPix permissionId="a051I00000UB8wRQAT" height="300px" parameters="{! parameters }"></sharinpix:SharinPix>


A code snippet of the configured abilities is also generated when creating a SharinPix Permission record. This code snippet can be used in your custom implementaion, for example in:


Using the Uploader ability to restrict uploads to the device's camera only is currently not supported on Android devices.


Add your comment

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.