> ## Documentation Index
> Fetch the complete documentation index at: https://arize-ax.mintlify.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Resource Restrictions

> Control access to resources by restricting or unrestricting them using the Arize TypeScript SDK.

<Note>
  The `resource_restrictions` functions are currently in **ALPHA**. The API may change without notice. A one-time warning is emitted on first use.
</Note>

Restricting a resource prevents roles bound at higher hierarchy levels (space, org, account) from granting access to it. Only users with the `PROJECT_RESTRICT` permission can perform these actions. Currently only `PROJECT` resources are supported.

## Restrict a Resource

```typescript theme={null}
import { restrictResource } from "@arizeai/ax-client";

const restriction = await restrictResource({
  resourceId: "your_project_id",  // global ID of the resource to restrict
});
```

## Unrestrict a Resource

```typescript theme={null}
import { unrestrictResource } from "@arizeai/ax-client";

await unrestrictResource({
  resourceId: "your_project_id",  // global ID of the resource to unrestrict
});
```
