Show groups in CEO #69

Closed
opened 2022-08-05 15:42:45 -04:00 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 2022-10-12 01:56:46 -04:00
j23leung removed their assignment 2022-10-12 02:24:10 -04:00
Member

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

We can include it.

We can include it.
j23leung self-assigned this 2022-10-16 15:15:20 -04:00
Member
$ 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.
Author
Owner

The formatting is fine!

The formatting is fine!
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: public/pyceo#69
No description provided.