Skip to content

Commit ad9a970

Browse files
committed
WIP
1 parent 3498617 commit ad9a970

File tree

6 files changed

+164
-161
lines changed

6 files changed

+164
-161
lines changed

pages/database-management/authentication-and-authorization.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Learn how to manage users in Memgraph.
1717

1818
Learn how to manage roles, set up their privileges and fine-grained access control.
1919

20-
## [Multiple roles per user](/database-management/authentication-and-authorization/multiple-roles) (Enterprise)
20+
## [Multiple roles per user and multi-tenant roles](/database-management/authentication-and-authorization/multiple-roles) (Enterprise)
2121

2222
Learn how to assign multiple roles to users simultaneously and understand how permissions are combined from all roles.
2323

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export default {
22
"users": "Users",
33
"role-based-access-control": "Role-based access control",
4-
"multiple-roles": "Multiple roles per user",
4+
"multiple-roles": "Multiple roles per user and multi-tenant roles",
55
"auth-system-integrations": "Auth system integrations",
66
"impersonate-user": "Impersonate user"
77
}

pages/database-management/authentication-and-authorization/auth-system-integrations.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ The protocol used between Memgraph and the module is as follows:
8787
in to the database
8888
- `role` - a `string` indicating which role the user should have (backward compatible)
8989
- `roles` - an array of strings indicating which roles the user should have (new format)
90-
- `username` - the user's username (optional, can be derived from auth token)
90+
- `username` - the user's username (optional)
9191
- `errors` (optional) - if `authenticated` is false, Memgraph will put up a
9292
warning with the error message returned by the module
9393

@@ -140,7 +140,7 @@ The system will:
140140
When a user has multiple roles, their permissions are combined using the following rules:
141141
- **Grants**: If any role grants a permission, the user has that permission
142142
- **Denies**: If any role denies a permission, the user is denied that permission
143-
- **Database Access**: If any role grants access to a database, the user has access
143+
- **Database Access**: If any role grants and no role denies access to a database, the user has access
144144
- **Fine-grained Permissions**: Combined using the same grant/deny logic
145145

146146
### Module example

0 commit comments

Comments
 (0)