I want to take up this issue because funny number, but it looks like we need to implement a new API endpoint to get a user's groups? Or we can include the user's groups in the response of GET /api/members/username, but I don't know if this will break existing use of the endpoint.
I want to take up this issue because funny number, but it looks like we need to implement a new API endpoint to get a user's groups? Or we can include the user's groups in the response of `GET /api/members/username`, but I don't know if this will break existing use of the endpoint.
$ python -m ceo members get ctdalek
uid: ctdalek
full name: Calum Dalek
first name: Calum
last name: Dalek
program: MAT/Mathematics Computer Science
UID number: 20001
GID number: 20001
login shell: /bin/bash
home directory: /users/ctdalek
is a club: False
is a club rep: False
forwarding addresses:
member terms: f2021
groups: adm,office,src,staff,syscom
This is the CLI output. Let me know if the formatting needs to be changed.
```
$ python -m ceo members get ctdalek
uid: ctdalek
full name: Calum Dalek
first name: Calum
last name: Dalek
program: MAT/Mathematics Computer Science
UID number: 20001
GID number: 20001
login shell: /bin/bash
home directory: /users/ctdalek
is a club: False
is a club rep: False
forwarding addresses:
member terms: f2021
groups: adm,office,src,staff,syscom
```
This is the CLI output. Let me know if the formatting needs to be changed.
When running
ceo members get ctdalek
, show ctdalek's groups as well.I want to take up this issue because funny number, but it looks like we need to implement a new API endpoint to get a user's groups? Or we can include the user's groups in the response of
GET /api/members/username
, but I don't know if this will break existing use of the endpoint.We can include it.
This is the CLI output. Let me know if the formatting needs to be changed.
The formatting is fine!