Enabling the user profile photo upload feature using dsconfig - PingDirectory - PingDirectoryProxy - 9.3

PingDirectory 9.3

bundle
pingdirectory-93
ft:publication_title
PingDirectory 9.3
Product_Version_ce
PingDirectory 9.3 (Latest)
category
Product
pd-93
pingdirectory
ContentType_ce
Tip:

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:

Run dsconfig create-delegated-admin-attribute.

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

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