Show groups in CEO #69

Closed
opened 6 months ago by r389li · 4 comments
Owner

When running ceo members get ctdalek, show ctdalek's groups as well.

When running `ceo members get ctdalek`, show ctdalek's groups as well.
j23leung self-assigned this 4 months ago
j23leung removed their assignment 4 months ago
Collaborator

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.
Poster
Owner

We can include it.

We can include it.
j23leung self-assigned this 4 months ago
Collaborator
$ 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.
Poster
Owner

The formatting is fine!

The formatting is fine!
r389li closed this issue 2 months ago
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: public/pyceo#69
Loading…
There is no content yet.