Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SMQ-2633 - Fix create users #215

Merged
merged 7 commits into from
Jan 15, 2025
Merged
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
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>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could add a complete example below this

Suggested change
supermq-cli users create <first_name> <last_name> <user_email> <username> <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
Loading