---
title: "ezgh iam permissions check"
description: "Check whether you may do actions, on the organization or a resource."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.ezghcloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ezgh iam permissions check

{/* Generated by ezgh-cli's internal/tools/clidocs from the ezgh command tree. Don't edit: change the command's help in ezgh-cli and regenerate. */}

```sh
ezgh iam permissions check [action...] [--resource name] [flags]
```

Check which of the actions you're allowed, on the organization or on `--resource` (a resource name, like ezgh::org_k3f9a0x2m7qp:prj_g7h8i9j0k1l2). Without actions, lists every action you're allowed there. With actions, exits 4 if any is denied, so scripts can check first:

```text
ezgh iam permissions check projects.delete --resource "$PROJECT" && ...
```

Part of [`ezgh iam permissions`](/cli/reference/iam-permissions).

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--resource` | string |  | the resource name to check against (default: the organization) |

This command also takes the [global flags](/cli/reference#global-flags).

Source: https://docs.ezghcloud.com/cli/reference/iam-permissions-check/index.mdx
