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

Create Admin CLI for listing users #6001

Closed
2 of 7 tasks
randyesq opened this issue Feb 7, 2019 · 3 comments
Closed
2 of 7 tasks

Create Admin CLI for listing users #6001

randyesq opened this issue Feb 7, 2019 · 3 comments
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented type/enhancement An improvement of existing functionality

Comments

@randyesq
Copy link

randyesq commented Feb 7, 2019

  • Gitea version (or commit ref): 1.7.1
  • Git version: 2.18.1
  • Operating system: gitea docker image (alpine)
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

I would like to be able to create the first (admin) user without the Web UI. After starting up gitea with gitea web, I would like to be able to use the admin CLI to create a user. However, since I am running in a container that may be restarted at any time, it would be best to have a way to check if a user is already created before attempting to create it.

Right now, you can just do gitea admin create-user ... and if the return code is 0, it was created. If it is 1, then the user may exist, or something else may have gone wrong. It would be better to be able to have a command that lists users instead of having to try and create it to see if it already exists.
...

Screenshots

@adelowo
Copy link
Member

adelowo commented Feb 7, 2019

So I am thinking something like admin list with flags like --name "oops" ( to use as a query to search for related users). But how would this deal with pagination if say 200 users exist, looks like a whole lot of data to fit in at once.

@lunny lunny added the type/enhancement An improvement of existing functionality label Feb 8, 2019
@stale
Copy link

stale bot commented Apr 9, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale stale bot added the issue/stale label Apr 9, 2019
@lunny lunny added the issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented label Apr 9, 2019
@stale stale bot removed the issue/stale label Apr 9, 2019
ydelafollye pushed a commit to ydelafollye/gitea that referenced this issue Feb 27, 2020
- add user subcommand
- add list, create, delete, change-password microcommands
- delete create-user and change-password subcommands
techknowlogick pushed a commit that referenced this issue Oct 16, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
* Fix images in wiki edit preview (#11546)

Make sure wiki editor sets wiki to true so gitea renders it as a wiki page.

Also change the context data attr for edit form. This looks wrong but everywhere else in our code assumes the urlPrefix to be just the repo url when rendering and manually adds /wiki to the rendered url regardless.

Fixes #11540
ivanvc added a commit to ivanvc/gitea that referenced this issue Oct 16, 2020

Verified

This commit was signed with the committer’s verified signature.
ivanvc Iván Valdés Castillo
…ments-in-pull-request-label-style

* origin/master:
  [skip ci] Updated translations via Crowdin
  Fix diff skipping lines (go-gitea#13154)
  Update go-version v1.2.3 -> v1.2.4 (go-gitea#13169)
  Vendor Update Go Libs (go-gitea#13166)
  Prevent panics with missing storage (go-gitea#13164)
  Improve users management through the CLI (go-gitea#6001) (go-gitea#10492)
  Change order of possible-owner organizations to alphabetical (go-gitea#13160)
  Slightly simplify the queue settings code to help reduce the risk of problems (go-gitea#12976)
  [Vendor] Update go-ldap to v3.2.4 (go-gitea#13163)
  [skip ci] Updated translations via Crowdin
  Update external-renderers.en-us.md (go-gitea#13165)
@jolheiser
Copy link
Member

Resolved by #10492

@go-gitea go-gitea locked and limited conversation to collaborators May 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented type/enhancement An improvement of existing functionality
Projects
None yet
Development

No branches or pull requests

4 participants