On 11/12/20 1:54 PM, Quinton Smith wrote:
Hi everyone,
W.r.t. below issue - if I could alternatively just be pointed to some
test cases / REST API group I would be grateful.
Thanks!
Quinton
---------- Forwarded message ---------
From: *Quinton Smith* <[email protected] <mailto:[email protected]>>
Date: Wed, Oct 21, 2020 at 12:51 PM
Subject: REST API - get specific user
To: <[email protected]
<mailto:[email protected]>>
Hi everyone,
I'm sure I'm missing something obvious but...
I can:
* get a list of users - GET /rest/security/usergroup/users
* create a user -POST{user_body} /rest/security/usergroup/users
* update a user - POST{user_body}/rest/security/usergroup/user/my_user
* delete a user - DELETE /rest/security/usergroup/user/my_user
I just cannot retrieve an individual user.
I've tried:
GET /rest/security/usergroup/user/my_user (405 Method Not Allowed)
GET /rest/security/usergroup/service/default/user/my_user (405 Method
Not Allowed)
GET /rest/security/usergroup/users/my_user (404 Not Found)
https://docs.geoserver.org/latest/en/api/#1.0.0/usergroup.yaml shows
that a GET to /usergroup/users/{user} should return the user's info.
eg.
curl -X GET
http://localhost:8080/geoserver/rest/security/usergroup/users/myUser -H
"accept: application/json" -H "content-type: application/json"
I haven't got a running instance at hand to try this, a 404 would mean
the user does not exist (or it might be in a user/group that call is
shown further down the page.
There are some testcases for /security/ at
https://github.com/geoserver/geoserver/tree/master/src/restconfig/src/test/java/org/geoserver/rest/security
-M
_______________________________________________
Geoserver-users mailing list
Please make sure you read the following two resources before posting to this
list:
- Earning your support instead of buying it, but Ian Turton:
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines:
http://geoserver.org/comm/userlist-guidelines.html
If you want to request a feature or an improvement, also see this:
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users