---
title: Can I Convert an Assignable Role to an Assumable Role?
url: https://docs.vultr.com/support/platform/iam/can-i-convert-an-assignable-role-to-an-assumable-role
description: Switch a Vultr IAM role type with PUT /v2/roles/{id} and role_type; bundled policies are preserved.
publish_date: 2026-03-25T15:28:02.633349Z
last_updated: 2026-10-26T23:38:02.911215Z
---

> Index of every Vultr Docs page in markdown: https://docs.vultr.com/llms.txt

Yes. An assignable role can be converted to an assumable role and vice versa via the [Vultr API](https://www.vultr.com/api/#tag/iam) using the **[Update Role](https://www.vultr.com/api/#tag/iam/operation/update-iam-role)** endpoint. The permission policies bundled in the role are preserved during conversion, only the access pattern changes.

To convert a role, send a `PUT` request to `/v2/roles/{id}` with the `role_type` field set to either `assignable` or `assumable`:

```console
$ curl -X 'PUT' 'https://api.vultr.com/v2/roles/{role_id}' \
    -H "Authorization: Bearer ${VULTR_API_KEY}" \
    -H 'Content-Type: application/json' \
    -d '{
        "role_type": "assumable",
        "max_session_duration": 7200
    }'
```

To convert the role back, set `role_type` to `assignable`. The `max_session_duration` field applies only to assumable roles and is optional. If omitted, it defaults to **3,600 seconds (1 hour)**. When specified, the value must be between **900 seconds (15 minutes)** and **43,200 seconds (12 hours)**.

## After Converting to an Assumable Role

Before an assumable role can be used, you must [create a role trust](https://docs.vultr.com/platform/iam/roles/role-trusts/how-to-create-a-role-trust) that defines who can assume it. The user assuming the role also needs the `iam.role.AssumeRole`, `iam.role.Read`, and `iam.assumedrole.Read` permissions.

Only assignable roles can be attached to groups. Assumable roles cannot be attached to groups, so review any group assignments before converting a role.
