Pratham Khodwe
10/29/2025, 12:32 PMAsk Inkeep
10/29/2025, 12:32 PMAsk Inkeep
10/29/2025, 12:32 PMAsk Inkeep
10/29/2025, 12:37 PMAsk Inkeep
10/29/2025, 12:38 PMOr Weis
10/29/2025, 1:06 PMAsk Inkeep
10/29/2025, 1:06 PMAsk Inkeep
10/29/2025, 1:06 PMattr_ prefix (1) . This feature enables you to retrieve only the roles matching specific attribute values, which can be used to associate roles with specific tenants .
Example Implementation
You can filter roles by attributes (such as marking them for specific tenants) by sending a GET request with the following format :
curl '<https://api.permit.io/v2/schema/{project}/{environment}/roles?attr_color=red&attr_access_level=high>' \
-H 'authorization: Bearer API_SECRET_KEY'
The attr_ prefix is used to identify query parameters as attribute filters . You can use multiple attributes to narrow down your search further .
This is useful when you need to filter roles based on custom attributes that your organization has defined, such as access levels, department names, or any other specific characteristics . By using role attributes to mark which tenants a role belongs to, you can effectively create tenant-specific role visibility while maintaining the centralized role schema (2) .
For more details, check the documentation on Filter Role Associations (1) which covers this API-based role attribute feature.Ask Inkeep
10/29/2025, 1:06 PM