aem:upload error 403 in AEM cloud.
Hello.
We are in aem in the cloud.
We are trying to upload assets with aio-cli.
We have created an uploaduser user in AEM, we have included him in the dam-users group, we have also tried to give jcr:all permissions on the content/dam folder.
We are running this command:
aio-aem aem:upload -h https://author-p123810-e1162215.adobeaemcloud.com/ -c uploaduser:uploaduser -t /content/dam/test/images /workspaces/aemcs-environment/uploadfiles/images/*.jpg
2024-03-06T15:34:02.576Z [] info: Creating AEM directory /content/dam/test with title ''
2024-03-06-06T15:34:02.601Z [] info: Log file is saved to log file 'upload-1709739242524.log'
2024-03-06-06T15:34:02.665Z [] error: unhandled exception attempting to upload files Request failed with status code 403
We are getting a 403 forbidden error.
In local aem-sdk it works correctly.
aio-aem aem:upload -h http://localhost:4502/ -c uploaduser:uploaduser -t /content/dam/test/images /workspaces/aemcs-environment/uploadfiles/images/*.jpg
Do you know what could be happening?
Thanks.