Manage Roles in Medusa Admin

Enterprise

In this guide, you'll learn how to manage roles in the Medusa Admin.

Enterprise feature: Roles are part of the role-based access control (RBAC) feature, which is an enterprise feature. If your store is hosted on Cloud's Scale or Enterprise plan, its license already includes this feature. A developer must enable it in your Medusa configuration before the Roles and Policies settings appear. If you don't find these settings, reach out to your development team.

What is a Role?#

A role groups a set of permissions, called policies, under a name such as "Product Manager". You assign roles to admin users to control what they can access and do in the Medusa Admin.


When You Don't Have Access#

Your roles decide which parts of the Medusa Admin you can open. When you try to open a page that your roles don't cover, the dashboard shows an Access Denied message instead of the page, along with the permission the page requires. Nothing is broken, and you can keep using the pages you do have access to.

If your account has no permissions at all, the dashboard sends you to a No permissions yet page after you log in, instead of a section of the store. Reach out to your administrator to request access to the areas you need.

When you have at least one permission, the dashboard opens the first section you can access after you log in, such as Orders or Products.


View Roles#

Requires policy:rbac_role:read

To view the roles in your store, go to Settings → Roles. In the list, you can see each role's name and description. You can also search and sort the roles to find a specific one.

To view a role's details, click on it in the list. The role's details page shows its general information, the users assigned to it, and the permissions it grants. To see the assigned policies, you also need the rbac_policy:read policy. To see the assigned users, you also need the user:read and rbac_role_assignment:read policies.

Permissions Section#

The Permissions section on the role's details page shows the total number of permissions the role grants, and lists the permission groups, such as Orders, Products, or Store settings. Each group has a badge that shows the role's access level in that group:

  • No access: The role grants no permissions in the group.
  • View only: The role can only view the resources in the group.
  • Full access: The role grants every permission in the group.
  • Mixed: The role grants some of the group's permissions. The badge is accompanied by the number of granted permissions out of the group's total.

Click a group to expand it and see a table of its resources and their operations, such as Read, Create, Update, and Delete. A check mark indicates a granted permission, and n/a indicates that the resource doesn't support the operation. If a role can change a resource but can't view it, the resource shows a No view access warning.

Permissions added by plugins or customizations appear in the Custom group. If the role has wildcard permissions that a developer assigned, a note at the bottom of the section lists them.


Create a Role#

Requires policies (all of):rbac_role:createrbac_policy:read

To create a role:

  1. Go to Settings → Roles.
  2. Click the Create button in the top-right corner.
  3. In the Details tab, enter a name and an optional description for the role.
  4. Click Continue to move to the Permissions tab.
  5. Optionally, choose a template under Start from a template to pre-select permissions:
    • Full access: Selects every permission you can grant.
    • Read only: Selects the view permissions of everything you can grant.
  6. Select the permissions that this role should grant, as explained in the Select Permissions section. Each permission allows an operation, such as read or create, on a resource, such as products or orders.
    • To learn which policies common roles need, refer to the Common Roles guide.
  7. Review the Role summary on the side, which shows the role's name and the access level of each permission group.
  8. Click Create. You must select at least one permission to create the role.

The role now appears in the list, and you can assign it to users.

Note: Applying a template replaces the permissions you already selected, so the dashboard asks you to confirm first. Templates only include the permissions that exist when you apply them. Permissions added later, such as by a new plugin, aren't added to the role automatically.

Select Permissions#

The Permissions tab, and the form to manage a role's permissions, show permissions in groups, such as Orders, Products, or Team and access. Each group shows the number of selected permissions out of its total.

You can select permissions in the following ways:

  • Set a group's access level: Use the No access, View only, and Full access toggle next to a group to change all of its permissions at once. If you selected only some of a group's permissions, the group shows a Mixed badge.
  • Select individual permissions: Click a group to expand it and see a table of its resources and operations. Then, check or uncheck the box of each permission.
  • Select a resource's permissions: Check the box next to a resource's name to select or unselect all of its permissions.
  • Select an operation for all resources: Click an operation's name, such as Create, in the table's header to select or unselect it for every resource in the group.
  • Clear all: Click the Clear all button at the top of the list to unselect every permission you can change, then confirm in the pop-up.

To find a permission, enter a group or resource name in the search field. To see the technical keys of the permissions, such as product:read, check the Show permission keys box.

When you select an operation other than read for a resource, the read permission of that resource is selected too, since users need to view a resource to change it. You can't unselect the read permission while other permissions of the resource are selected.

Permissions added by plugins or customizations appear in the Custom group.

Note: You can only grant the permissions that you hold yourself. So, you can't create a role that grants more access than you have. Permissions that you don't hold show a lock icon and can't be changed, and their group shows the number of locked permissions.

Edit a Role's Details#

Requires policy:rbac_role:update

To edit a role's name or description:

  1. Go to the role's details page.
  2. Click the icon at the top-right of the first section.
  3. Choose Edit from the dropdown.
  4. In the side window that opens, edit the role's name or description.
  5. Click Save.

Manage a Role's Permissions#

Requires policies (all of):rbac_role:updaterbac_policy:read

To change the permissions that a role grants:

  1. Go to the role's details page.
  2. Click the Manage permissions button in the Permissions section. Alternatively, click the icon at the top-right of the first section and choose Manage permissions from the dropdown.
  3. In the form that opens, select or unselect the permissions for this role, as explained in the Select Permissions section.
  4. Review the Role summary on the side, which shows the number of permissions you added and removed.
  5. Click Save.

Users assigned this role gain or lose access based on the permissions you change.

Note: You can't add or remove permissions that you don't hold yourself. These permissions show a lock icon in the form, and the role keeps them when you save.

Assign Users to a Role#

Requires policies (all of):user:updaterbac_role_assignment:createuser:readrbac_role_assignment:read

To assign users to a role:

  1. Go to the role's details page.
  2. In the Users section, click the Add button.
  3. Select the users you want to assign this role to. You can't select users who already have the role.
  4. Click Save.
Note: You can only assign a role if you have all the permissions that the role grants. If you don't, the Add button doesn't appear in the Users section.

Remove Users from a Role#

Requires policies (all of):user:updaterbac_role_assignment:deleteuser:readrbac_role_assignment:read

To remove a user from a role, find the user in the Users section, click the icon at the end of their row, and choose Remove. Then, click Continue in the confirmation pop-up.

To remove multiple users at once, select the users in the Users section, then click the Remove button in the command bar at the bottom of the page. Click Continue to confirm.

Note: As with assigning users, you can only remove users from a role if you have all the permissions that the role grants.You also can't remove the last user that has the Super Admin role. Assign the Super Admin role to another user first.

View a User's Roles#

Requires policies (all of):user:readrbac_role:readrbac_role_assignment:read

You can also see the roles of a specific user:

  1. Go to Settings → Users.
  2. Click on the user in the list.
  3. Scroll to the Roles section, which lists every role assigned to that user.

Click on a role in the list to go to its details page, where you can change its permissions or the users assigned to it.


Delete a Role#

Requires policy:rbac_role:delete
Warning: Deleting a role is irreversible. Users assigned to the role lose the access it granted.
Note: You can't delete the built-in Super Admin role.

To delete a role:

  1. Go to the role's details page.
  2. Click the icon at the top-right of the first section.
  3. Choose Delete from the dropdown.
  4. Confirm deleting the role in the pop-up. If you can view the role's users, the pop-up also shows how many users have the role and will lose the access it grants.

You can also delete a role from the Settings → Roles list. Click the icon at the end of the role's row and choose Delete.

Was this guide helpful?
Ask Bloom
For assistance in your development, use Claude Code Plugins or Docs MCP server in Cursor, VSCode, etc...FAQ
What is Medusa?
How can I create a module?
How can I create a data model?
How do I create a workflow?
How can I extend a data model in the Product Module?
Recipes
How do I build a marketplace with Medusa?
How do I build digital products with Medusa?
How do I build subscription-based purchases with Medusa?
What other recipes are available in the Medusa documentation?
Chat is cleared on refresh
Line break
⇧↵