Type QName

This section describes features that are coming in 4.0

The type-qname condition allows you to constrain a policy statement so that it applies to content nodes that have a matching QName. This condition supports regular expressions, allowing you to focus in on a single path, sub paths or arbitrary matching path structures.

Configuration

{
    "type": "type-qname",
    "config": {
        "qname": "{value regex}"
    }
}

Sample #1

This policy document allows a principal to read content of type store:book.

{
    "title": "My Sample Policy",
    "statements": [{
        "action": "grant",
        "roles": ["consumer"],
        "conditions": [{
            "type": "type-qname",
            "config": {
                "qname": "store:book"
            }
        }]
    }]
}