Skip to content

Ability to view users in a group #6422

@candlerb

Description

@candlerb

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

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: featureIntroduction of new functionality to the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions