# Restrict Access to a Scan Role Using RBAC

> 📖 If you’re new to Probe Roles, start with [Create a Scan Role](/akto-argus-agentic-ai-security-for-homegrown-ai/agentic-red-teaming/how-to/create-a-test-role.md).

You can now **restrict access to probe roles** based on user roles (RBAC). This gives you fine-grained control over who can view or use a particular probe role.

This is especially useful in collaborative environments where different teams (e.g., Security, QA, DevOps) need access to different sets of probes.

***

## 📘 Prerequisite

Make sure you’ve already created [Custom Roles](/account-management/custom-roles.md) for your team members.

***

## ✅ Steps to Restrict Probe Role Access by User Role

1. **Go to Scan Roles**
   * Navigate to **AI Red Teaming → Scan Roles**.
2. **Create or Edit a Scan Role**
   * You can either create a new Probe Role or edit an existing one.
3. **Set Scope Role**
   * In the Probe Role configuration form, locate the dropdown labeled **”Scope Role”**.
   * Select one or more user roles from the list.
   * Only users with the selected roles will be able to view or apply this Probe Role during probing.
4. **Save**
   * Click **Save** to update the Probe Role with the new RBAC restrictions.

***

## 🔒 What Happens After Setting a Scope Role?

* Users without the selected roles will **not see** the Probe Role in their list.
* They also won’t be able to select the Probe Role when triggering a probe.
* **Admins and Super Admins** retain visibility over all Probe Roles by default.

***

## 🧪 Example Use Case

* **QA Team**: Create a probe role named “Regression Suite” and assign it a scope role of **QA**.
* **Security Team**: Set up a probe role named “Critical Security Checks” and assign it to the **Security** scope role.

***

## 📎 Related Documentation

* [Create a Probe Role](/akto-argus-agentic-ai-security-for-homegrown-ai/agentic-red-teaming/how-to/create-a-test-role.md)
* [Custom Roles](/account-management/custom-roles.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ai-security-docs.akto.io/akto-argus-agentic-ai-security-for-homegrown-ai/agentic-red-teaming/how-to/restrict-test-role-rbac.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
