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

Get users doesn't display all user information #130

Open
MorganEPatch opened this issue Oct 12, 2016 · 0 comments
Open

Get users doesn't display all user information #130

MorganEPatch opened this issue Oct 12, 2016 · 0 comments

Comments

@MorganEPatch
Copy link
Contributor

(h for help) : gu
(Optional) Username: 
(Optional) By metadata: 
(Optional) By project slug: 

username: root
active: True
display_name: root
email: None

username: patcht
active: True
display_name: Tristan Patch
email: [email protected]

The "get users" command displays the username, active, display_name, and email fields of the user object. This is missing the permissions fields (site_spectator, site_manager, site_admin, all booleans) and the meta field (which is just a string).

In particular, it would be nice if the permissions fields were condensed into one field for display, permissions, which could be a list of the permissions a user has. This is the same way that permissions are displayed for projects, as below:

(h for help) : gp
(Optional) (y/N) Allow revised?: 
(Optional) (y/N) Allow deleted?: 
(Optional) By project slug: test

slugs: test, test1
name: Test Project
users: 
    kennric <member, manager, spectator>
    patcht  <member, spectator>

So, we could display users as, e.g.:

username: patcht
active: True
display_name: Tristan Patch
email: [email protected]
permissions: <spectator>
meta: 'OSL Student Developer'

username: kennric
active: True
display_name: Ken Lett
email: [email protected]
permissions: <spectator, manager>
meta: 'OSL Lead Developer'

username: Ramereth
active: True
display_name: Lance Albertson
email: [email protected]
permissions: spectator, manager, admin>
meta: 'OSL Director'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant