-
Notifications
You must be signed in to change notification settings - Fork 0
api auth user list
Alban LEROUX edited this page Oct 3, 2011
·
3 revisions
Retrieve all users if grant is not provided.
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" :
{
"user" :
[
{ "id" : 1, "name" : "willy" },
{ "id" : 2, "name" : "jhon" },
{ "id" : 3, "name" : "smith" },
{ "id" : 4, "name" : "eric" }
]
}
}<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<xml>
<status>valid</status>
<response>
<user><id>1</id><name>willy</name></user>
<user><id>2</id><name>jhon</name></user>
<user><id>3</id><name>smith</name></user>
<user><id>4</id><name>eric</name></user>
</response>
</xml>- [grant]: the grant access
-
user: array of user with
idfor user id andnamefor 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