You can get security settings of a content item with the getContentItemPermissions method.

Permission to run the request: Account Owner, Administrator, Organization Administrator, Publisher.

 

Parameters

ParameterTypeDescription
credentials (required)credentialsRead the description of the Credentials object.
contentItemId (required)stringID of a content item you want to get permissions of.


 

Return Value

After the request has been completed, the system returns an object with the following properties:

ParameterTypeDescription
privacystringContent item type (public or private)
usersstring[]An array of user IDs who have permissions to view the given private content item.
groupsstring[]An array of group IDs which members have permissions to view the given private content item.


 

Sample Call

<?xml version="1.0" encoding="utf-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
                   xmlns="http://ispringlearn.com/go/services/api/soap">
 <SOAP-ENV:Body>
    <GetContentItemPermissionsRequest>
      <credentials>
        <accountUrl>http://myaccount.ispringlearn.com</accountUrl>
        <email>email@email.com</email>
        <password>password</password>
      </credentials>
      <contentItemId>1234</contentItemId>
    </GetContentItemPermissionsRequest>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Sample Response

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
                   xmlns="http://ispringlearn.com/go/services/api/soap">
  <soap:Body>
    <GetContentItemPermissionsResult>
      <privacy>private</privacy>
      <useParentPermissions>false</useParentPermissions>
      <users>
        <id>1</id>
        <id>2</id>
      </users>
      <groups>
        <id>1</id>
        <id>2</id>
      </groups>
    </GetContentItemPermissionsResult>
  </soap:Body>
</soap:Envelope>