ACL examples

Content Platform Tenant Management Help

Version
9.7.x
File Size
4269 KB
Audience
anonymous
Part Number
MK-95HCPH002-19

This section contains examples of an ACL in both XML and JSON formats. This ACL grants:

  • Read permission to all users
  • Write permission to the AD user lgreen that is defined in the ad.example.com domain
  • Write and delete permission to HCP user pdgrey

XML format

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<accessControlList>
    <grant>
        <grantee>
            <name>all_users</name>
            <type>group</type>
        </grantee>
        <permissions>
            <permission>READ</permission>
        </permissions>
    </grant>
    <grant>
        <grantee>
            <name>lgreen</name>
            <type>user</type>
            <domain>ad.example.com</domain>
        </grantee>
        <permissions>
            <permission>WRITE</permission>
        </permissions>
    </grant>
    <grant>
        <grantee>
            <name>pdgrey</name>
            <type>user</type>
        </grantee>
        <permissions>
            <permission>WRITE</permission>
            <permission>DELETE</permission>
        </permissions>
    </grant>
</accessControlList>

JSON format

{
    "grant": [{
        "grantee": {
            "name":"all_users",
            "type":"group"
        },
        "permissions": {
            "permission":["READ"]
        }
    }]
    "grant": [{
        "grantee": {
            "name":"lgreen",
            "type":"user",
            "domain":"ad.example.com"
        },
        "permissions": {
            "permission":["WRITE"]
        }
    }]
    "grant": [{
        "grantee": {
            "name":"pdgrey",
            "type":"user"
        },
        "permissions": {
            "permission":["WRITE","DELETE"]
        }
    }]
}