-
Notifications
You must be signed in to change notification settings - Fork 0
api auth user list
Alban LEROUX edited this page Mar 10, 2012
·
3 revisions
Retrieve all users.
Retrieve all users with the grant access grant
if grant
is provided.
require admin
grant access
GET http://example.com/api/get/auth.user.list/json/?grant=write
{
"method" : "auth.user.list",
"request" : { "grant" : "write" }
}
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<xml>
<method>auth.user.list</method>
<request>
<grant>write</grant>
</request>
</xml>
{
"status" : "valid",
"response" :
{
"list" :
[
{ "user" : "willy", "name" : "willy" },
{ "user" : "jhon", "name" : "jhon" },
{ "user" : "smith", "name" : "smith" },
{ "user" : "eric", "name" : "eric" }
]
}
}
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<xml>
<status>valid</status>
<response>
<list><user>willy</user><name>willy</name></list>
<list><user>jhon</user><name>jhon</name></list>
<list><user>smith</user><name>smith</name></list>
<list><user>eric</user><name>eric</name></list>
</response>
</xml>
- [grant]: the grant access
-
list: array of user with:
- user: user identifier.
- name: user name.
auth.config.get
auth.config.set
auth.request
auth.token
auth.refresh
auth.destroy
auth.user.add
auth.user.set
auth.user.del
auth.user.get
auth.user.list
auth.entity.add
auth.entity.set
auth.entity.del
auth.entity.get
auth.entity.list
auth.grant.add
auth.grant.set
auth.grant.del
auth.grant.get
auth.grant.list