This endpoint lists the usergroups configured on SPS, and the privileges (ACLs) of each group.
Note that currently you cannot edit the privileges (ACLs) of the groups using the REST API. If you change the privileges of a usergroup on the SPS web interface, the changes will apply to the users when they authenticate again on SPS, the privileges of active sessions are not affected.
URL
GET https://<IP-address-of-SPS>/api/configuration/aaa/acls
Cookies
| Cookie name | Description | Required | Values |
|---|---|---|---|
| session_id | Contains the authentication token of the user | Required |
The value of the session ID cookie received from the REST server in the authentication response, for example, a1f71d030e657634730b9e887cb59a5e56162860. For details on authentication, see Authenticate to the SPS REST API. Note that this session ID refers to the connection between the REST client and the SPS REST API. It is not related to the sessions that SPS records (and which also have a session ID, but in a different format). |
Sample request
The following command lists the local users.
curl --cookie cookies https://<IP-address-of-SPS>/api/configuration/aaa/acls
Response
The following is a sample response received when querying the endpoint.
For details of the meta object, see Message format.
{
"body": [
{
"group": "basic-view",
"objects": [
"/special/basic"
],
"permission": "read"
},
{
"group": "basic-write",
"objects": [
"/special/basic"
],
"permission": "write"
},
{
"group": "auth-view",
"objects": [
"/special/auth"
],
"permission": "read"
},
{
"group": "auth-write",
"objects": [
"/special/auth"
],
"permission": "write"
},
{
"group": "search",
"objects": [
"/special/searchmenu"
],
"permission": "read"
},
{
"group": "changelog",
"objects": [
"/special/changelog"
],
"permission": "read"
},
{
"group": "policies-view",
"objects": [
"/special/pol"
],
"permission": "read"
},
{
"group": "policies-write",
"objects": [
"/special/pol"
],
"permission": "write"
},
{
"group": "ssh-view",
"objects": [
"/special/ssh"
],
"permission": "read"
},
{
"group": "ssh-write",
"objects": [
"/special/ssh"
],
"permission": "write"
},
{
"group": "rdp-view",
"objects": [
"/special/rdp"
],
"permission": "read"
},
{
"group": "rdp-write",
"objects": [
"/special/rdp"
],
"permission": "write"
},
{
"group": "telnet-view",
"objects": [
"/special/telnet"
],
"permission": "read"
},
{
"group": "telnet-write",
"objects": [
"/special/telnet"
],
"permission": "write"
},
{
"group": "vnc-view",
"objects": [
"/special/vnc"
],
"permission": "read"
},
{
"group": "vnc-write",
"objects": [
"/special/vnc"
],
"permission": "write"
},
{
"group": "indexing",
"objects": [
"/special/search/search",
"/special/bap"
],
"permission": "write"
},
{
"group": "ica-view",
"objects": [
"/special/ica"
],
"permission": "read"
},
{
"group": "ica-write",
"objects": [
"/special/ica"
],
"permission": "write"
},
{
"group": "api",
"objects": [
"/special/rpcapi"
],
"permission": "write"
},
{
"group": "http-view",
"objects": [
"/special/http"
],
"permission": "read"
},
{
"group": "http-write",
"objects": [
"/special/http"
],
"permission": "write"
},
{
"group": "indexer-view",
"objects": [
"/special/indexer"
],
"permission": "read"
},
{
"group": "indexer-write",
"objects": [
"/special/indexer"
],
"permission": "write"
},
],
"key": "acls",
"meta": {
"first": "/api/configuration/aaa/acls",
"href": "/api/configuration/aaa/acls",
"last": "/api/configuration/aaa/settings",
"next": "/api/configuration/aaa/local_database",
"parent": "/api/configuration/aaa",
"previous": null,
"transaction": "/api/transaction"
}
}
| Element | Type | Description | |
|---|---|---|---|
| body | Top level element (JSON object) | Contains the properties of the user. | |
| group | string | The name of the usergroup. | |
| objects | list | The list of privileges that the group has access to. | |
| permission | read | write | The type of the permission. The group needs write access to configure an object, or to perform certain actions. |
Status and error codes
The following table lists the typical status and error codes for this request. For a complete list of error codes, see Application level error codes.
| Code | Description | Notes |
|---|---|---|
| 401 | Unauthenticated | The requested resource cannot be retrieved because the client is not authenticated and the resource requires authorization to access it. The details section contains the path that was attempted to be accessed, but could not be retrieved. |
| 401 | AuthenticationFailure | Authenticating the user with the given credentials has failed. |
| 404 | NotFound | The requested object does not exist. |