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

Secondary groups names instead of their IDs in the 'oneuser show' command output #6822

Open
3 tasks
mkutouski opened this issue Dec 12, 2024 · 0 comments
Open
3 tasks

Comments

@mkutouski
Copy link
Contributor

Description
In would be convenient to have secondary groups names instead of their IDs in the oneuser show command output.
Now it looks like below:

oneuser show 2
USER 2 INFORMATION                                                              
ID              : 2                   
NAME            : testusr1            
GROUP           : users               
SECONDARY GROUPS: 1,100,101           
PASSWORD        : 5e884898da28047151d0e56f8dc6292773603d0d6aabbdd62a11ef721d1542d8
AUTH_DRIVER     : core                
ENABLED         : Yes             

but it would be more convenient to have it like that:

oneuser show 2
USER 2 INFORMATION                                                              
ID              : 2                   
NAME            : testusr1            
GROUP           : users               
SECONDARY GROUPS: users,group1,group2           
PASSWORD        : 5e884898da28047151d0e56f8dc6292773603d0d6aabbdd62a11ef721d1542d8
AUTH_DRIVER     : core                
ENABLED         : Yes                 

Use case
Whenever the cloud admin needs to get an information about user's secondary groups

Interface Changes
it does not seem like some interface changes are required. One just need to add some kind of additional command like switch either to enable secondary group names or if it will be by default then some switch might be required to have previous behavior in the sake of backward compatibility.

Additional context
man oneuser mentions -n switch but

  1. it's not clear which command it applies for (it does not work with list, show);
  2. it seems like that switch is aimed to do reverse thing: convert group/user names to their numeric format.

Progress Status

  • Code committed
  • Testing - QA
  • Documentation (Release notes - resolved issues, compatibility, known issues)
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