The docs do not tell the truth
diff --git a/openstack/identity/v2/users/requests.go b/openstack/identity/v2/users/requests.go
index 3faf028..7a37836 100644
--- a/openstack/identity/v2/users/requests.go
+++ b/openstack/identity/v2/users/requests.go
@@ -94,11 +94,11 @@
return res
}
-// Get requests details on a single user, either by ID or username.
-func Get(client *gophercloud.ServiceClient, identifier string) GetResult {
+// Get requests details on a single user, either by ID.
+func Get(client *gophercloud.ServiceClient, id string) GetResult {
var result GetResult
- _, result.Err = perigee.Request("GET", resourceURL(client, identifier), perigee.Options{
+ _, result.Err = perigee.Request("GET", resourceURL(client, id), perigee.Options{
Results: &result.Body,
MoreHeaders: client.AuthenticatedHeaders(),
})