Roles and permissions

Cloudera Migration Assistant has three roles that control what a user can do in the web interface and the API.

Roles

Table 1. Cloudera Migration Assistant roles
Role Description in Anywhere Cloud What the role can do
cma-admin Full administrative access Everything that a migrator can do, and also generate agent registration tokens and revoke agents. The user who deploys Cloudera Migration Assistant gets this role.
cma-migrator Standard user access Register clusters, manage connections, run scans, create and run migration plans, and create refactor jobs.
cma-viewer Read-only access View clusters, plans, executions, commands, and agents, without changing anything.

A user who has no Cloudera Migration Assistant role gets viewer access at most. Only administrators see the Registration tab on the Agent Overview page.

Permissions by area

Table 2. Permissions of each role
Area cma-admin cma-migrator cma-viewer
View clusters, plans, executions, commands, and agents Yes Yes Yes
Register clusters, and create and edit connections and credentials Yes Yes No
Run scans and cluster commands Yes Yes No
Create, edit, and run migration plans Yes Yes No
Delete clusters, plans, labels, and other items Yes No No
Create and run refactor jobs in Code Migrator Yes Yes No
Generate registration tokens, and revoke agents Yes No No
Turn features on and off in Settings > Feature Flags Yes No No
View your own profile Yes Yes Yes

The same roles apply in the web interface and the REST API. The web interface can display an action that your role does not allow. In that case, the server rejects the action when you try it.

On an agent, the same three roles apply. A migrator can register clusters, manage connections, and run scans in the web interface of the agent. Only an administrator can generate registration tokens and revoke agents.

Default permissions by component

Each role gives these permissions on the components of Cloudera Migration Assistant. Read means viewing items, create and update mean adding and changing items, and delete means removing items.

Table 3. Permissions of each role by component
Role Cloudera Migration Assistant engine Agents Authorization service
cma-admin Read, create, update, and delete Read, create, update, and delete Read, create, update, and delete
cma-migrator Read, create, and update Read Read
cma-viewer Read Read Read

How Cloudera Migration Assistant reads roles

Anywhere Cloud can scope a role to an engine instance, in the form [***INSTANCE***]:[***ROLE***]. Cloudera Migration Assistant uses only the part after the last colon. For example, prod-migration:cma-admin gives the cma-admin role.

Each role adds to the previous one. A user who has more than one Cloudera Migration Assistant role gets the permissions of all of them.

You assign roles only in Anywhere Cloud. Cloudera Migration Assistant has no page for managing users or roles. See Assigning roles to users.