# 37.5. applicable\_roles

The view `applicable_roles` identifies all roles whose privileges the current user can use. This means there is some chain of role grants from the current user to the role in question. The current user itself is also an applicable role. The set of applicable roles is generally used for permission checking.

#### **Table 37.3. `applicable_roles` Columns**

| <p>Column Type</p><p>Description</p>                                                                                                                                                                        |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p><code>grantee</code> <code>sql\_identifier</code></p><p>Name of the role to which this role membership was granted (can be the current user, or a different role in case of nested role memberships)</p> |
| <p><code>role\_name</code> <code>sql\_identifier</code></p><p>Name of a role</p>                                                                                                                            |
| <p><code>is\_grantable</code> <code>yes\_or\_no</code></p><p><code>YES</code> if the grantee has the admin option on the role, <code>NO</code> if not</p>                                                   |


---

# 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://docs.postgresql.tw/16/client-interfaces/the-information-schema/applicable_roles.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.
