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

Allow setting membership type in influx org members add #231

Closed
danxmoran opened this issue Aug 20, 2021 · 6 comments · Fixed by #402
Closed

Allow setting membership type in influx org members add #231

danxmoran opened this issue Aug 20, 2021 · 6 comments · Fixed by #402
Labels
enhancement New feature or request

Comments

@danxmoran
Copy link
Contributor

influx org members add is hard-coded to add new users to an org as a "member". We should add a way for users to be added as an "owner" (the API already supports this, so we need to add a toggle to the CLI).

influx org members list and influx org members remove may also need to be updated to account for owners as well as members.

@danxmoran danxmoran added the enhancement New feature or request label Aug 20, 2021
@russorat
Copy link

This would be really handy. Being able to add members to an org but having to use the api for owners is very annoying.

@lesam
Copy link
Contributor

lesam commented Mar 3, 2022

@DStrand1 @samhld FYI

@lesam
Copy link
Contributor

lesam commented Mar 3, 2022

Until this is implemented, you can get effectively the same thing by granting a user an all-access token on the org, since users inherit the permissions of all the tokens that the own:

influx auth create --all-access -u <userNeedingPermission> -o <theorg>

@kuzyn
Copy link

kuzyn commented May 26, 2022

Is it possible to link on how to do this with the API?

Add an owner to an organization

For everyone else's benefits:

curl --request POST --url "localhost:8086/api/v2/orgs/{orgId}/owners" --header "Authorization: Token {allAccessToken}" --data '{"id": "{userId}", "name": "{userName}"}'

The user you want to add to as own has to not be a member of the org already. This will be the case if you delete it from the organisation using the dashboard:
image

@glacieruk
Copy link

What release is this in?

@samhld
Copy link

samhld commented Jul 19, 2022

@glacieruk it hasn't been released yet. Next release!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants