# Users/Grants

## What are Users and Grants?

Users and grants are SQL's permissions system. A database administrator creates users and grants them permissions to do certain actions, like read or write to tables.

## How to use Users and Grants

As an administrator user, you create users and roles using `CREATE USER` and `CREATE ROLE` statements. You grant permissions to users using `GRANT` statements. You can grant privileges to specific users but this is generally not advised. It is better to grant privileges to roles and then assign users roles using `GRANT` statements.

## Difference between Postgres Users & Grants and Doltgres Users & Grants

The goal is for Doltgres users and grants to match Doltgres users and grants exactly. This functionality is not yet implemented, and Doltgres has a single user and password. [Submit an issue](https://github.com/dolthub/doltgresql/issues) if you need more functionality.


---

# 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.doltgres.com/concepts/sql/users-grants.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.
