PingDirectory

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