---
title: Enabling the Delegated Admin user REST resource type photo upload feature
description: In Delegated Admin 4.10.0 and later, you can add a photo to a user REST resource type profile in the Delegated Admin application.
component: pingdirectory
version: 11.0
page_id: pingdirectory:delegated_admin_application_guide:pd_da_enable_user_profile_photo_upload
canonical_url: https://docs.pingidentity.com/pingdirectory/11.0/delegated_admin_application_guide/pd_da_enable_user_profile_photo_upload.html
revdate: September 13, 2023
page_aliases: ["pd_da_enabling_photo_admin_console.adoc", "pd_da_enable_user_photo_dsconfig.adoc"]
section_ids:
  enabling-the-user-profile-photo-upload-feature-using-the-admin-console: Enabling the user profile photo upload feature using the admin console
  about-this-task: About this task
  steps: Steps
  enabling-the-user-profile-photo-upload-feature-using-dsconfig: Enabling the user profile photo upload feature using dsconfig
  about-this-task-2: About this task
  steps-2: Steps
  example: Example:
  example-2: Example:
---

# Enabling the Delegated Admin user REST resource type photo upload feature

In Delegated Admin 4.10.0 and later, you can add a photo to a user REST resource type profile in the Delegated Admin application.

To use the Delegated Admin photo upload feature, you must first enable the feature. You can use the PingDirectory admin console or `dsconfig` to perform this task.

After you have enabled the feature, it's ready to use when creating a new user or when editing an existing user. To use the enabled photo upload feature, see [Uploading a photo to a user REST resource type profile in Delegated Admin](pd_da_upload_user_photo.html).

## Enabling the user profile photo upload feature using the admin console

### About this task

To enable the Delegated Admin user REST resource type photo upload feature using the PingDirectory admin console:

### Steps

1. In the **Web Services and Applications** list, select **REST Resource Types**.

2. In the **REST Resource Types** list, select your user REST resource type.

3. Go to **Delegated Admin Attributes** and click **New Delegated Admin Attribute**.

4. In the **New Delegated Admin Attribute** list, select **Photo Delegated Admin Attribute**.

   ![A screen capture showing the Delegated Admin New Attribute list with the Photo Delegated Admin Attribute highlighted.](_images/delegated-admin-photo-attribute.png)

5. In the **Attribute Type** field, enter the attribute type, such as `jpegPhoto`.

6. Enter a **Display Name** for the attribute.

7. Keep the default value for **Mutability**.

8. (Optional) To allow multiple files to be uploaded for one user, enable **Multi Valued**.

9. Enter a **Display Order Index** or keep the default, `0`.

10. In the **Allowed MIME Type** list, select your desired allowed MIME file types.

    ![A screen capture showing the Delegated Admin new photo attribute Allowed Mime Type options.](_images/delegated-admin-photo-attr-mime.png)

11. Click **Save**.

## Enabling the user profile photo upload feature using `dsconfig`

### About this task

|   |                                                                                                              |
| - | ------------------------------------------------------------------------------------------------------------ |
|   | To allow multiple files to be uploaded for one user, set `multi-valued` to `true`, as in the second example. |

To enable the Delegated Admin user REST resource type photo upload feature using `dsconfig`:

### Steps

* Run `dsconfig create-delegated-admin-attribute`.

  #### Example:

  The following example creates a `jpegPhoto` Delegated Admin attribute with `.png` and `.jpg` set as accepted file types:

  ```
  bin/dsconfig create-delegated-admin-attribute \
      --type-name users  \
      --attribute-type jpegPhoto  \
      --type photo \
      --set display-name:Photo  \
      --set display-order-index:3  \
      --set allowed-mime-type:png  \
      --set allowed-mime-type:jpg  -n
  ```

  #### Example:

  The following example creates a multivalued `jpegPhoto` Delegated Admin attribute with `.png` and `.jpg` set as accepted file types:

  ```
  bin/dsconfig create-delegated-admin-attribute \
      --type-name users  \
      --attribute-type jpegPhoto  \
      --type photo \
      --set display-name:Photo  \
      --set multi-valued:true  \
      --set display-order-index:3  \
      --set allowed-mime-type:png  \
      --set allowed-mime-type:jpg  -n
  ```
