Skip to content

api auth user grant add

Alban LEROUX edited this page Mar 10, 2012 · 2 revisions

API

auth.user.grant.add

Add a grant access to a user

require admin grant access

Request example

GET http://example.com/api/get/auth.user.grant.add/json/?user=jhon&grant=admin
{
	"method"  : "auth.user.grant.add",
	"request" :
	{
		"user"  : "jhon",
		"grant" : "admin"
	}
}
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<xml>
	<method>auth.user.grant.add</method>
	<request>
		<user>jhon</user>
		<grant>admin</grant>
	</refresh>
</xml>

Response example

{
	"status"   : "valid",
	"response" :
	{
		"message" : "user have now the grant access"
    }
}
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<xml>
	<status>valid</status>
	<response>
		<message>user have now the grant access</message>
	</response>
</xml>

Arguments

  • user: the user identifier
  • grant: the grant identifier
Clone this wiki locally