How to restrict users to update the metadata while uploading the asset in AEM as a Cloud - Assets | Community
Skip to main content
Level 3
December 6, 2022
Solved

How to restrict users to update the metadata while uploading the asset in AEM as a Cloud - Assets

  • December 6, 2022
  • 2 replies
  • 1389 views

Hi There,

 

I want to set some mandatory metadata to an asset while uploading using Create > Files, is there any way to achieve it?

 

 

Thanks,
SD

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Jineet_Vora

If further more customization is involved then you can also create a file upload utility in AEM Granite UI shell which will accept file upload [1] and also add a text field to update asset metadata. So on upload, you can call AEM upload asset API [2] and post upload you can call another update asset metadata API.

 

[1]: https://medium.com/@vsr061/create-custom-aem-menu-tools-with-granite-ui-shell-53c56e435f8a

[2]: https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/assets/admin/developer-reference-material-apis.html?lang=en#asset-upload

[3]: https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/assets/admin/mac-api-assets.html?lang=en#update-asset-metadata

 

Hope this helps!

2 replies

krati_garg
Adobe Employee
Adobe Employee
December 6, 2022

@sdusane 

Metadata Profile on Folder level is designed to help you achieve such usecase.

Please refer to the link below:

https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/assets/manage/metadata-profiles.html?lang=en

 

SDusaneAuthor
Level 3
December 6, 2022

Hi @krati_garg ,

 

The case is external agencies upload the assets in DAM and they don't know how to update the metadata through properties. So, now I want a setup like whenever user is uploading the asset in DAM, they should see some form to update the metadata like expiry date for it.

I want to update the metadata at asset level, like expiry date of each asset is different. 

I am already updating folder level metadata to the asset.

 

Thanks,
SD

 

krati_garg
Adobe Employee
Adobe Employee
December 6, 2022

@sdusane On Upload event, a workflow can be triggered and with a Dialog Participant step, we can take user input. Please note, this dialog can be customized as per the requirement. With another workflow custom process, we can take this user input and get it saved against asset's metadata properties.

 

Please find more information on dialog participant step here:

https://experienceleague.adobe.com/docs/experience-manager-64/developing/extending-aem/extending-workflows/workflows-step-ref.html?lang=en#dialog-participant-step

 

Jineet_Vora
Community Advisor and Adobe Champion
Jineet_VoraCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
January 18, 2023

If further more customization is involved then you can also create a file upload utility in AEM Granite UI shell which will accept file upload [1] and also add a text field to update asset metadata. So on upload, you can call AEM upload asset API [2] and post upload you can call another update asset metadata API.

 

[1]: https://medium.com/@vsr061/create-custom-aem-menu-tools-with-granite-ui-shell-53c56e435f8a

[2]: https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/assets/admin/developer-reference-material-apis.html?lang=en#asset-upload

[3]: https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/assets/admin/mac-api-assets.html?lang=en#update-asset-metadata

 

Hope this helps!