You can get permissions of a content item by sending the GET request to the following URL: /content/<content_item_id>/permissions.
Permission to run the request: Account Owner, Administrator, Organization Administrator, Publisher.
Parameter | Description |
---|---|
X-Auth-Account-Url (required) | Base URL of the account, e.g. http://myaccount.ispringlearn.com |
X-Auth-Email (required) | Administrator/Publisher e-mail address. |
X-Auth-Password (required) | Administrator/Publisher password. |
After the request has been completed, the system returns the response with Code 200. The body of the response will contain xml data with security settings of a given content item.
Code | Text | Description |
---|---|---|
200 | Ok | The request has been processed successfully. |
GET /content/1/permissions HTTP/1.1 Host: api.ispringonline.com X-Auth-Account-Url: http://myaccount.ispringlearn.com X-Auth-Email: email@email.com X-Auth-Password: password |
HTTP/1.1 200 OK Server: nginx Connection: close <?xml version="1.0" encoding="UTF-8"?> <permissions> <privacy>private</privacy> <useParentPermissions>false</useParentPermissions> <users> <id>2</id> ... </users> <groups> <id>3</id> <id>4</id> ... </groups> </permissions> |