I am using openstack api as given below:
curl -i -X GET "https://cloud.lab.fiware.org:5000/v3/users?name=username" -H "X-Auth-token:token"
However, it doesn't return me any result. It gives 403 error code as Forbidden.
Please find the below response
HTTP/1.1 403 Forbidden Server: nginx/1.4.6 (Ubuntu) Date: Wed, 30 Jan 2019 10:55:04 GMT Content-Type: application/json Content-Length: 136 Connection: keep-alive Vary: X-Auth-Token X-Distribution: Ubuntu X-Openstack-Request-Id: req-9948991c-83f2-452b-b942-2ff3d5a9c5eb
{"error": {"message": "You are not authorized to perform the requested action: identity:list_users", "code": 403, "title": "Forbidden"}}
Just admin privilege could get list of users: "As an administrator, you manage projects, users, and roles." ( from https://docs.openstack.org/keystone/pike/admin/cli-manage-projects-users-and-roles.html)