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

Ability to view users in a group #6422

Closed
candlerb opened this issue May 15, 2021 · 1 comment
Closed

Ability to view users in a group #6422

candlerb opened this issue May 15, 2021 · 1 comment
Assignees
Labels
status: accepted This issue has been accepted for implementation type: feature Introduction of new functionality to the application

Comments

@candlerb
Copy link
Contributor

candlerb commented May 15, 2021

NetBox version

v2.11.3

Feature type

Change to existing functionality

Proposed functionality

At the moment if you go to /admin/users/admingroup/ you can see the number of users who are in each group. However unless I am being dense, I cannot see any way to list who those users are (apart from clicking into every single user, one by one)

I think the obvious place to do this would be to add a "group view" page, e.g. /admin/users/admingroup/1/. Currently there is only /admin/users/admingroup/1/change/, and that only lets you change permissions on a group.

(As an extension, it would be nice to be able to add/remove users here too, as it would make it easier to add users en-masse into a group, rather than going into each user one by one)

Use case

When changing the permissions for group X, I want to see which users will be potentially affected so I can check with them.

As a workaround I can do a direct SQL query, but I don't think that should be required:

select g.name,u.username from auth_group g, auth_user u, auth_user_groups ug
where g.id=ug.group_id and u.id=ug.user_id and u.is_active order by g.id,u.username;

Database changes

None

External dependencies

None

@candlerb candlerb added the type: feature Introduction of new functionality to the application label May 15, 2021
@DanSheps DanSheps added the status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation label May 17, 2021
@jeremystretch jeremystretch added status: accepted This issue has been accepted for implementation and removed status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation labels May 25, 2021
@jeremystretch jeremystretch self-assigned this May 25, 2021
@jeremystretch
Copy link
Member

I'm going to add the ability to filter the users list by assigned group. This should be sufficient until we replace the admin UI entirely under #6466.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: accepted This issue has been accepted for implementation type: feature Introduction of new functionality to the application
Projects
None yet
Development

No branches or pull requests

3 participants