How to get user info? tried `/rc/api/v1/users.info?userid="user-id-here"`

the above api return dummy response

{
    "user": {
        "_id": "rocket.cat",
        "createdAt": "2021-09-09T02:13:14.638Z",
        "name": "Rocket.Cat",
        "username": "rocket.cat",
        "status": "online",
        "utcOffset": 0,
        "active": true,
        "type": "bot",
        "roles": [
            "bot"
        ],
        "avatarETag": null,
        "canViewAllInfo": true
    },
    "success": true
}

for any user

@dudanogueira can you please help

Hi! Sorry for the late response.

You are almost there:

curl -H “X-Auth-Token: V6RTUimYNgyroMFfY1zlUm2HHmke7Vj0WA99ODAOiu8”
-H “X-User-Id: avmX38wqkezv55obK”
http://localhost:3000/api/v1/users.info?**userId**=DHm5KWrYSZoQpRyyJ

check the casing for the query parameter userId

for reference:

when I call it with userId i get following even for admin user

{
    "success": false,
    "error": "Cannot set property 'canViewAllInfo' of undefined"
}

Can you reproduce this with the curl command I mentioned?

Have you tried this curl example?

can we get users from their email?

also, can we log in from the email id which we register?

Please, check this document on how to query our APIs:

Yes, you can: