Changeset

This section describes features that are coming in 4.0

The changeset condition allows you to constrain a policy statement so that it applies to nodes and/or associations that are written onto a matching changeset. The changeset can be matched using its ID (_doc).

This condition supports regular expressions, allowing you to focus in on a single value or wildcard expressions for matches.

Configuration

To match a changeset by ID:

{
    "type": "changeset",
    "config": {
        "id": "{value regex}"
    }
}

Samples

This policy document grants the Consumer role to a specific piece of content if it resides within the changeset with ID 46ba5e0d79b83aac97ec.

{
    "title": "My Sample Policy",
    "statements": [{
        "action": "grant",
        "roles": ["consumer"],
        "conditions": [{
            "type": "changeset",
            "config": {
                "id": "46ba5e0d79b83aac97ec"
            }
        }]
    }]
}