Slackbot
08/27/2025, 10:23 AMAsk Inkeep
08/27/2025, 10:23 AMLiam Taylor
08/27/2025, 10:23 AMPermit.filter_objects with this data and the rest of the required stuff, which return the filtered data set
• (if the data sent to permit is a subset of the data the full data set based on the filter_objects responseAsk Inkeep
08/27/2025, 10:23 AMfrom permit import Permit
from dotenv import load_dotenv
import os
load_dotenv()
permit = Permit(
pdp=os.getenv("PERMIT_PDP_URL") ,
token=os.getenv("PERMIT_SDK_KEY")
)
2. For ReBAC implementation, you'll need to run a local PDP container :
docker pull permitio/pdp-v2:latest
docker run -it -p 7766:7000 \
--env PDP_DEBUG=True \
--env PDP_API_KEY=<YOUR_API_KEY> \
permitio/pdp-v2:latest
The data filtering capabilities include methods like filterObjects for PDP-level filtering and functions like getUserPermissions and getAuthorizedUsers for filtering based on the information graph (1) .
Feel free to share your specific questions in the thread - I'm here to help with the implementation details!Liam Taylor
08/27/2025, 10:23 AMLiam Taylor
08/27/2025, 10:23 AMLiam Taylor
08/27/2025, 10:23 AMAsk Inkeep
08/27/2025, 10:23 AM