Hi <!everyone>, we have just released support for ...
# announcements
a
Hi @everyone, we have just released support for Condition Set Inheritance. Condition sets (ABAC sets) can now inherit their conditions from other condition sets. You can use Condition Set Inheritance to reduce repetition in you conditions, by stating conditions shared by multiple sets in one place. • The effective conditions of a condition set X are the intersection (logical AND) of all conditions from its ancestor condition sets. • It means if userset
paying_us_admins
inherits from
paying_us_users
- the child condition set (
paying_us_admins
) represents a smaller (or narrower) set of users. • When you edit a condition sets, all of its descendants will be immediately updated with the new conditions. • If you delete a parent condition set, all descendant condition sets will be automatically deleted. • Limitations: user sets can only inherit from user sets, and resource sets can only inherit from resource sets. API Docs: https://docs.permit.io/api/working-with-abac/condition-sets#condition-set-hierarchy
Copy code
{
    "key": "private_archived_repos",
    "name": "Private Archived Repositories",
    "type": "resourceset",
    "conditions": {...},

    "parent_id": "private_repositories" // <- can accept the parent condition set *id* or the parent condition set *key*
}
Also supported in the Permit Dashboard (attached screenshot).
💪🏻 1
🙌 3
check 4
💪 5