Skip to content

Commit 5b7d6d6

Browse files
committed
docs: update db-scripts.md to include revoke-access instructions
1 parent 5f61eac commit 5b7d6d6

1 file changed

Lines changed: 21 additions & 2 deletions

File tree

docs/3dcitydb/db-scripts.md

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ on its usage and command-line options.
156156
## Granting and revoking access
157157

158158
The `grant-access` script allows you to grant database access to a specified user (the _grantee_) for a 3DCityDB
159-
instance. The script prompts for the target schema and the desired access mode. Three access modes are available:
159+
instance. Three access modes are available:
160160

161161
| Access mode | Code | Description |
162162
|---|---|---|
@@ -182,4 +182,23 @@ The script will prompt for the following inputs:
182182

183183
1. **Grantee** -- the name of the database user to whom access should be granted.
184184
2. **Schema** -- the target 3DCityDB schema (default: `citydb`).
185-
3. **Access mode** -- the level of access: `RO`, `RU`, or `RW` (default: `RO`).
185+
3. **Access mode** -- the level of access: `RO`, `RU`, or `RW` (default: `RO`).
186+
187+
To revoke previously granted access, use the `revoke-access` script:
188+
189+
=== "Linux"
190+
191+
```bash
192+
./revoke-access.sh
193+
```
194+
195+
=== "Windows CMD"
196+
197+
```bat
198+
revoke-access.bat
199+
```
200+
201+
The script will prompt for the following inputs:
202+
203+
1. **Grantee** -- the name of the database user whose access should be revoked.
204+
2. **Schema** -- the target 3DCityDB schema (default: `citydb`).

0 commit comments

Comments
 (0)