Skip to content

Commit

Permalink
SMQ-2633 - Fix create users (#215)
Browse files Browse the repository at this point in the history
* fix parameters needed to create users

Signed-off-by: nyagamunene <[email protected]>

* rename username

Signed-off-by: nyagamunene <[email protected]>

* add example

Signed-off-by: nyagamunene <[email protected]>

* add example

Signed-off-by: nyagamunene <[email protected]>

* add example

Signed-off-by: nyagamunene <[email protected]>

* fix update email

Signed-off-by: nyagamunene <[email protected]>

* remove owner command

Signed-off-by: nyagamunene <[email protected]>

---------

Signed-off-by: nyagamunene <[email protected]>
  • Loading branch information
nyagamunene authored Jan 15, 2025
1 parent 586a8cb commit f4f49a6
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions docs/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,17 @@ For "things" service, the response should look like this:
SuperMQ has two options for user creation. Either the `<user_token>` is provided or not. If the `<user_token>` is provided then the created user will be owned by the user identified by the `<user_token>`. Otherwise, when the token is not used, since everybody can create new users, the user will not have an owner. However, the token is still required, in order to be consistent. For more details, please see [Authorization page](authorization.md).

```bash
supermq-cli users create <user_name> <user_email> <user_password>
supermq-cli users create <first_name> <last_name> <user_email> <username> <user_password>

supermq-cli users create <user_name> <user_email> <user_password> <user_token>
supermq-cli users create <first_name> <last_name> <user_email> <username> <user_password> <user_token>
```

For example:

```bash
supermq-cli users create John Doe [email protected] johndoe 12345678

supermq-cli users create John Doe [email protected] johndoe 12345678 <token>
```

#### Login User
Expand Down Expand Up @@ -222,16 +230,10 @@ supermq-cli users update <user_id> '{"name":"value1", "metadata":{"value2": "val
supermq-cli users update tags <user_id> '["tag1", "tag2"]' <user_token>
```

#### Update User Identity

```bash
supermq-cli users update identity <user_id> <user_email> <user_token>
```

#### Update User Owner
#### Update User Email

```bash
supermq-cli users update owner <user_id> <owner_id> <user_token>
supermq-cli users update email <user_id> <user_email> <user_token>
```

#### Update User Password
Expand Down

0 comments on commit f4f49a6

Please sign in to comment.