I have policies that have same prefix.
How I can get all policies that subject has same prefix:
example request : {"subjects": ["project-123:*"]}
example response:
[{
“id”: “bb657c21-d18b-4c42-b895-4e1bb6937fc1”,
“subjects”: [“project-123:mysubject”],
“resources”: [“project-123:admin”],
…
},{
“id”: “df46a381-5dfe-4844-9f54-6ea9ab7e7181”,
“subjects”: [“project-123:mysubject”],
“resources”: [“project-123:reader”],
…
}]
my sample data:
[{
“id”: “bb657c21-d18b-4c42-b895-4e1bb6937fc1”,
“subjects”: [“project-123:mysubject”],
“resources”: [“project-123:admin”],
…
},{
“id”: “df46a381-5dfe-4844-9f54-6ea9ab7e7181”,
“subjects”: [“project-123:mysubject”],
“resources”: [“project-123:reader”],
…
},{
“id”: “1bd30e4a-0ff1-401f-81d9-0b08d238fc35”,
“subjects”: [“project-456:myothersubject”],
“resources”: [“project-456:viewer”],
…
}]