Acquia Access Management and the Drupal Toolchain: Roles, Teams, SSO, Composer, Drush and Acquia CLI
Acquia access management built around your own responsibilities, then the Composer, Drush and Acquia CLI toolchain that gets a new developer working in under an hour.

This is Part 2 of 10 in Drupal on Acquia: Enterprise Operations Guide, a free series for the people who run Drupal sites on Acquia Cloud Platform. Acquia access management built around your own responsibilities, then the Composer, Drush and Acquia CLI toolchain that gets a new developer working in under an hour.
Acquia access management: roles, teams and keys
In Arjun’s second week, Webocreation Group’s IT security team ran its annual access review. The report for the Acquia organization listed 47 users. Arjun recognized nine of them. The rest included former employees, staff from two agencies the company no longer worked with, a contractor’s personal Gmail address, and three accounts with the most powerful role in the organization that nobody could explain.
Access is the most important security control you manage on Acquia. Anyone with the right role can deploy code to production, copy the production database (with all its personal data) to their laptop, change domains or delete environments. This section explains how Cloud Platform access works and how to manage it well.

How access works in Cloud Platform
Cloud Platform access is built from four pieces:
- Users: individual people with Acquia accounts.
- Teams: groups of users within an organization.
- Roles: sets of permissions, such as the ability to deploy code or manage domains.
- Applications: teams are given access to specific applications.
The basic model is simple: you add users to teams, assign roles to those users within each team, and give each team access to the applications it needs. A user’s permissions on an application come from the roles they hold in the teams that can access it.
There are also organization-level roles. The organization owner and organization administrators can manage the organization itself: users, teams, applications and settings. These are the most powerful roles and should be held by very few people.
Built-in roles and custom roles
Cloud Platform provides standard roles, typically including roles for team leads, senior developers, developers and read-only users. Each role bundles permissions, such as:
- Viewing applications and environments
- Pushing code to the Git repository
- Deploying code to non-production environments
- Deploying code to production
- Copying databases and files between environments
- Downloading backups
- Managing domains and SSL certificates
- Managing environment variables and settings
- Managing teams and users
The exact names and permission sets change from time to time, so check the current list in your Cloud Platform interface. Organizations can also create custom roles, which lets you match roles precisely to your operating model.
Designing roles for your organization
Start from your own responsibilities, not from Acquia’s role names. For most enterprise estates, five access levels cover nearly everyone:
| Access level | Who | Typical permissions |
|---|---|---|
| Organization administrator | Platform owner and one named backup | Manage users, teams, applications and organization settings |
| Platform lead | Platform engineers responsible for releases | Deploy to all environments including production; manage domains, SSL and settings; copy databases and files |
| Developer | In-house and agency developers | Push code; deploy to Dev and Stage; copy databases and files to non-production environments |
| QA and support | Testers and support staff | View environments and logs; no code or database permissions |
| Read-only | Stakeholders, auditors, managers | View applications and environments only |
The key decisions are:
- Who can deploy to production? Keep this to a small group who follow the release process (see the release management section). Developers can prepare releases; platform leads deploy them.
- Who can copy production data? Production databases usually contain personal data. Copying them to non-production environments should be limited and always followed by scrubbing (see the Cloud Hooks section). Downloading them to a laptop should be rarer still.
- Who can manage domains and SSL? Mistakes here take sites offline. Limit this to the platform team.
- Who can manage users and teams? Limit this to organization administrators.
Teams
Use teams to reflect real groups of people and the applications they work on. A clear structure might look like this:
- Platform team: platform leads, with access to all applications.
- Corporate site developers: in-house developers for the corporate application.
- Careers site developers: developers for the careers application.
- Agency name: each agency gets its own team, limited to the applications it works on.
- Read-only: auditors and stakeholders.
Separate teams for each agency make it easy to remove an agency’s access in one step when the engagement ends.
Single sign-on
Acquia supports single sign-on (SSO) through common identity providers, depending on your subscription. With SSO, users sign in with their company accounts, and access is removed automatically when someone leaves the company and their company account is disabled.
Enable SSO for your organization if it is available to you, and require it for all users who have company accounts. For agency staff, either give them accounts in your company identity system or follow a strict process for their Acquia accounts, with expiry dates and quarterly reviews.
Where SSO is not used, require multi-factor authentication on Acquia accounts.
SSH keys
Developers and automated tools use SSH keys to access Git repositories and environments from the command line. Each user adds their public keys to their own Acquia profile.
Good practice for SSH keys:
- Every person uses their own keys. No shared keys.
- Keys are protected with passphrases and stored securely.
- Old keys are removed when they are replaced or a device is lost.
- Automation uses dedicated keys belonging to a service account or the automation tool, not a person’s key.
When someone leaves, removing their Acquia account removes their keys from Cloud Platform access. Make sure their keys are not also used in other places, such as a CI system.
API keys and tokens
The Cloud Platform API lets tools and scripts perform almost any action a user can: deploying code, copying databases, creating backups, managing domains. Acquia CLI, Code Studio and many custom scripts use API keys.
API keys belong to a user and carry that user’s permissions. This creates two risks: a key belonging to a powerful user is powerful, and a key belonging to someone who leaves stops working when their account is removed, which can break automation.
Manage API keys carefully:
- Use a dedicated service account for automation, with only the permissions the automation needs.
- Store keys in a secrets manager or the CI system’s protected variables, never in Git or in scripts.
- Rotate keys on a schedule and when anyone with access to them leaves.
- Record every key in an inventory: who owns it, what uses it, what permissions it has and when it was last rotated.
Before removing a departing user’s account, check whether any automation uses their API keys. Arjun discovered that Webocreation Group’s nightly database scrub script ran with the contractor’s personal API key. Removing his account would have broken it silently.
Drupal accounts are separate
Cloud Platform access controls who can manage the platform. It does not control who can log into the Drupal sites themselves. Drupal user accounts, roles and permissions are managed inside each Drupal site.
Apply the same principles inside Drupal:
- Use SSO for Drupal administrator and editor logins where possible, through a Drupal SAML or OpenID Connect module.
- Keep the number of Drupal administrators small.
- Block or remove the default administrator account (user 1) from everyday use, and protect it with a strong, securely stored password.
- Review Drupal users and roles regularly, especially on production.
Running access reviews
Run a full access review every quarter, and whenever an agency engagement ends.
- Export the list of users, teams and roles from Cloud Platform.
- Export the list of API keys in use and their owners.
- For each team, ask its owner to confirm who still needs access and at what level.
- Remove users who have left, and downgrade users with more access than they need.
- Rotate API keys belonging to anyone who left.
- Review Drupal administrator accounts on each production site.
- Record the review: date, reviewer, changes made. Auditors will ask for this.
If your company runs access reviews through ServiceNow or an identity governance tool, add Cloud Platform and your Drupal sites to that process, so reviews happen automatically and evidence is recorded.
Webocreation Group: Cleaning up access
Arjun’s first access review removed 31 of the 47 users. Two of the three unexplained organization administrators turned out to be former Acquia onboarding contacts from years earlier. The third was the contractor, who had been given organization administrator access “temporarily” during a migration.
Arjun restructured access into five teams, enabled SSO, created a service account for automation and moved the nightly scrub script to it. He limited production deployment to himself and one senior developer, and reduced organization administrators to himself and the head of IT operations. The whole cleanup took less than a week and closed one of the largest risks on the security team’s list.
Template: Acquia access matrix
| Person or account | Type | Team and role | Applications | Production deploy | Copy prod data | Last reviewed |
|---|---|---|---|---|---|---|
| Arjun | Employee (SSO) | Platform; organization administrator | All | Yes | Yes | This quarter |
| Lead developer | Employee (SSO) | Corporate developers; senior developer | corporate | Yes | Yes | This quarter |
| Agency developer | Agency (company account) | Agency A; developer | corporate | No | No | This quarter |
| automation-svc | Service account | Platform; custom role | corporate, careers | No | Non-prod only | This quarter |
Checklist
- Export all users, teams and roles, and remove anyone who no longer needs access.
- Limit organization administrators to two named people.
- Design roles around your own responsibilities and create custom roles if needed.
- Give each agency its own team, limited to the applications it needs.
- Enable SSO, or require multi-factor authentication where SSO is not available.
- Move automation to a service account and inventory all API keys.
- Review Drupal administrator accounts on every production site.
- Schedule quarterly access reviews and record the results.
Common traps
- Temporary administrator access. Temporary access becomes permanent unless it has an expiry date.
- Automation on personal keys. When the person leaves, the automation breaks or keeps running with too much power.
- Everyone can deploy to production. Limit production deployment to people who follow the release process.
- Forgetting Drupal accounts. Platform access and Drupal site access are separate. Review both.
- Shared SSH keys. Every person and every tool needs its own keys.
The local-to-production toolchain
The contractor had worked directly on the Dev environment. He wrote code on his laptop, pushed it to the develop branch, waited for the deployment and tested in the browser. When something broke, he fixed it the same way. There was no local copy of the site, no automated testing, and no consistent way for a new developer to get started. When Arjun asked a new agency developer to fix a small bug, it took her three days just to get the site running on her machine.
A good toolchain makes the right way of working the easy way. This section sets up the tools you need from a developer’s laptop to production.

The core tools
Every Drupal team on Acquia uses the same core set of tools:
| Tool | What it does | Where it runs |
|---|---|---|
| Git | Version control for all code | Laptops, Code Studio, Acquia repositories |
| Composer | Manages Drupal core, modules, libraries and their versions | Laptops and CI pipelines |
| Drush | Command-line tool for Drupal: clearing caches, running updates, importing configuration | Laptops, CI, Acquia environments |
| Acquia CLI (acli) | Command-line tool for Cloud Platform: pulling databases and files, running remote Drush, deploying artifacts | Laptops, Cloud IDE, CI |
| Local development environment | Runs Drupal on a developer’s machine in containers | Laptops |
| Cloud IDE (optional) | Browser-based development environment connected to Cloud Platform | Acquia cloud |
| Code Studio (optional but recommended) | GitLab-based CI/CD integrated with Cloud Platform | Acquia cloud |
Composer: The foundation
Modern Drupal is managed entirely with Composer. Drupal core, contributed modules, themes and PHP libraries are all declared in composer.json, and the exact versions installed are recorded in composer.lock.
A few rules keep Composer healthy:
- Never edit core or contributed module code directly. Use patches applied through Composer, so changes survive updates.
- Always commit composer.lock. It guarantees that every environment installs exactly the same versions.
- Update deliberately. Run updates on a branch, test them, and deploy them like any other change.
- Know your constraints. Version constraints in composer.json control how far updates can go. Overly loose constraints can pull in breaking changes. Overly tight ones block security updates.
Useful commands:
composer outdated "drupal/*" List Drupal packages with newer versions
composer update drupal/token -W Update one module and its dependencies
composer require drupal/admin_toolbar
composer install Install exactly what composer.lock specifies
Drush
Drush is Drupal’s command-line tool. Most operational tasks on a Drupal site can be done with it, and many are faster and safer than doing them through the admin interface.
The commands you will use most:
drush status Show Drupal version, database and paths
drush cr Rebuild all caches
drush updb Run pending database updates
drush cim Import configuration from the config directory
drush cex Export configuration to the config directory
drush deploy Run the standard deployment sequence
drush uli Generate a one-time login link
drush watchdog:show Show recent log messages
drush sql:sanitize Remove or obscure personal data in the database
The drush deploy command runs the standard post-deployment steps in the right order: database updates, configuration import, cache rebuild and deploy hooks. Using it consistently, in local environments, in CI and in Cloud Hooks, avoids a whole class of deployment errors. The Cloud Hooks section shows how to run it automatically after every deployment.
Acquia CLI
Acquia CLI, run with the acli command, connects your local tools to Cloud Platform. After authenticating with an API key, you can work with your applications and environments without opening the browser.
Commonly used commands include:
acli auth:login Authenticate with your Cloud Platform API key
acli list List all available commands
acli pull:database Copy a Cloud database to your local environment
acli pull:files Copy Cloud files to your local environment
acli remote:drush Run a Drush command on a Cloud environment
acli remote:ssh Open an SSH session to a Cloud environment
acli push:artifact Build and push a deployment artifact
acli api:... Call Cloud Platform API endpoints
Acquia CLI changes regularly, and commands are added and renamed. Run acli list to see the commands available in your version, and acli help followed by a command name for details.
Acquia CLI is especially useful for onboarding. A new developer can clone the repository, start their local environment, run acli pull:database and acli pull:files, and have a working copy of the site within an hour, provided the database they pull has been scrubbed of personal data.
Local development environments
Developers need to run Drupal on their own machines. Container-based tools such as DDEV and Lando are popular in the Drupal community. They run the web server, PHP, database and supporting services in containers, configured by a file in the repository so every developer gets the same setup.
Choose one tool for the whole team and commit its configuration to the repository. Match local PHP and database versions to your Acquia environments, so code that works locally also works on the platform. Document the setup in a short README file:
- Install the local tool and Acquia CLI.
- Clone the repository.
- Start the environment.
- Run composer install.
- Pull a scrubbed database and files with Acquia CLI.
- Run drush deploy to bring the database in line with the code.
If a new developer cannot get a working site in under an hour with these steps, fix the steps.
Cloud IDE
Cloud IDE is a browser-based development environment provided by Acquia. It comes with the tools needed for Drupal development, including Acquia CLI, and can pull code, databases and files from Cloud Platform. It is useful for developers who cannot install local tools, for quick fixes, and for agency staff who should not keep copies of your data on their own machines. Availability depends on your subscription.
Code Studio and CI
Code Studio provides continuous integration and deployment based on GitLab, integrated with Cloud Platform. Its standard pipeline can build your code with Composer, run tests and create deployment artifacts, and it includes automated update jobs. The Code Studio CI/CD section covers it in detail. If you use another CI system, such as GitHub Actions or Jenkins, it can use Acquia CLI and the Cloud Platform API to deploy.
Keeping versions in step
A common source of bugs is version drift: a developer runs a different PHP version locally than production, or Composer installs different versions on different machines. Keep these in step:
- PHP: match your local environment to the version set on your Acquia environments. When you upgrade PHP on Acquia, upgrade locally and in CI at the same time.
- Database: use the same major version of MySQL or MariaDB as your environments.
- Composer and Drush: use the versions specified in the project, run through Composer, rather than global installs that differ between machines.
- Node.js and front-end tools: if your theme has a build step, pin the Node.js version.
Record the expected versions in the repository’s README file, and update them when the platform changes.
Webocreation Group: An hour to first page
Arjun asked the agency developer who had struggled for three days to help write the new onboarding steps. Together they chose DDEV, committed its configuration, pinned PHP to the version running on Acquia, set up a nightly job that produced a scrubbed copy of the production database on Stage, and wrote the README file.
The next new developer, a junior hire in Webocreation Group’s web team, had a working local site in 47 minutes. Arjun added the onboarding steps to the team’s knowledge base and made “test the onboarding steps” part of every major platform change.
Template: Developer onboarding checklist
| Step | Command or action | Done |
|---|---|---|
| Request access | Acquia team membership; Code Studio account; Drupal account on Dev | |
| Install tools | Git, local environment tool, Acquia CLI | |
| Add SSH key | Add public key to Acquia profile and Code Studio | |
| Authenticate | acli auth:login with personal API key | |
| Clone repository | git clone from Code Studio or Acquia | |
| Start local environment | For example, ddev start | |
| Install dependencies | composer install | |
| Pull data | acli pull:database and acli pull:files (scrubbed source) | |
| Sync with code | drush deploy | |
| Log in | drush uli | |
| Read the docs | README, branching guide, release process, coding standards |
Checklist
- Confirm all code, including core and modules, is managed with Composer and composer.lock is committed.
- Choose one local development tool and commit its configuration.
- Match local and CI versions of PHP and the database to your Acquia environments.
- Install and authenticate Acquia CLI for every developer.
- Provide a scrubbed database source for local development.
- Write onboarding steps and test them with a new developer.
- Use drush deploy consistently after deployments.
Common traps
- Editing contributed code directly. Use Composer patches so changes survive updates.
- Working only on Dev. A shared environment is not a development environment. Give every developer a local copy.
- Version drift. Different PHP or package versions between laptops and Acquia cause bugs that only appear in production.
- Unscrubbed databases on laptops. Personal data on developer machines is a privacy risk.
- Onboarding by word of mouth. Write the steps down and test them.
Related reading
- Passwords, MFA, and Passkeys: Authentication Done Right
- 7 Real-World Breaches and the Security Lessons They Teach
- Easy steps to setup local environment of Pantheon with Lando
- Git, CI/CD and Staging for OpenCart: A Deployment Workflow That Doesn’t Break the Live Store
- Drupal on Acquia Foundations
- Acquia Deployments, Code Studio CI/CD and Release Management for Drupal







