---
title: Links
description: Use `GRANT` and `REVOKE` statements to manage link privileges
  including CONNECT, DISCONNECT, COPY operations, and link creation/deletion
  rights for users and roles.
pubDate: 2026-08-17T09:53:44.266Z
antora:
  editUrl: https://github.com/couchbaselabs/docs-enterprise-analytics/edit/release/2.0/modules/sqlpp/pages/5_ddl_rbac_links.adoc
  xref: xref:2.0@enterprise-analytics:sqlpp:5_ddl_rbac_links.adoc[]
---

[Consult the llms.txt file for a full list of contents](/llms.txt)
[View original HTML](/enterprise-analytics/2.0/sqlpp/5_ddl_rbac_links.html)

# Links

## [](#grantrevoke-syntax-diagrams)Grant/Revoke Syntax Diagrams

**Grant Link Diagram** 

![GRANT](_images/grantlink.png) 

Example:

```sqlpp
GRANT CREATE, DROP, ALTER LINK TO USER user1, ROLE role1;
GRANT CONNECT, DISCONNECT ON any LINK TO USER user1, ROLE role1;
GRANT DISCONNECT ON any LINK link0 TO USER user1, ROLE role1;
```

**Revoke Link Diagram** 

![REVOKE](_images/revokelink.png) 

Example:

```sqlpp
REVOKE CREATE, DROP, ALTER LINK FROM USER user1, ROLE role1;
REVOKE CONNECT, DISCONNECT ON any LINK FROM USER user1, ROLE role1;
REVOKE DISCONNECT ON any LINK link0 FROM USER user1, ROLE role1;
```