Manage users

Magento Enterprise Cloud Edition enables you to administer users by assigning them one or more roles. A role provides access and improves security in your project. Different roles are authorized to do different things with your applications, environments, and users.

Account owner role

The account owner (that is, the person who registered the Magento Enterprise Cloud Edition account) is the only user with the Account Owner role. This user can perform any task in any project or environment, including delete it.

Project-level roles

You can assign users to the following roles per project:

  • Project administrator (also referred to as super user) can change settings and execute actions on any environment, including creating and restoring snapshots.
  • Project reader can view all environments in a project but cannot execute any actions on them.

Environment-level roles

A project reader can have one of the following roles per environment:

  • Environment administrator can change settings and execute actions on this environment, including merging with the parent environment.
  • Environment contributor can push code to this environment. This role can also branch the environment.
  • Environment reader can view this environment only.

We recommend you limit the environment administrator role to as few users as possible.

Role management best practices

When a development team works on a project, the team leader can be the project administrator and decide which roles to give his team members. One team member can contribute to one environment, another member can administer a different environment, and the customer can be a reader of the master environment.

For your users to be able to see everything but only commit to a specific branch, change their permission level on that environment to “Contributor”.

An environment contributor can push code to the environment, but that user role does not have SSH access to the environment. By default, only environment administrators have SSH access. You can change the behavior in by specifying ssh: contributor.

Create and manage users

You can create and manage users using the Magento Cloud CLI or the Web Interface.

Manage users with the CLI

You can use the Magento Enterprise Cloud Edition command line client to fully manage your users and integrate this with any other automated system.

Available commands:

  • magento-cloud user:add
    • Add a user to the project
  • magento-cloud user:delete
    • Delete a user
  • magento-cloud user:list [users]
    • List project users
  • magento-cloud user:role
    • View or change a user’s role

For example, the following command adds the project administrator (admin) role to and gives her contributor privileges to the development environment:

The following prompts are displayed:

magento-cloud user:add

Email address:
The user's project role can be 'viewer' ('v') or 'admin' ('a').
Project role [V/a]: a
The user's environment-level roles can be 'viewer', 'contributor', or 'admin'.
development environment role [V/c/a]: c
  Email address:
  Project role: contributor
Adding users can result in additional charges.
Are you sure you want to add this user? [Y/n]
User created

After this has been done, the user will receive an e-mail asking her to confirm her details and register an account name and a password.

To change Alice’s role on the environment development to admin, use the following command:

magento-cloud user:role --level environment --environment development --role admin

Use magento-cloud list to get the full list of commands.

Manage users with the Web Interface

To create user accounts using the Web Interface:

  1. Log in to your Magento Enterprise Cloud Edition account.
  2. Click the Projects tab as the following figure shows.

    Click the projects tab to access your Cloud project

  3. Click the name of your project.
  4. Click the configure project button next to project name in the top navigation bar as the following figure shows.

    Configure the project

  5. In the right pane, click Add Users.

    Start creating users

  6. Click Add User.

    The page displays as follows.

  7. Enter the user’s e-mail address.
  8. Select the access for the account:

    • For a project administrator account, select the Super User check box. This provides Admin rights for all settings and environments. If not selected, the account has only view options for all environments on a project.
    • Select permissions per specific environment (or branch) in the Integration environment: No access, Admin (change settings, execute action, merge code), Contributor (push code), or Reader (view only). As you add active environments, you can modify permissions per user.
  9. Click Add User.

The users you add receive an e-mail inviting them to join the Magento Enterprise Cloud Edition project. The user must follow the prompts to register an account and verify their e-mail address. They receive access based on the set project and environment permissions.

Rebuild the environment

After a new user is added to an environment, the environment must be rebuilt. Rebuilds are triggered when you push a new commit to an environment. To be able to rebuild without new code changes, use the command git commit --allow-empty -m "redeploy" && git push <branch name> to create an empty commit and “force” rebuilding the environment.

When the environment rebuild is complete, allow a short time for the routes to update fully and for the new user to be able to use SSH access.