How to create read-only Adobe Experience Manager credentials, add them to Medialake as an access key, and understand exactly what the connection can reach.
What to expect
Adobe Experience Manager (AEM) is connected with credentials that you create in your own AEM environment. There is no Adobe sign-in or consent screen during setup: nobody is redirected to Adobe to log in. Instead, an AEM administrator creates the credentials, a Medialake administrator saves them as an access key, and Medialake authenticates to your AEM Author instance server-side from then on.
Medialake can sign in to AEM in two ways. The one to use depends on how your AEM is hosted:
Method in Medialake | Use it for | Credentials |
JWT Service Account | AEM as a Cloud Service | The Service Credentials JSON file of a technical account, created in the AEM Developer Console |
HTTP Basic Authentication | AEM 6.5 and Adobe Managed Services | The username and password of a dedicated AEM user |
With either method, the account's permissions in AEM define exactly what Medialake can see. We follow the principle of least privilege: the recommended setup gives the account read access to the DAM folders you want to sync and nothing else. The AEM connector only reads content — it lists DAM folders, reads asset metadata, retrieves thumbnails, and downloads the original files of the assets it syncs. It does not create, edit, move, publish, or delete anything in AEM.
AEM administrator Medialake Adobe / AEM
│ create read-only │ │
│ credentials │ │
│───────────────────────────────────────────────────▶│
│ │ │
Medialake administrator
│ save access key │ │
│─────────────────────────▶│ │
│ │ sign in with the │
│ │ saved credentials │
│ │────────────────────────▶│
│ │ │
Team member
│ connect, choose │ │
│ folders to sync │ │
│─────────────────────────▶│ │
│ │ read-only requests │
│ │────────────────────────▶│
Before you begin
You will need:
The address of your AEM Author instance, for example
https://author-p12345-e67890.adobeaemcloud.com. Medialake connects over the internet, so the address must be a public one. An instance that can only be reached on a private network or through a VPN cannot be connected.Administrator privileges in Medialake, to save the access key.
For AEM as a Cloud Service, you also need:
An Adobe IMS organization administrator who is a member of the AEM Administrators product profile on AEM Author, to create the technical account
Permission in the Adobe Admin Console to create and manage product profiles
AEM administrator access to the target Author instance, to set permissions
For AEM 6.5 and Adobe Managed Services, you also need:
An AEM administrator who can create users and groups and set their permissions
Confirm the target Author environment before you create anything. Technical accounts, users, and permissions all belong to one environment.
>Keep the credentials private. The Service Credentials JSON file contains a private key and a client secret, and the Basic method uses a password. Store them in an approved password manager or secret-management system. Do not email them, paste them into a support ticket, or commit them to source control. Medialake stores the values you enter encrypted and never shows them again.
Step 1, option A: Create a technical account (AEM as a Cloud Service)
>Medialake needs JWT service credentials. Adobe has deprecated JWT credentials in the AEM Developer Console in favor of OAuth Server-to-Server credentials. Adobe's documentation does not give a removal date. Medialake cannot use an OAuth Server-to-Server credential, because it signs in with the private key that only a JWT Service Credentials file contains. If your Developer Console offers only OAuth Server-to-Server credentials, contact [email protected] before you continue.
Create the technical account and download its credentials
Sign in to Adobe Cloud Manager and open the program that contains the target environment.
In the Environments section, select the ellipsis next to the target environment, then select Developer Console.
In the AEM Developer Console, open the Integrations tab, then Technical Accounts.
Select Create new technical account.
Expand the technical account and its private key, and check that the key's status is Active.
Select …, then View. Download the JSON that is displayed, or copy it and save it as a
.jsonfile, in an approved secure location.Open the file and find the technical account's email address in
integration.email. It looks similar to:
Record when the certificate expires. Adobe issues it for one year by default, and the connection stops working when it expires (see Staying connected).
The file is the AEM Service Credentials JSON. It is not itself an access token: Medialake uses the values in it to sign a JWT and exchange that with Adobe IMS for an access token.
Add the technical account to a read-only product profile
A product profile in the Adobe Admin Console becomes a group in AEM. Giving the technical account its own profile gives you one group to set permissions on.
Sign in to the Adobe Admin Console and select the correct Adobe IMS organization.
Under Products and Services, select AEM as a Cloud Service.
> Depending on the Admin Console version, you may reach it through a Manage link or a Products page.
Select the product instance for the target Author environment.
Select New Profile, enter a name, for example
Read-Only, and select Save.Open the new profile and select Add User.
Enter the technical account's email address from
integration.email, and save.Wait at least 10 minutes for the change to take effect before you continue to Step 2.
Step 1, option B: Create a dedicated user (AEM 6.5 and Adobe Managed Services)
Medialake signs in as this user, so the user's permissions define what Medialake can access. Adobe recommends assigning permissions to groups rather than directly to users, so the steps below use a group.
On the AEM Author instance, open the Security console. Adobe's AEM 6.5 documentation places it at
https://:/useradmin.Click Edit, then Create Group, and create a group for the integration, for example
medialake-readonly.Click Edit, then Create User, and create a dedicated user, for example
medialake_readonly, with a strong password.Add the user to the group.
Double-click the group and open its Permissions tab.
Select Read on the folders under
/content/damthat Medialake should sync. Leave every other action, such as Modify, Create, Delete, and Replicate, unselected.Click Save.
The user must be able to sign in with a username and password. An account that can only sign in through single sign-on cannot be used, because HTTP Basic Authentication sends the username and password directly.
The user also needs to read each folder above the ones you want to sync, up to the folder Medialake starts browsing from. See Limiting what Medialake can access.
Using a dedicated user rather than a personal account keeps the connection independent of any individual and makes its access easy to review and revoke.
Step 2: Add the credentials to Medialake
You need administrator privileges in Medialake for this step.
In Medialake, open Administration → Integrations from the sidebar.
Open the Adobe Experience Manager integration.
In the Access Keys section, click Create New Setting.
In the New access key panel, enter a Name for the key, for example
Marketing AEM Author. The name is shown in the access key list and next to every account that connects with it.Under How does it sign in?, choose JWT Service Account (option A) or HTTP Basic Authentication (option B).
Under Credentials, fill in the fields for the method you chose:
| Field | Method | What to enter |
| --- | --- | --- |
| AEM Query Base URL | Both | The address of your AEM Author instance, for example https://author-p12345-e67890.adobeaemcloud.com. Enter the address only, with no path after it. |
| Upload JSON File | JWT Service Account | Click Select a file to upload and choose the Service Credentials JSON file from Step 1. Upload it exactly as you saved it. The file must be a .json file no larger than 2 MB. |
| AEM Username | HTTP Basic Authentication | The username of the dedicated user from Step 1. |
| AEM Password | HTTP Basic Authentication | That user's password. |
| Root DAM Path (optional) | HTTP Basic Authentication | The DAM folder Medialake starts browsing from, written relative to /content/dam, for example brand/fy25. Leave it empty to browse the whole DAM. |
Under Who can use it?, choose the teams that can connect Adobe Experience Manager with this key, or make it available to all teams.
Click Save access key.
In the Access Keys list, click Test next to the new key.
If you leave https:// off the AEM Query Base URL, Medialake adds it. Medialake keeps an http:// address as you entered it, so always use https:// with HTTP Basic Authentication: otherwise the username and password are sent unencrypted.
From the Service Credentials JSON file, Medialake reads the client ID, client secret, technical account ID, organization ID, metascopes, Adobe IMS endpoint, and private key. It stores those values and does not keep the file itself.
For AEM as a Cloud Service, the test is the first request Medialake makes with the technical account, and it matters for Step 3. Adobe creates the technical account's user in AEM, and the group for its product profile, only after a request made with the account's access token. If Test reports "The provider rejected these credentials.", resolve that first (see Troubleshooting).
For AEM 6.5 and Adobe Managed Services, Test should report "The provider accepted these credentials." Skip Step 3.
Step 3: Grant read access to the technical account (AEM as a Cloud Service only)
Check that the group has reached AEM
Sign in to the AEM Author instance as an AEM administrator.
Go to Tools → Security → Groups.
Search for and open the group named after your product profile, for example
Read-Only.Open the Members tab and confirm that the technical account's email address from
integration.emailis listed.
If the group is not there:
Confirm that the AEM Query Base URL in Medialake is this exact Author environment, and click Test again.
Recheck that the technical account is in the correct product profile, and that its email address matches
integration.emailexactly.Allow more time for the product profile change to take effect, then click Test again and recheck.
Do not create a local group with the same name as a shortcut.
Assign read permissions
Grant access only to the DAM folders Medialake should read.
In AEM Author, go to Tools → Security → Permissions.
> Some Adobe documentation places this console under Settings → Security → Permissions.
Search for the group and select it.
Select Add ACE or Edit, depending on the AEM version.
For each approved folder, configure:
| Setting | Value |
| --- | --- |
| Principal | The group, for example Read-Only |
| Path | The approved folder, for example /content/dam/brand |
| Permission type | Allow |
| Privilege | jcr:read only |
Save the entry, and repeat for each approved folder.
In Medialake, click Test next to the access key again. It should now report "The provider accepted these credentials."
Do not grant jcr:write, rep:write, jcr:all, replication, or access-control privileges.
With JWT Service Account, Medialake starts browsing at the top of the DAM, so the account must also be able to read each folder between /content/dam and the folders you approved.
Adobe also adds a technical account to other AEM groups, including Contributors, which already has read access to content. If Medialake must not see content outside the approved folders, review the account's other group memberships and the permissions it inherits from them.
Connect Adobe Experience Manager and choose what to sync
With the access key saved, any team member who is allowed to connect sources, on a team that can use the key, can add Adobe Experience Manager:
Open Connections → Catalogue from the side menu.
Find Adobe Experience Manager and click Connect.
Click New Connection.
Under Access key, select the key saved in Step 2.
Optionally click Test to check the credentials with AEM before connecting.
Click Connect.
There is no Adobe login screen. With JWT Service Account, Medialake signs a JWT with the technical account's private key, exchanges it for an access token at the Adobe IMS endpoint named in the credentials file, and sends that token with each request to AEM. With HTTP Basic Authentication, Medialake sends the username and password with each request, and there is no token.
Nothing is synced automatically. Medialake lists the folders in your DAM, and you choose the ones to sync. Each folder you select is synced together with its subfolders. Within a selected folder, Medialake imports the assets whose file types it supports. The Medialake's Supported File Types for Sync and Upload article lists them.
To sync only assets created within a date range, click Edit next to a synced folder and set both Sync Start From and Sync End At.
A new Adobe Experience Manager source syncs automatically once a week by default; you can change this to daily or monthly.
Limiting what Medialake can access
AEM enforces what the connection can reach through the account's permissions. Medialake can only read what the technical account or dedicated user can read, so restricting those permissions is the strongest control:
Grant read access to specific folders. Give the account's group read access to the DAM folders that need syncing rather than to all of
/content/dam. An allow on a broad path exposes everything beneath it unless a more specific deny applies.Keep it read-only. Without write, replication, or access-control privileges, even leaked credentials could not change your content.
Let the account read the folders above. AEM's Assets HTTP API answers 404 for a folder that exists but that the account cannot read, so the account needs read access to each folder between the one Medialake starts browsing from and the folders you want to sync. Read access to the parent folder itself is enough; it does not have to extend to that folder's other children.
Review inherited access. Permissions add up across every group the account belongs to.
With HTTP Basic Authentication, Root DAM Path (optional) sets the folder Medialake starts browsing from. That and the folders you select in Medialake control what is listed and synced, but they do not narrow what the credentials themselves can read.
What Medialake can and cannot do
With the configuration above, Medialake can:
Request access tokens from Adobe IMS with the technical account's credentials (JWT Service Account only)
List the DAM folders the account can read, and the assets in them, through AEM's Assets HTTP API (
/api/assets)Read asset metadata from
/content/dam, such as the name, size, created date, and unique ID (jcr:uuid)Retrieve thumbnails
Download the original file of the assets it syncs
Look up synced assets by their unique ID with AEM's QueryBuilder (
/bin/querybuilder.json), to check that they are still available in AEM
Medialake does not:
Use or see any person's Adobe ID or AEM password
Access folders or assets the account cannot read
Create, upload, edit, move, publish, or delete assets or folders
Change users, groups, permissions, or configuration in AEM
Medialake's requests to AEM carry the user agent Medialake AEM API Client/1.0, so you can identify them in AEM's request logs.
Staying connected
With JWT Service Account, Adobe's access tokens are short-lived; Adobe's documentation gives a typical lifetime of 24 hours. When AEM rejects an expired token, Medialake signs a new JWT with the stored private key, exchanges it for a new token, and retries the request. No sign-in or user action is needed.
The technical account's certificate does expire, one year after it is created by default. Before it expires, add a new private key to the technical account in the AEM Developer Console, download the new Service Credentials JSON file, and save it in Medialake as a new access key (Step 2). Then switch the source to it: open the source's General tab, click Change Key in its Access Keys section, select the new key, and click Save.
With HTTP Basic Authentication, there is no token to renew. The connection keeps working until the user's password changes or the user is disabled. If your organization requires periodic password changes, plan to save a new access key each time the dedicated user's password changes, and switch the source to it in the same way.
The connection stops working, and the source is marked unauthorized in Medialake, if Adobe or AEM rejects the stored credentials. That happens when the certificate expires, the private key is revoked, or the technical account is deleted, or when the dedicated user's password changes or the user is disabled.
Revoking access
To revoke Medialake's access from AEM as a Cloud Service:
In the AEM Developer Console, revoke the technical account's private key.
Alternatively, remove the technical account from the product profile in the Adobe Admin Console, or remove the group's permissions in AEM.
To revoke it from AEM 6.5 or Adobe Managed Services:
Disable or delete the dedicated user, or change its password.
Alternatively, remove the user from the group, or remove the group's permissions.
In Medialake, an administrator can also delete the access key from the Adobe Experience Manager integration's Access Keys section. Remove the Adobe Experience Manager source in Medialake as well if it should no longer sync.
Troubleshooting
Symptom | What to check |
"The AEM Query Base URL must point to a public address." when saving | Medialake could not resolve the address to a public one. Check it for typing errors. An instance that is only reachable on a private network or through a VPN cannot be connected. |
An error about a field that is not on the form, such as "The AEM Private Key field is required.", when saving | The uploaded file is missing values that Medialake reads from it. Download the Service Credentials JSON again from the AEM Developer Console and upload it unchanged. An OAuth Server-to-Server credentials file cannot be used. |
"A setting with this title already exists in the group. Choose a different title." | Another Adobe Experience Manager access key already uses that name. Choose a different Name. |
Test reports "The provider rejected these credentials." | With JWT Service Account, Adobe IMS or AEM refused the technical account: check that the certificate has not expired, that the private key has not been revoked, and that the AEM Query Base URL is the Author instance of the environment the technical account was created in. With HTTP Basic Authentication, check the username and password, and that the user is not disabled. |
Test reports "These credentials look right, but the provider couldn't confirm them just now." | AEM did not give a definite answer. Check the AEM Query Base URL, and that the Author instance is running and can be reached from the internet. A firewall or IP allow list in front of AEM can cause this. With JWT Service Account, it can also mean the technical account cannot read the DAM yet (Step 3). |
Test reports "AEM returned HTTP 404 for the root path." followed by an explanation | AEM answers 404 for a folder that exists but that the account cannot read. Check that Root DAM Path (optional) is spelled correctly, and that the dedicated user can read that folder and each folder above it. |
The product profile's group is missing in AEM | Confirm the environment and product instance, allow more time for the change to take effect, and click Test on the access key again to make another request. |
The technical account is not a member of the group | Compare the member's login in AEM with |
"No integration settings available for this service." when connecting | No Adobe Experience Manager access key is available to your team. Ask a Medialake administrator to save one, or to add your team under Who can use it? |
No folders appear, or an expected folder is missing | The account cannot read that folder or one of the folders above it. See Limiting what Medialake can access. |
An expected asset is missing | Check that its file type is supported, and that its created date falls inside any date range set on the folder. AEM also hides an asset from the Assets HTTP API once its off time has passed; Medialake can sync an expired asset only if the account is still allowed to read its original file. |
An asset appears but its file will not download | Confirm that the account can read the asset's original file in AEM. |
The source becomes unauthorized | Adobe or AEM rejected the stored credentials. Check the certificate's expiry date, or the dedicated user's password and status, then save a new access key with working credentials and switch the source to it (see Staying connected). |
The account has unexpected write access | Remove write or aggregate privileges, review the account's group memberships and the permissions it inherits, then test again. |
If the issue continues, contact [email protected] with the address of your AEM Author instance, the access key's name, the sign-in method in use, and the error message. Do not include the credentials file, the private key, or the password.
Further reading
Generating Access Tokens for Server-Side APIs - JWT (Legacy) — Adobe's guide to technical accounts, product profiles, certificates, and revoking keys
AEM Service Credentials — creating and downloading service credentials, and the JWT exchange
Deprecated and Removed Features and APIs — the current status of AEM Developer Console JWT credentials
Configuring access to AEM as a Cloud Service — Adobe IMS users, product profiles, AEM groups, and permissions
Permission considerations for headless content — managing groups and permissions in AEM
User Administration and Security — users, groups, and permissions in AEM 6.5
Adobe Experience Manager Assets HTTP API — the API the connector uses to list folders and assets
Questions about connecting Adobe Experience Manager? Contact [email protected].
