Grafana API, don't get user by email

Hello.
I created a user with a plus in email: user+test@test.com.
I used “GET /api/users/lookup?loginOrEmail=user+test@test.com” API, but response “User not found” with 404 status code.
Also I tried to use “GET /api/users/search?query=user+test” API, response with empty users.

Why the API doesn’t find a user with a plus in email?

You need to encode the plus sign when used for url, url encode that is

I also used encoded url “GET /api/users/lookup?loginOrEmail=user%2Btest@test.com”, response “User not found” with 404.

user%2Btest%40test.com is URL encoded value of user+test@test.com.
Credit: https://www.urlencoder.org/

Thanks for help!:+1: