> ## Documentation Index
> Fetch the complete documentation index at: https://mintlify-poc.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# grant_to

> Grant permissions to users for vectorizer-created objects

Grant permissions to a comma-separated list of users.

Includes the users specified in the `ai.grant_to_default` setting.

## Samples

```sql theme={"dark"}
SELECT ai.create_vectorizer(
    'my_table'::regclass,
    grant_to => ai.grant_to('bob', 'alice'),
    -- other parameters...
);
```

## Arguments

This function takes a comma-separated list of usernames to grant permissions to.

## Returns

An array of name values that you can use in `ai.create_vectorizer`.
