---
name: inference-iam
title: Managing IAM access for Red Hat AI Inference
description: Access to Red Hat AI Inference projects for users in your account is controlled by IBM Cloud&reg; Identity and Access Management (IAM). Every user that accesses the Red Hat AI Inference service in your account must be assigned an access policy with an IAM role. Review the following roles, actions, and more to help determine the best way to assign access to Red Hat AI Inference.
last-updated: 2026-11-23
---

> ## Documentation Index
> The table of contents for this documentation set is at https://cloud.ibm.com/docs/inference?format=markdown
> The index for all IBM Cloud docs is at: https://cloud.ibm.com/docs/llms.txt
> Use these files to discover more information as needed.

# Managing IAM access for Red Hat AI Inference
{: #iam}

Access to Red Hat AI Inference projects for users in your account is controlled by IBM Cloud&reg; Identity and Access Management (IAM). Every user that accesses the Red Hat AI Inference service in your account must be assigned an access policy with an IAM role. Review the following roles, actions, and more to help determine the best way to assign access to Red Hat AI Inference.
{: shortdesc}

The access policy that you assign users in your account determines what actions a user can perform within the context of the service or specific project that you select. The allowable actions are customized and defined by the Red Hat AI Inference as operations that are allowed to be performed on the service. Each action is mapped to an IAM platform or service role that you can assign to a user.

Make sure you also have the Viewer role for the resource groups you want to use.
{: tip}

IAM access policies enable access at different levels. Some options include the following:

- Giving Reader or Writer access to a specific Red Hat AI Inference project.
- Giving Reader or Writer access to a specific resource group that contains many Red Hat AI Inference projects.
- Giving Reader or Writer access to the entire account that contains many resource groups with many Red Hat AI Inference projects.
- Giving Viewer access to see the Red Hat AI Inference projects within a resource group.
- Giving Editor access to create Red Hat AI Inference projects.

If a specific role and its actions don't fit the use case that you're looking to address, you can [create a custom role](https://cloud.ibm.com/docs/iam?topic=iam-custom-roles&interface=ui&format=markdown#custom-access-roles) and pick the actions to include.
{: tip}

Review the following tables that outline what types of tasks each role allows for when you're working with the Red Hat AI Inference service. Platform management roles enable users to perform tasks on service resources at the platform level, for example, assign user access to the service, create or delete projects, and bind projects to applications. Service access roles enable users access to Red Hat AI Inference and the ability to call the Red Hat AI Inference's API.

| Platform role | Description |
| --- | --- |
| Viewer | As a viewer, you can view projects, but you can't modify them. |
| Operator | As an operator, you can perform platform actions required to configure and operate projects, such as viewing a service's dashboard. |
| Editor | As an editor, you can perform all platform actions except for managing the account and assigning access policies. |
| Administrator | As an administrator, you can perform all platform actions based on the resource to which this role is assigned, including assigning access policies to other users. |
| Service Configurator Reader | As a Service Configurator Reader, you can read service configurations for governance management. |
| Key Manager | As a key manager, you can perform platform actions required to manage resource keys, such as creating a new resource key. |
{: class="simple-tab-table"}
{: caption="IAM platform roles" caption-side="bottom"}
{: #iamrolesplatform}
{: tab-title="Platform roles"}
{: tab-group="IAM"}

| Service role | Description |
| --- | --- |
| Reader | As a reader, you can perform read-only actions within a service, such as viewing service-specific resources. |
| Writer | As a writer, you have permissions beyond the reader role, including creating and editing service-specific resources. |
| Manager | As a manager, you have permissions beyond the writer role to complete privileged actions as defined by the service. In addition, you can create and edit service-specific resources. |
{: class="simple-tab-table"}
{: caption="IAM service access roles" caption-side="bottom"}
{: #iamrolesservice}
{: tab-title="Service roles"}
{: tab-group="IAM"}

| Actions and events | Description | Roles |
| --- | --- | --- |
| `instructlab.dashboard.view` | View Red Hat AI Inference dashboards. | Operator, Administrator, Editor |
| `instructlab.inference.create` | Generate an OpenAI-compatible chat completion for the given messages by using the specified model. | Manager, Writer |
| `instructlab.inference.read` | Describe a chat completion by its ID. | Manager, Reader, Writer |
| `instructlab.inference.list` | List chat completions. | Manager, Reader, Writer |
| `instructlab.inference-model.read` | Get a model by its identifier. | Manager, Reader, Writer |
| `instructlab.inference-model.list` | List models by using the OpenAI API. | Manager, Reader, Writer |
| `instructlab.inference.delete` | Delete a stored chat completion. | Manager, Writer |
| `instructlab.inference-embeddings.create` | Create an embedding vector that represents the input text. | Manager, Writer |
| `instructlab.inference-session.read` | Internal APIs used for storing session read state in the console. | Manager, Reader, Writer |
| `instructlab.inference-session.list` | Internal APIs used for storing session list state for the console. | Manager, Reader, Writer |
| `instructlab.inference-session.delete` | Internal APIs used for storing session delete state in the console. | Manager, Writer |
| `instructlab.inference-session.update` | Internal APIs used for storing session update state for the console. | Manager, Writer |
{: class="simple-tab-table"}
{: caption="IAM actions" caption-side="bottom"}
{: #iamactions}
{: tab-title="Actions"}
{: tab-group="IAM"}


## Assigning access to Red Hat AI Inference by using the console
{: #assign-access}
{: ui}

You can control which users (or groups of users) in your account access your Red Hat AI Inference resources. Follow these steps to assign access in the console.

There are two common ways to assign access:

Access policies per user
:   You can manage access policies per user from the **Manage** > **Access (IAM)** > **Users** page in the console. For information about the steps to assign IAM access, see [Managing access to resources in the console](https://cloud.ibm.com/docs/iam?topic=iam-assign-access-resources&interface=ui&format=markdown#access-resources-console).

Access groups
:   Access groups are used to streamline access management by assigning access to a group once, then you can add or remove users as needed from the group to control their access. You manage access groups and their access from the **Manage** > **Access (IAM)** > **Access groups** page in the console. For more information, see [Assigning access to a group in the console](https://cloud.ibm.com/docs/iam?topic=iam-groups&interface=ui&format=markdown#access_ag).

### Assigning access to resources in the console
{: #access-resources-console}
{: ui}
{: help}
{: support}

To assign access to an individual resource in the account or access to all resources in the account, complete the following steps:

1. In the IBM Cloud console, click **Manage** > **Access (IAM)**, and select **Users** or **Manage** > **Access (IAM)**, and select **Service IDs**, depending on which identity you want to assign access.
1. Click the **Actions** icon ![List of actions icon](../icons/action-menu-icon.svg) > **Assign access** for the user or service ID that you want to assign access.
1. Select a group of services or a single service. Then, click **Next**.
1. Scope the access to the all resources in the account, or select specific resources based on attributes.
1. Click **Next**.
1. Select any combination of roles to assign, and click **Review**.
1. Click **Add** to add your policy configuration to your policy summary.
1. (Optional) Add users or service IDs to **Access groups**.
   1. Select the access groups that you want the user or service ID to belong to.
   1. Click **Add**
1. Click **Assign**.

If a user doesn't have a role on the resource group that contains the resources, they can see the resources, but can't access the resources by going to the Resource list page in the account to start working with them. Assign the Viewer role or higher on the resource group itself to ensure that a user can access the resource.
{: note}

Increased policy limits for service IDs are available for select accounts. To take advantage of the increased policy limits, assign access to Event Streams or IBM Cloud Object Storage services. You must also scope the access policies to a specific service instance, resource type, and resource ID.
{: preview}

### Assigning access within a resource group in the console
{: #access-to-resources-console}
{: ui}

To assign access to all resources in a resource group or to just one service within a resource group, complete the following steps:

1. In the IBM Cloud console, click **Manage** > **Access (IAM)**, and select **Users** or **Service IDs**, depending on which identity you want to assign access.
1. Click the user or service ID that you want to assign access, then click **Access** > **Assign access**.
1. Select a group of services or a single service. Then, click **Next**.
1. Scope the access to **Specific resources**. Select the **Resource group** attribute type and enter a resource group.
1. Click **Next**.
1. Select the access roles to manage the resource group. Then, click **Next**.
1. Select any combination of roles to assign, and click **Review**.
1. Click **Add** to add your policy configuration to your policy summary.
1. Click **Assign**.

### Assigning access to manage a resource group
{: #access-to-resource-group}
{: ui}

You can assign access to view or manage a resource group without assigning service access.

As an administrator, you might want to create an access group with the Viewer role on all resource groups. This way, when you assign access to service resources you don’t have to create additional policies for viewing resource groups. The Viewer role on a resource group is required for a user to create a service instance in that resource group.
{: note}

To assign access to a resource group without assigning service access, complete the following steps:
1. In the IBM Cloud console, click **Manage** > **Access (IAM)**, and select **Users** or **Service IDs**, depending on which identity you want to assign access.
1. Click the user or service ID that you want to assign access, then click **Access** > **Assign access**.
1. Select **Resource group only**.
1. Select **Add a condition**.
1. Select the **Resource group** attribute type and enter a resource group.
1. Click **Next**.
1. Select the access roles for viewing or managing the resource group. Then, click **Review**.
1. Click **Add** to add your policy configuration to your policy summary.
1. Click **Assign**.

You can repeat this type of policy as needed for each available resource group in the account to assign access to manage all resource groups in the account.
{: tip}

## Assigning access to Red Hat AI Inference by using the CLI
{: #assign-access-cli}
{: cli}

You can control which users or access groups in your account can access your Red Hat AI Inference resources.

There are two common ways to assign access:

Access policies per user
:   You can assign access policies to individual users.

Access groups
:   Access groups are used to streamline access management by assigning access to a group once, then you can add or remove users as needed from the group to control their access.

For step-by-step instructions for assigning, removing, and reviewing access, see [Assigning access to resources by using the CLI](https://cloud.ibm.com/docs/iam?topic=iam-assign-access-resources&interface=ui&format=markdown#access-resources-cli).

Use `instructlab` for the service name. To find the role IDs, run the `ibmcloud iam roles` command. Also, use quotations around role names that are more than one word. For example, `"Service Configuration Reader"`.

To assign access to a service ID instead of a user, use `service-policy-create` instead of `user-policy-create`. Replace the user email address with the service ID name or UUID.
{: tip}

Example command to give a user the Writer role for a specific Red Hat AI Inference project in the account.

```sh
ibmcloud iam user-policy-create name@example.com --roles Writer --service-name instructlab --attributes "serviceInstance=<service_instance_id>"
```
{: pre}

Example command to give a user the Writer role for all Red Hat AI Inference projects in the account.

```sh
ibmcloud iam user-policy-create name@example.com --roles Writer --service-name instructlab
```
{: pre}

Example command to give a user the Editor role for a specific Red Hat AI Inference project in the account.

```sh
ibmcloud iam user-policy-create name@example.com --roles Editor --service-name instructlab --attributes "serviceInstance=<service_instance_id>"
```
{: pre}

Example command to assign the Administrator role for all Red Hat AI Inference projects in the account.

```sh
ibmcloud iam user-policy-create name@example.com --roles Administrator --service-name instructlab
```
{: pre}

Example command to assign the Viewer role to all resource groups in the account.

```sh
ibmcloud iam user-policy-create name@example.com --roles Viewer --resource-type resource-group
```
{: pre}

Example command to assign the Viewer role to a specific resource group.

```sh
ibmcloud iam user-policy-create name@example.com --roles Viewer --resource-type resource-group --resource RESOURCE_GROUP_ID
```
{: pre}

Example command to give the service ID `test` the Administrator role for the members of the resource group `sample-resource-group`.

```sh
ibmcloud iam service-policy-create test --roles Administrator --resource-group-name sample-resource-group
```
{: pre}

## Assigning access to Red Hat AI Inference by using the API
{: #assign-access-api}
{: api}

There are two common ways to assign access:

Access policies per user
:   You can assign access policies to individual users.

Access groups
:   Access groups are used to streamline access management by assigning access to a group once, then you can add or remove users as needed from the group to control their access.

For step-by-step instructions for assigning, removing, and reviewing access, see [Assigning access to resources by using the API](https://cloud.ibm.com/docs/iam?topic=iam-assign-access-resources&interface=api&format=markdown) or the [Create a policy API docs](https://cloud.ibm.com/docs/apis/iam-policy-management#create-policy). Role cloud resource names (CRN) in the following table are used to assign access with the API.

Use `instructlab` for the service name, and refer to the Role CRN values table to ensure that you're using the correct value for the role. Review the following list of role CRNs.
{: tip}

| Role | CRN |
| --- | --- |
| Reader | `crn:v1:bluemix:public:iam::::serviceRole:Reader` |
| Writer | `crn:v1:bluemix:public:iam::::serviceRole:Writer` |
| Manager | `crn:v1:bluemix:public:iam::::serviceRole:Manager` |
| Viewer | `crn:v1:bluemix:public:iam::::role:Viewer` |
| Operator | `crn:v1:bluemix:public:iam::::role:Operator` |
| Editor | `crn:v1:bluemix:public:iam::::role:Editor` |
| Administrator | `crn:v1:bluemix:public:iam::::role:Administrator` |
| Service Configurator Reader | `crn:v1:bluemix:public:iam::::role:ConfigReader` |
| Key Manager | `crn:v1:bluemix:public:resource-controller::::role:KeyManager` |
{: caption="IAM role CRNs" caption-side="bottom"}

The following example assigns the `Writer` role for `instructlab`.

```curl
curl -X POST 'https://iam.cloud.ibm.com/v1/policies' -H 'Authorization: Bearer $TOKEN' -H 'Content-Type: application/json' -d '{
  "type": "access",
  "description": "Writer role for InstructLab",
  "subjects": [
    {
      "attributes": [
        {
          "name": "iam_id",
          "value": "IBMid-123453user"
        }
      ]
    }'
  ],
  "roles":[
    {
      "role_id": "crn:v1:bluemix:public:iam::::serviceRole:Writer"
    }
  ],
  "resources":[
    {
      "attributes": [
        {
          "name": "accountId",
          "value": "$ACCOUNT_ID"
        },
        {
          "name": "serviceName",
          "value": "instructlab"
        }
      ]
    }
  ]
}
```
{: curl}
{: codeblock}

### Assigning access to resources by using the API
{: #access-resources-api}
{: api}

You can assign access to an individual resource in the account or access to a list of resources in the account by calling the [IBM Cloud&reg; Identity and Access Management (IAM) Policy Management API](https://cloud.ibm.com/docs/apis/iam-policy-management#create-policy){: external} as shown in the following sample request. The sample request gives `Administrator` role access for an instance of a service:

```bash
curl -X POST 'https://iam.cloud.ibm.com/v1/policies' -H 'Authorization: Bearer $TOKEN' \
-H 'Content-Type: application/json' -d '{
  "type": "access",
  "description": "Administrator role for SERVICE_NAME's RESOURCE_NAME",
  "subjects": [
    {
      "attributes": [
        {
          "name": "iam_id",
          "value": "IBMid-123453user"
        }
      ]
    }'
  ],
  "roles":[
    {
      "role_id": "crn:v1:bluemix:public:iam::::role:Administrator"
    }
  ],
  "resources":[
    {
      "attributes": [
        {
          "name": "accountId",
          "value": "$ACCOUNT_ID"
        },
        {
          "name": "serviceName",
          "value": "$SERVICE_NAME"
        },
        {
          "name": "resource",
          "value": "$RESOURCE_NAME",
          "operator": "stringEquals"
        }
      ]
    }
  ]
}'
```
{: curl}
{: codeblock}

```java
SubjectAttribute subjectAttribute = new SubjectAttribute.Builder()
      .name("iam_id")
      .value("EXAMPLE_USER_ID")
      .build();

PolicySubject policySubjects = new PolicySubject.Builder()
      .addAttributes(subjectAttribute)
      .build();

PolicyRole policyRoles = new PolicyRole.Builder()
      .roleId("crn:v1:bluemix:public:iam::::role:Administrator")
      .build();

ResourceAttribute accountIdResourceAttribute = new ResourceAttribute.Builder()
      .name("accountId")
      .value(exampleAccountId)
      .operator("stringEquals")
      .build();

ResourceAttribute serviceNameResourceAttribute = new ResourceAttribute.Builder()
      .name("serviceName")
      .value("service")
      .operator("stringEquals")
      .build();

PolicyResource policyResources = new PolicyResource.Builder()
      .addAttributes(accountIdResourceAttribute)
      .addAttributes(serviceNameResourceAttribute)
      .build();

CreatePolicyOptions options = new CreatePolicyOptions.Builder()
      .type("access")
      .subjects(Arrays.asList(policySubjects))
      .roles(Arrays.asList(policyRoles))
      .resources(Arrays.asList(policyResources))
      .build();

Response<Policy> response = service.createPolicy(options).execute();
Policy policy = response.getResult();

System.out.println(policy);
```
{: java}
{: codeblock}

```javascript
const policySubjects = [
  {
    attributes: [
      {
        name: 'iam_id',
        value: 'exampleUserId',
      },
    ],
  },
];
const policyRoles = [
  {
    role_id: 'crn:v1:bluemix:public:iam::::role:Administrator',
  },
];
const accountIdResourceAttribute = {
  name: 'accountId',
  value: exampleAccountId,
  operator: 'stringEquals',
};
const serviceNameResourceAttribute = {
  name: 'serviceName',
  value: 'service',
  operator: 'stringEquals',
};
const policyResources = [
  {
    attributes: [accountIdResourceAttribute, serviceNameResourceAttribute]
  },
];
const params = {
  type: 'access',
  subjects: policySubjects,
  roles: policyRoles,
  resources: policyResources,
};

iamPolicyManagementService.createPolicy(params)
  .then(res => {
    examplePolicyId = res.result.id;
    console.log(JSON.stringify(res.result, null, 2));
  })
  .catch(err => {
    console.warn(err)
  });
```
{: javascript}
{: codeblock}

```python
policy_subjects = PolicySubject(
  attributes=[SubjectAttribute(name='iam_id', value='example_user_id')])
policy_roles = PolicyRole(
  role_id='crn:v1:bluemix:public:iam::::role:Administrator')
account_id_resource_attribute = ResourceAttribute(
  name='accountId', value=example_account_id)
service_name_resource_attribute = ResourceAttribute(
  name='serviceName', value='service')
policy_resources = PolicyResource(
  attributes=[account_id_resource_attribute,
        service_name_resource_attribute])

policy = iam_policy_management_service.create_policy(
  type='access',
  subjects=[policy_subjects],
  roles=[policy_roles],
  resources=[policy_resources]
).get_result()

print(json.dumps(policy, indent=2))
```
{: python}
{: codeblock}

```go
subjectAttribute := &iampolicymanagementv1.SubjectAttribute{
  Name:  core.StringPtr("iam_id"),
  Value: core.StringPtr("exampleUserID"),
}
policySubjects := &iampolicymanagementv1.PolicySubject{
  Attributes: []iampolicymanagementv1.SubjectAttribute{*subjectAttribute},
}
policyRoles := &iampolicymanagementv1.PolicyRole{
  RoleID: core.StringPtr("crn:v1:bluemix:public:iam::::role:Administrator"),
}
accountIDResourceAttribute := &iampolicymanagementv1.ResourceAttribute{
  Name:     core.StringPtr("accountId"),
  Value:    core.StringPtr(exampleAccountID),
  Operator: core.StringPtr("stringEquals"),
}
serviceNameResourceAttribute := &iampolicymanagementv1.ResourceAttribute{
  Name:     core.StringPtr("serviceName"),
  Value:    core.StringPtr("service"),
  Operator: core.StringPtr("stringEquals"),
}
policyResources := &iampolicymanagementv1.PolicyResource{
  Attributes: []iampolicymanagementv1.ResourceAttribute{
    *accountIDResourceAttribute, *serviceNameResourceAttribute}
}

options := iamPolicyManagementService.NewCreatePolicyOptions(
  "access",
  []iampolicymanagementv1.PolicySubject{*policySubjects},
  []iampolicymanagementv1.PolicyRole{*policyRoles},
  []iampolicymanagementv1.PolicyResource{*policyResources},
)

policy, response, err := iamPolicyManagementService.CreatePolicy(options)
if err != nil {
  panic(err)
}
b, _ := json.MarshalIndent(policy, "", "  ")
fmt.Println(string(b))
```
{: go}
{: codeblock}

You can assign access to a group of services. To assign access to **All Identity and Access enabled services**, specify `serviceType` for the `name` attribute, and use the `value` `service`. To assign access to **All Account Management services**, specify `serviceType` for the `name` attribute, and use the `value` `platform_service`. To assign access to the subset of account management services **All IAM Account Management services**, specify `service_group_id` for the `name` attribute, and use the `value` `IAM`.
{: tip}

Increased policy limits for service IDs are available for select accounts. To take advantage of the increased policy limits, assign access to Event Streams or IBM Cloud Object Storage services. You must also scope the access policies to a specific service instance, resource type, and resource ID.
{: preview}

The following sample request gives a service ID `Reader` role access to an instance of Object Storage. It scopes the access to a specific service instance, resource type, and resource ID:

```bash
curl -X POST 'https://iam.cloud.ibm.com/v1/policies' -H 'Authorization: Bearer $TOKEN' -H 'Content-Type: application/json' -d '{
  "type": "access",
  "description": "Reader role for SERVICE_NAME's RESOURCE_NAME",
  "subjects": [
    {
      "attributes": [
        {
          "name": "iam_id",
          "value": "$SERVICE_ID"
        }
      ]
    }'
  ],
  "roles":[
    {
      "role_id": "crn:v1:bluemix:public:iam::::serviceRole:Reader"
    }
  ],
  "resources":[
    {
      "attributes": [
        {
          "name": "accountId",
          "value": "$ACCOUNT_ID"
        },
        {
          "name": "serviceName",
          "value": "cloud-object-storage"
        },,
        {
          "name": "serviceInstance",
          "value": "$INSTANCE_ID",
          "operator": "stringEquals"
        }
        {
          "name": "resourceType",
          "value": "$RESOURCE_TYPE",
          "operator": "stringEquals"
        },
        {
          "name": "resource",
          "value": "$RESOURCE_NAME",
          "operator": "stringEquals"
        }
      ]
    }
  ]
}'
```
{: codeblock}

### Assigning access within a resource group by using the API
{: #access-resourcegroups-api}
{: api}

This action can be done only through the UI or CLI. To see the steps, switch to the UI or CLI instructions.