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

/admin/users search #296

Open
echarlie opened this issue Jun 26, 2017 · 3 comments
Open

/admin/users search #296

echarlie opened this issue Jun 26, 2017 · 3 comments

Comments

@echarlie
Copy link
Member

/admin/users list gets very long with many users and multiple auth providers. It should have some search functionality.

@mutantmonkey
Copy link
Member

This could be a good introductory task for someone who is already familiar with Python and SQLAlchemy; it should not be particularly difficult and should be a low-risk change.

@Tanyaregan
Copy link

Do you still need help with this?
if so:
What are you searching through, and what do you need located?

@echarlie
Copy link
Member Author

echarlie commented Jan 5, 2018

Hi: sorry for taking so long to respond. We're always open to outside contributions.

In /admin/users, we have a list of users; we currently display the fields 'Name' (typically a realname), 'username' (a random string provided by our auth provider, coreos/dex, or a static 'login name' provided for internally-configured users), an email address, and a few other data fields (as per

<tr>
<td>{{ user.name }}</td>
<td>{{ user.username }}</td>
<td>{{ user.email }}</td>
<td>{{ user.enabled }}</td>
<td class="row-options">
{% if config.AUTH_METHOD == "local" %}
<a href="{{ url_for('admin.user_edit', id=user.id) }}" class="btn btn-default btn-sm">Edit</a>
{% endif %}
</td>
</tr>
).

For example, when I log in through our dex instance with my github account, I show up as:

Name: echarlie
Username: CggxODA0MzQxMxIGZ2l0aHVi 
Email: [email protected]

Ideally, I should be able to search any of these data values, and thus limit the displayed users, but just searching for matches in user.name would be a good start.

Does that answer your questions?

@echarlie echarlie pinned this issue Dec 30, 2018
@echarlie echarlie unpinned this issue Oct 1, 2020
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

3 participants