Set ACL by XML π°
Update users or groups in an existing record ACL by calling the Β PUT imcc/v1/import/record/Β API endpoint or by using the XML upload tool
The <CIS_ACLList> node
<CIS_ACLList>
<!-- To add role permissions -->
<ACL>
Β <Role Rights="r">Everyone</Role>
Β Β Β <Role Rights="rw">admin@yourimagendomain.com</Role>
Β Β Β <Role Rights="read" RoleID="0"></Role>
Β Β Β <Role Rights="readwrite" RoleID="1"/>
Β </ACL> Β
<!-- to remove role permissions -->
Β <ACL Merge="1">
Β <Role RoleID="0" Rights="0"/>
Β Β Β <Role RoleID="1" Rights="0"/>
</ACL>
</CIS_ACLList>
Where does it go?
The <CIS_ACLList>Β nodes have been inserted below in an example XML file, highlighted withΒ
<*******************************************************************************************>Β
β οΈCaution: To update a record via XML the record ID must be placed at the top of the XML like so:
<ImagenRecord Id=β[ID goes here]>
π©βπ«Further reference:
The two ACL nodes cover both the record permissions and the media object permissions independently.
π‘Pro Tip: Follow this link to see the full XML reference
<?xml version="1.0" encoding="UTF-8"?>
<Records>
<ImagenRecord>
<Fields>
<Title>Test</Title>
</Fields>
<*******************************************************************************************>
Β Β Β <CIS_ACLList>
Β Β Β Β Β <!-- To add role permissions -->
Β Β Β Β Β <ACL>
Β Β Β Β Β <Role Rights="r">Everyone</Role>
Β Β Β Β Β Β Β <Role Rights="rw">admin@yourimagendomain.com</Role> Β Β Β Β Β Β Β
Β Β Β Β Β Β </ACL> Β Β
Β Β Β Β Β Β <!-- to remove role permissions -->
Β Β Β Β Β Β <ACL Merge="1">
Β Β Β Β Β Β Β Β <Role RoleID="0" Rights="0"/>
Β Β Β Β Β Β Β Β <Role RoleID="1" Rights="0"/>
Β Β Β Β Β Β </ACL>
Β Β Β </CIS_ACLList>
<*******************************************************************************************>
<MediaObject Version="3" ID="-1" MediaType="Video">
<*******************************************************************************************>
<CIS_ACLList>
Β Β <ACL>
Β Β Β <!-- To add role permissions -->
Β Β Β Β <Role Rights="r">Everyone</Role>
Β Β Β Β Β Β <Role Rights="rw">admin@yourimagendomain.com</Role>
Β Β Β Β Β Β <Role Rights="rd">admin@yourimagendomain.com</Role>
Β Β Β Β Β Β <Role Rights="rwd">admin@yourimagendomain.com</Role>
Β Β Β Β Β Β Β <Role Rights="read" RoleID="0"></Role>
Β Β Β Β Β Β Β <Role Rights="readwrite" RoleID="1"/>
<Role Rights="readDownload" RoleID="0"></Role>
Β Β Β Β Β Β Β <Role Rights="readwriteDownload" RoleID="0"></Role>
Β Β Β Β Β
Β Β Β Β </ACL>
Β Β Β Β <!-- to remove role permissions -->
Β Β Β Β <ACL Merge="1">
Β Β Β Β <Role RoleID="0" Rights="0"/>
Β Β Β Β Β Β <Role RoleID="1" Rights="0"/>
Β Β Β Β </ACL>
Β </CIS_ACLList> Β Β
<*******************************************************************************************>
<Name></Name> <!-- Name of this media object -->
<MediaElement MediaType="" Index="" ProfileID="nnnn">
<OriginalFile></OriginalFile> <!-- UNC path\url of the original file -->
</MediaElement>
</MediaObject>
</ImagenRecord>
</Records>
Β