From 67d9c1e0b45114b3530cd3883108d7ecca99a842 Mon Sep 17 00:00:00 2001 From: nyagamunene Date: Tue, 7 Jan 2025 11:19:52 +0300 Subject: [PATCH 1/7] fix parameters needed to create users Signed-off-by: nyagamunene --- docs/cli.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/cli.md b/docs/cli.md index bbbc80a..f025cdf 100644 --- a/docs/cli.md +++ b/docs/cli.md @@ -174,9 +174,9 @@ 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 ``` #### Login User From 81998339f32cace83d66dedb29f395c2a4bd6210 Mon Sep 17 00:00:00 2001 From: nyagamunene Date: Tue, 7 Jan 2025 12:00:51 +0300 Subject: [PATCH 2/7] rename username Signed-off-by: nyagamunene --- docs/cli.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/cli.md b/docs/cli.md index f025cdf..5b86352 100644 --- a/docs/cli.md +++ b/docs/cli.md @@ -174,9 +174,9 @@ 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 ``` #### Login User From e00398ad45e56f34ac143ddb322555fdd6de4744 Mon Sep 17 00:00:00 2001 From: nyagamunene Date: Tue, 7 Jan 2025 14:13:35 +0300 Subject: [PATCH 3/7] add example Signed-off-by: nyagamunene --- docs/cli.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/cli.md b/docs/cli.md index 5b86352..dacd9c6 100644 --- a/docs/cli.md +++ b/docs/cli.md @@ -179,6 +179,12 @@ supermq-cli users create ``` +For example: + +```bash +supermq-cli users create John Doe johndoe@example.com johndoe 12345678 +``` + #### Login User ```bash From 8c9b5655476b43c457c46dff13e24318c5839ce5 Mon Sep 17 00:00:00 2001 From: nyagamunene Date: Tue, 7 Jan 2025 14:14:45 +0300 Subject: [PATCH 4/7] add example Signed-off-by: nyagamunene --- docs/cli.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/cli.md b/docs/cli.md index dacd9c6..ba3b264 100644 --- a/docs/cli.md +++ b/docs/cli.md @@ -182,7 +182,7 @@ supermq-cli users create ``` #### Login User From 7e8591a96f3b4749a27a5bcc60953a20a6c1c7c6 Mon Sep 17 00:00:00 2001 From: nyagamunene Date: Tue, 7 Jan 2025 14:15:28 +0300 Subject: [PATCH 5/7] add example Signed-off-by: nyagamunene --- docs/cli.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/cli.md b/docs/cli.md index ba3b264..ff3c3d0 100644 --- a/docs/cli.md +++ b/docs/cli.md @@ -182,6 +182,8 @@ supermq-cli users create ``` From 7df7b5929304a9c36a9c6f3a30f5f6c48af28e97 Mon Sep 17 00:00:00 2001 From: nyagamunene Date: Wed, 8 Jan 2025 11:33:26 +0300 Subject: [PATCH 6/7] fix update email Signed-off-by: nyagamunene --- docs/cli.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/cli.md b/docs/cli.md index ff3c3d0..1583425 100644 --- a/docs/cli.md +++ b/docs/cli.md @@ -230,10 +230,10 @@ supermq-cli users update '{"name":"value1", "metadata":{"value2": "val supermq-cli users update tags '["tag1", "tag2"]' ``` -#### Update User Identity +#### Update User Email ```bash -supermq-cli users update identity +supermq-cli users update email ``` #### Update User Owner From 74369f74a2452d16d06c18d12373c8ce5e1fe60f Mon Sep 17 00:00:00 2001 From: nyagamunene Date: Wed, 8 Jan 2025 11:37:09 +0300 Subject: [PATCH 7/7] remove owner command Signed-off-by: nyagamunene --- docs/cli.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/docs/cli.md b/docs/cli.md index 1583425..463f76b 100644 --- a/docs/cli.md +++ b/docs/cli.md @@ -236,12 +236,6 @@ supermq-cli users update tags '["tag1", "tag2"]' supermq-cli users update email ``` -#### Update User Owner - -```bash -supermq-cli users update owner -``` - #### Update User Password ```bash