# RBAC

RBAC is supported using OPA layer. OPA and Envoy as sidecars in backend microservices provide RBAC to APIs by checking user roles from the authentication token.

#### RBAC References:

{% embed url="<https://project-sunbird.atlassian.net/wiki/spaces/~900520377/pages/2117140485/RBAC+Technical+Design>" %}
RBAC Design with Respect UserOrg
{% endembed %}

{% embed url="<https://project-sunbird.atlassian.net/wiki/spaces/DevOps/pages/2849308673/RBAC+on+Sunbird>" %}
RBAC Design from Devops
{% endembed %}

{% embed url="<https://github.com/project-sunbird/sunbird-devops/tree/master/kubernetes/opa>" %}
RBAC configurations
{% endembed %}


---

# 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://lern.sunbird.org/use/developer-guide/user-and-org-service/roles/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.
