403 Forbidden Error with OAuth Server-to-Server for AEM Assets Author API - Configuration Seems Correct
Hello community,
I’m trying to configure OAuth Server-to-Server authentication to access the AEM Assets Author API, but I’m getting a 403 Forbidden error when making requests. I’ve followed all the configuration steps, but it seems like I’m missing something.
Here’s what I’ve done so far:
Created a project in Adobe Developer Console
Added the API: AEM Assets Author API
Selected authentication type: OAuth Server-to-Server
Configured the credentials correctly
Selected the correct Product Profile:
AEM Administrators - author - Program 123456 - Environment 1234567
This profile has the following services enabled: AEM Administrators and AEM Assets API
Successfully generated the access token (successful response confirmed).
Made the API request example:
curl -X GET \ 'https://author-p123456-e1234567.adobeaemcloud.com/api/assets/content/dam.json' \ -H 'Authorization: Bearer eyJhbGci...' \ -H 'x-api-key: 504220494ec74541afabd9541f47e2e1' \ -H 'Content-Type: application/json'
The problem:
I’m getting a 403 Forbidden response.
I’d really appreciate any help resolving this issue. I need it to work the same way as the deprecated JWT technical account authentication — for example, to create folders, upload files, delete assets, etc.