ApiManagementFga
POST
/v1/mgmt/fga/authzen/access/v1/search/resource

Authorization

Descope Project ID and Management Key
AuthorizationBearer <token>

Project ID:Management Key as bearer token.

In: header

Request Body

application/json

subject?object
action?object
resource?object

Required (spec §8.5.1): MUST carry a type (selects the namespace, echoed onto each result); the id is omitted/ignored.

context?object

Return the resources of the given type the subject may access with the given action (OpenID AuthZEN Resource Search API).

curl -X POST "https://api.descope.com/v1/mgmt/fga/authzen/access/v1/search/resource" \  -H "Content-Type: application/json" \  -d '{}'
{  "results": [    {      "type": "string",      "id": "string"    }  ]}
export interface Response {results?: {type?: string/** * optional: the searched entity in Resource Search omits its id (spec §8), so id is not required. */id?: string}[]}
Was this helpful?