Lorawan-stack: Add user management for admins to the console

Created on 27 Nov 2019  ·  6Comments  ·  Source: TheThingsNetwork/lorawan-stack

Summary

Admin users should be able to manage other users via the console

Why do we need this?

To provide user management via a web interface (currently only possible via CLI)

What is already there? What do you see now?

Nothing of that sort.

What is missing? What do you want to see?

An admin area inside the console, where admins can configure users of the deployment. This includes:

  • inviting a user
  • listing users (API still needed)
  • approving/suspending users

Environment

Console

How do you propose to implement this?

In the user dropdown (top right corner), we can add an "Admin Settings" section, which is only visible when the user has the admin flag. The user management could be a simple view, which lists all users (with search), all unapproved users and a button to invite users via email.
I'll do some quick wireframes for a POC.

Can you do this yourself and submit a Pull Request?

Yes.

console in progress uweb

All 6 comments

I'm looking into this now and I'm wondering whether this should be made part of the new Account App rather (#1422) since the management of users appears to me like a superordinate concern.

I believe it could be beneficial to group such overall admin concerns into the account app to also shape it as more of a stack/deployment configuration tool while keeping the console scoped to network-related management. We can make this accessible in the console then by adding links to the account app (preferably in the user dropdown).

Thoughts @johanstokking @htdvisser ?

My take is twofold; one is that we don't have time to wait for #1422 to get basic user management, and two is that I think that what the new account app is going to be once we defined it, is mostly about the user itself, and not about other users.

I agree with @johanstokking's comment. The account app will be for managing "your own user account", the console is for managing the network, and when you're an admin that includes the users of your network.

Pushing this to high to avoid a CLI-only user experience in the initial onboarding phase for deployments.

I would like to add a small table of unapproved users to the user management view in the console. Otherwise, the user would have to enter the user id manually.
Is it worth extending the RPCs for this? Right now we cannot filter the list RPC. Likewise, it would improve the UX a lot if one would be able to search the list of users.

We have the search RPCs for that. We already planned on adding a state filter to those.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

htdvisser picture htdvisser  ·  9Comments

kschiffer picture kschiffer  ·  7Comments

johanstokking picture johanstokking  ·  5Comments

johanstokking picture johanstokking  ·  3Comments

w4tsn picture w4tsn  ·  6Comments