Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ permissions:
GRANT DATABASE db_name TO user_or_role;

-- Deny database access
DENY DATABASE db_name TO user_or_role;
DENY DATABASE db_name FROM user_or_role;

-- Revoke database access
REVOKE DATABASE db_name TO user_or_role;
REVOKE DATABASE db_name FROM user_or_role;
```

### How database access works
Expand Down Expand Up @@ -94,7 +94,7 @@ When roles have conflicting database access, deny takes precedence:
GRANT DATABASE db1 TO role1;

-- Role2 denies access to db1
DENY DATABASE db1 TO role2;
DENY DATABASE db1 FROM role2;

-- User with both roles
SET ROLE FOR user TO role1, role2;
Expand Down
2 changes: 1 addition & 1 deletion pages/database-management/multi-tenancy.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ User-role mappings are simple maps located in the user. Deleting or renaming the
</Callout>

Access to all databases can be granted or revoked using wildcards:
`GRANT DATABASE * TO user;`, `DENY DATABASE * TO user;` or
`GRANT DATABASE * TO user;`, `DENY DATABASE * FROM user;` or
`REVOKE DATABASE * FROM user;`.

### Multi-database queries and the memgraph database
Expand Down