From f4f49a62e76cc50f25a5ae77a83cceeb24bb7d88 Mon Sep 17 00:00:00 2001 From: Steve Munene Date: Wed, 15 Jan 2025 10:28:51 +0300 Subject: [PATCH] SMQ-2633 - Fix create users (#215) * fix parameters needed to create users Signed-off-by: nyagamunene * rename username Signed-off-by: nyagamunene * add example Signed-off-by: nyagamunene * add example Signed-off-by: nyagamunene * add example Signed-off-by: nyagamunene * fix update email Signed-off-by: nyagamunene * remove owner command Signed-off-by: nyagamunene --------- Signed-off-by: nyagamunene --- docs/cli.md | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/docs/cli.md b/docs/cli.md index bbbc80a..463f76b 100644 --- a/docs/cli.md +++ b/docs/cli.md @@ -174,9 +174,17 @@ For "things" service, the response should look like this: SuperMQ has two options for user creation. Either the `` is provided or not. If the `` is provided then the created user will be owned by the user identified by the ``. 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 +supermq-cli users create -supermq-cli users create +supermq-cli users create +``` + +For example: + +```bash +supermq-cli users create John Doe johndoe@example.com johndoe 12345678 + +supermq-cli users create John Doe johndoe@example.com johndoe 12345678 ``` #### Login User @@ -222,16 +230,10 @@ supermq-cli users update '{"name":"value1", "metadata":{"value2": "val supermq-cli users update tags '["tag1", "tag2"]' ``` -#### Update User Identity - -```bash -supermq-cli users update identity -``` - -#### Update User Owner +#### Update User Email ```bash -supermq-cli users update owner +supermq-cli users update email ``` #### Update User Password