ID

This section describes features that are coming in 4.0

The id condition allows you to constrain a policy statement so that it applies to entities that match
a given ID. This condition supports regular expressions, allowing you to focus in on a single ID or wildcard
expressions within an ID.

Configuration

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

Samples

This policy document grants the Consumer role to a specific piece of content with the ID 46ba5e0d79b83aac97ec.

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