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

auth0 users blocks list <user-id> and auth0 users blocks unblock <user-id> should allow name and email as indefier #804

Open
6 tasks done
msmolka opened this issue Aug 18, 2023 · 1 comment
Labels
feature request A feature has been asked for or suggested by the community good first issue Good for newcomers

Comments

@msmolka
Copy link

msmolka commented Aug 18, 2023

Checklist

  • I have looked into the README and have not found a suitable solution or answer.
  • I have looked into the documentation and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have upgraded to the latest version of this project and the issue still persists.
  • I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • I agree to the terms within the Auth0 Code of Conduct.

Description

Unblock user should be possible also via username and user email. currently only user id is possible.
management API uses additional identifiers:

Get blocks by identifier

Retrieve a list of blocked IP addresses for a given identifier (e.g., username, phone number or email).
Endpoint
GET /api/v2/user-blocks

Expectation

the cli is consitent with management api

Reproduction

give command auth0 users blocks list some@example.com
should return blocks for given user
but returning error:
failed to list user blocks for user with ID some@example.com: 400 Bad Request: Path validation error: 'Object didn't pass validation for format user-id: kirill.owen@bigchange.com' on property id (user_id of the user blocks to retrieve).

Auth0 CLI version

1.0.1

@msmolka msmolka added the bug This points to a verified bug in the code label Aug 18, 2023
@willvedd willvedd added feature request A feature has been asked for or suggested by the community and removed bug This points to a verified bug in the code labels Sep 13, 2023
@willvedd
Copy link
Contributor

Appreciate the feedback, I agree that you should be able to block and unblock users using alternative identifiers. Marking this as a feature request for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request A feature has been asked for or suggested by the community good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants