Get Role Details

To get the details of a particular user role, use the following request:

GET /roles/:id.xml
GET /roles/:id.json

XML Request Example

curl -i -X GET -H 'Accept: application/xml' -H 'Content-type: application/xml' -u user:userpass --url http://onapp.test/roles/3.xml

JSON Request Example

curl -i -X GET -H 'Accept: application/json' -H 'Content-type: application/json' -u user:userpass --url http://onapp.test/roles/3.json

XML Output Example

<created_at type="datetime">2011-02-11T11:20:00Z</created_at>
<updated_at type="datetime">2011-02-11T13:56:44Z</updated_at>
<id type="integer">3</id>
<permissions type="array">
<label>Any action Sysadmin Tools</label>
<created_at type="datetime">2011-02-11T10:35:16Z</created_at>
<updated_at type="datetime">2011-02-11T10:35:16Z</updated_at>
<id type="integer">4</id>

For details, refer Get List of Roles section.

The role for a particular user is output on /users/:id request.