Skip to content

Commit

Permalink
sysadmin: Fix docs on user management (DCL)
Browse files Browse the repository at this point in the history
  • Loading branch information
ohsayan committed Apr 8, 2024
1 parent ec0a2d1 commit 99fd6b0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
6 changes: 3 additions & 3 deletions docs/blueql/4.dcl.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ SYSCTL REPORT STATUS

**Syntax**:
```sql
SYSCTL CREATE USER 'username' WITH { password: 'password' }
SYSCTL CREATE USER <username> WITH { password: 'password' }
```
- **Access control**: `root` only
- **Returns**: empty or error
Expand All @@ -30,7 +30,7 @@ SYSCTL CREATE USER 'username' WITH { password: 'password' }

**Syntax**:
```sql
SYSCTL ALTER USER 'username' WITH { password: 'new password' }
SYSCTL ALTER USER <username> WITH { password: 'new password' }
```

- **Access control**: `root` only
Expand All @@ -45,7 +45,7 @@ Trying to change the `root` account password will throw an error. You can only c

**Syntax**:
```sql
SYSCTL DROP USER 'username'
SYSCTL DROP USER <username>
```
- **Access control**: `root` only
- **Returns**: empty or error
14 changes: 12 additions & 2 deletions docs/system/2.user-management.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,19 @@ what you intended, you can safely ignore it.

You can have any number of standard users. Standard users can essentially manipulate data but can't modify the objects that store them.

#### Changing account passwords
#### Creating user accounts

To change the password for a given account, you can follow the [instructions on BlueQL's DCL guide here](/blueql/dcl#sysctl-alter-user).
To create an user account, run the following BlueQL query:

```sql
SYSCTL CREATE USER <username> WITH { password: 'password' }
```

Read more about [creating users here](/blueql/dcl#sysctl-create-user).

#### Updating and removing user accounts

To remove or update an account, you can follow the [instructions on BlueQL's DCL guide here](/blueql/dcl).

#### Rights

Expand Down

0 comments on commit 99fd6b0

Please sign in to comment.