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

Uncertain if specifying api-id is just unclear or broken when adding permissions to a role #348

Closed
atsvetkov opened this issue Sep 3, 2021 · 2 comments · Fixed by #357
Closed
Labels
bug This points to a verified bug in the code

Comments

@atsvetkov
Copy link

Description

When trying to add existing permissions to an existing role via CLI, I'm always getting back 404 Not Found: The resource server does not exist: '' error. The documentation is a bit unclear regarding which ID of the API needs to be passed (the system-generated one or the user-friendly one), but the command fails in both cases anyway.

Reproduction

$ auth0 roles permissions add rol_someroleid -a numeric_api_identifier -p "permission1,permission2"
OR
$ auth0 roles permissions add rol_someroleid -a user_friendly_api_identifier -p "permission1,permission2"

404 Not Found: The resource server does not exist: ''

Environment

  • auth0 version 0.10.2 711dbbd
  • Windows 10, CLI running in WSL2

When running auth0 roles permissions add in the interactive mode, selecting API, role and permission goes fine and the command successfully associates the specified permissions to role. My main question is, how to correctly specify the API identifier and what else could be causing the error? Tried this on different tenants - same result.

Thank you!

@Widcket Widcket added the needs investigation An issue that has more questions to answer or otherwise needs work to fully understand the issue label Sep 4, 2021
@Widcket
Copy link
Contributor

Widcket commented Sep 4, 2021

Hi @atsvetkov, thanks for raising this.
The command seems to work fine when done interactively:

Screen Shot 2021-09-03 at 23 52 33

Screen Shot 2021-09-03 at 23 54 34

But falls apart when done with flags:

Screen Shot 2021-09-03 at 23 56 24

I'll be taking a look a this.

@Widcket Widcket added bug This points to a verified bug in the code and removed bug This points to a verified bug in the code needs investigation An issue that has more questions to answer or otherwise needs work to fully understand the issue labels Sep 4, 2021
@Widcket
Copy link
Contributor

Widcket commented Sep 22, 2021

This is now fixed in v0.11.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This points to a verified bug in the code
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants