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

CLI Command to get User-ID and Space-ID #5602

Open
mmattel opened this issue Feb 20, 2023 · 4 comments
Open

CLI Command to get User-ID and Space-ID #5602

mmattel opened this issue Feb 20, 2023 · 4 comments
Labels
Category:Enhancement Add new functionality Priority:p3-medium Normal priority

Comments

@mmattel
Copy link
Contributor

mmattel commented Feb 20, 2023

While documenting search how to reindex a space (cli command), I came across the point that we need as parameters a user-ID and space-ID as parameters. But getting these ID's is, except when using a browser console and then only for non-home spaces the admin has access to, currently not possible.

Here is a proposal to get around this situation:
We need to implement a CLI command (similar to nslookup) that resolves:

  • a user name to its ID and vice versa
  • a space name to its ID and vice versa
  • prints the home-space ID of a given user-ID

@micbar @fschade @butonic @kobergj
Maybe to add this to the Infinite Scale Team Board?

@mmattel
Copy link
Contributor Author

mmattel commented Feb 23, 2023

With #5617, we add the ability to assign default role based quotas via yaml config. This config needs a role defined by its ID. Currently there is no way for an admin to get the role ID.

@micbar
Copy link
Contributor

micbar commented Feb 23, 2023

This is not so easy. In ocis there is no real command line. If we use the command line, we need to authenticate because the command line needs to call other services.

@mmattel
Copy link
Contributor Author

mmattel commented Feb 23, 2023

However we make it, take this issue as collector where particular info currently not available is further needed either for configuration or for existing (or upcoming) command lines calls.

@butonic
Copy link
Member

butonic commented Feb 23, 2023

we can create a service account for the cli ... once we get #5550 fixed ... 😞

@micbar micbar added Priority:p3-medium Normal priority and removed p3-medium labels Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category:Enhancement Add new functionality Priority:p3-medium Normal priority
Projects
None yet
Development

No branches or pull requests

3 participants