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

# nebius iam access-permit create

## Name

`nebius iam access-permit create`

Creates access permit for provided resource with provided role.\

Subject of access permit is also a parent of access permit.\

If resource is unknown - NOT\_FOUND will be thrown.\

If parent of subject is not from resource's hierarchy - NOT\_FOUND will be thrown.

## Synopsis

```
nebius iam access-permit create
  --labels
  --name
  --parent-id [required]
  --resource-id
  --resource-version
  --role
  --async
  -i, --interactive
```

## Examples

**Grant a role on a resource to a group**

```
nebius iam access-permit create \
  --parent-id <group_ID> \
  --resource-id <resource_ID> \
  --role <auditor|viewer|editor|admin|dsr.admin|...>
```

**Grant a new group access to a project**

```
export PROJECT_EDITOR_GROUP_ID=$(nebius iam group create \
  --parent-id <project_ID> \
  --name my-project-editors \
  --format json \
  | jq -r ".metadata.id")

nebius iam access-permit create \
  --parent-id $PROJECT_EDITOR_GROUP_ID \
  --resource-id <project_ID> \
  --role editor
```

**Grant a group different roles on a tenant and a secret**

```
export SECRET_EDITOR_GROUP_ID=$(nebius iam group create \
  --parent-id <tenant_ID> \
  --name my-secret-editors \
  --format json \
  | jq -r ".metadata.id")

nebius iam access-permit create \
  --parent-id $SECRET_EDITOR_GROUP_ID \
  --resource-id <tenant_ID> \
  --role viewer

nebius iam access-permit create \
  --parent-id $SECRET_EDITOR_GROUP_ID \
  --resource-id <secret_ID> \
  --role editor
```

## Options

`--labels` (string->string)

Labels associated with the resource.

`--name` (string)

Human-readable name for the resource.

`--parent-id` (string)* \[required]*

Identifier of the parent resource to which the resource belongs.

`--resource-id` (string)

Resource for granting access permit.

`--resource-version` (int64)

Version of the resource for safe concurrent modifications and consistent reads.\

Positive and monotonically increases on each resource spec change (but *not* on each change of the\

resource's container(s) or status).\

Service allows zero value or current.

`--role` (string)

Role for granting access permit.

`--async` (bool)

If set, returns operation id. Otherwise, waits for the operation to complete and returns its resource.

`-i, --interactive` (bool)

If set, suggests to insert field values in interactive mode.

## Global Options

`-h, --help` (bool)

Show this message.

`-p, --profile` (string)

Set a profile for interacting with the cloud.

`--format` (string)

Output format. Supported values: yaml|json|jsonpath|table|text.

`-f, --file` (string)

Input file. For 'update' commands automatically set --full=true.

`-c, --config` (string)

Provide path to config file.

`--debug` (bool)

Write debug logs to stderr. Commands save debug logs in the config directory under logs/, except help and shell completion.

`-I, --impersonate-service-account-id` (string)

Impersonate into the service account and use its token for a command.

`--color` (bool)

Enable colored output.

`--no-browser` (bool)

Do not open browser automatically on auth.

`--insecure` (bool)

Disable transport security.

`--auth-timeout` (duration: 2h30m10s)

Set the timeout for the request including authentication process, default is 15m0s.

`--per-retry-timeout` (duration: 2h30m10s)

Set the timeout for each retry attempt, default is 20s.

`--retries` (uint)

Set the number of retry attempts, 1 is disable retries, default is 3.

`--timeout` (duration: 2h30m10s)

Set the timeout for the main request, default is 1m0s.

`--no-check-update` (bool)

Suppress check for updates.

`--no-progress` (bool)

Suppress progress indicators and spinners.

**Input argument JSON Schema**

> [tab] Full
>
> ```json theme={null}
> {              
>   "metadata": {               
>     "labels": {                // [map]
>                                // Labels associated with the resource.
>       string: string                  
>     },
>     "name": string,            // Human-readable name for the resource.
>     "parent_id": string,       // [required]
>                                // Identifier of the parent resource to which the resource belongs.
>     "resource_version": int64  // Version of the resource for safe concurrent modifications and consistent reads.
>                                // Positive and monotonically increases on each resource spec change (but *not* on each change of the
>                                // resource's container(s) or status).
>                                // Service allows zero value or current.
>   },
>   "spec": {               
>     "resource_id": string, // [immutable]
>                            // Resource for granting access permit.
>     "role": string         // [immutable]
>                            // Role for granting access permit.
>   }
> }
> ```

> [tab] CopyPaste Friendly
>
> ```json theme={null}
> nebius iam access-permit create '
> {              
>   "metadata": {           
>     "labels": {           
>       "": ""                  
>     },
>     "name": "",           
>     "parent_id": "",      
>     "resource_version": 0 
>   },
>   "spec": {           
>     "resource_id": "",
>     "role": ""        
>   }
> }
> '
> ```

*Auto generated on 23-Nov-2026*
