MCP and roles

Look up, add, change and delete the roles of your organisation by asking Claude.

Look up the roles of your organisation and the permissions they are built from, and add, change and delete roles, by asking Claude.

Back to the overview: Talk to your data with MCP

Overview

A role is a set of permissions that you give to users. The role tools follow the Roles page in Configuration, with the same rules and the same permissions. Giving a role to a user is done with the users tools, described in MCP and users.

Roles are identified by a whole-number id, which list-roles returns. A role has no other identifier. The id is also what create-user, update-user and the roles filter of list-users take.

Navigate to the same page in the application: Left menu: Configuration, then Roles.

What Claude can do

Tool

Reads or changes

What it does

list-roles

Reads

Lists the roles of your organisation, ordered by name.

get-role

Reads

Returns one role with the names of all the permissions it grants.

list-permissions

Reads

Lists the permission groups a role can be built from, with the permission names and the groups that conflict.

create-role

Changes

Adds a role.

update-role

Changes

Changes only the fields you name.

delete-role

Changes

Deletes a role permanently.

Lists show 25 rows per page and up to 100 when asked.

Example questions

  • "Which roles do we have, and how many users hold each?"
  • "Which permissions does the role Auditor grant?"
  • "Which permissions can I choose for risks?"
  • "Create a role called Risk reader that can only read risks and issues."
  • "Add the permission to update issues to the role Risk reader."
  • "Delete the role Risk reader."

Reading roles and permissions

Each row of list-roles shows the id, the name, the role type, whether the role updates automatically, the number of active users who hold it, and assignableByYou. The last one says whether you may give the role to someone else. The permissions of a role are not in the list: read one role with get-role.

list-permissions shows every permission group with its category, the permission names it offers and the groups it cannot be combined with. These names are what create-role and update-role take. You can search by name and filter by category.

Adding a role

A new role needs a name of up to 191 characters that no other role of your organisation has. HTML tags and surrounding spaces are removed from the name. Then you choose one of two ways to give it permissions:

  • A list of permissions. Claude finds the names with list-permissions. Picking create, update, archive, delete or action of a permission also grants its read, which is added for you. Permissions that conflict cannot be combined, and the answer names the pair.
  • Automatic updates. With this on, the role takes its permissions from its role type and is kept in step with it when 3rdRisk changes that type. A role type is required, and sending permissions is refused.

A new role is held by nobody until it is given to users with update-user.

Changing a role

Only the fields you name change, and at least one field is required. You can change the name, the automatic updates setting, the role type and the permissions.

  • The permissions you send replace the whole set. A permission you leave out is removed, and an empty list removes them all. Ask Claude to read the role first, so it sends the full list you want. Leave the permissions out to keep them as they are.
  • A role with automatic updates needs a role type and cannot be given permissions.
  • Switching a role to manual updates keeps the permissions it holds.
  • The change reaches everyone who holds the role.

Deleting a role

Deleting a role is permanent. A role has no archive, so nothing can restore it, and creating it again gives a new id. A role that active users still hold is refused, with the number of users. Take the role away from them first with update-user, then delete it.

Note: Ask Claude to confirm with you before it deletes anything.

Permissions needed

The same permissions as the Roles page: to see roles, to add them, to change them and to delete them. A role you may not see, or that does not exist, is answered as "not found".

Note: As on the Roles page, anyone who may add or change roles can put any permission on a role, including permissions they do not hold themselves. Give the permission to change roles only to people you trust with that.

Learn more: MCP security and permissions

Known limitations

  • A deleted role cannot be restored.
  • Claude cannot change who holds a role from the role itself. Use update-user for that.
  • The change history of roles is not available through MCP.