Permit Support Automation
08/28/2025, 11:26 AMAsk Inkeep
08/28/2025, 11:26 AMAsk Inkeep
08/28/2025, 11:26 AM{
"key": "us_based_employees",
"name": "US based employees",
"type": "userset",
"conditions": {
"allOf": [
{
"user.role": {
"equals": "employee"
}
},
{
"user.location": {
"in": [
"US"
]
}
}
]
}
}
For *Resource Sets*, you define conditions that match resources :
{
"key": "private_repositories",
"name": "Private Repositories",
"type": "resourceset",
"conditions": {
"allOf": [
{
"resource.type": {
"equals": "repository"
}
},
{
"resource.access": {
The Node.js SDK provides a create method for condition sets (2) :
create(conditionSetData: ConditionSetCreate) : Promise<ConditionSetRead>;
And the Ruby SDK shows the API endpoint structure (3) :
def create_condition_set(proj_id, env_id, condition_set_create, opts = {})
data, _status_code, _headers = create_condition_set_with_http_info(proj_id, env_id, condition_set_create, opts)
data
end
The creation requires specifying the project ID and environment ID along with the condition set data .Ask Inkeep
08/28/2025, 11:32 AM