---
updatedAt: 2026-03-01T18:32:09.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/terraform/llms.txt
---

# Roles

akamai_iam_roles

Get roles for the current account and contract type.

```json Query
data "akamai_iam_roles" "my_roles" {
}

output "my_roles" {
  value = data.akamai_iam_roles.my_roles
}
```
```json Standard output
my_roles = {
      id    = "akamai_iam_roles"
      roles = [
          {
              created_by    = "jsmith"
              description   = "This role lets users edit or create reports."
              modified_by   = "jsmith"
              name          = "Edit Reports"
              role_id       = "123456"
              time_created  = "2023-08-01T17:41:22.000Z"
              time_modified = "2023-08-01T17:41:22.000Z"
              type          = "custom"
            },
          {
              created_by    = "Akamai"
              description   = "Admin role for Marketplace Direct Contract."
              modified_by   = "Akamai"
              name          = "Admin-Marketplace"
              role_id       = "987654"
              time_created  = "2023-07-26T19:17:50.000Z"
              time_modified = "2023-07-26T19:37:25.000Z"
              type          = "standard"
            },
        ]
    }
```

## Arguments

The data source is passed empty. The `config_section` argument in the Akamai `provider` block of your Terraform configuration provides the necessary information.

## Attributes

Returned to you is a `roles` set with a list of roles available to you and their high-level details.

[block:parameters]
{
  "data": {
    "h-0": "Attribute",
    "h-1": "Description",
    "0-0": "`role_id`",
    "0-1": "The role's ID.",
    "1-0": "`name`",
    "1-1": "The role's name.",
    "2-0": "`description`",
    "2-1": "The role's description.",
    "3-0": "`type`",
    "3-1": "The role type. Possible values: <ul><li><code>standard</code>. A role defined by Akamai. You can't modify or delete this type of role.</li><li><code>custom</code>. A role created by a user of your account.</li></ul>",
    "4-0": "`time_created`",
    "4-1": "The ISO 8601 timestamp indicating when the role was originally created.",
    "5-0": "`time_modified`",
    "5-1": "The ISO 8601 timestamp indicating when the role was last updated.",
    "6-0": "`modified_by`",
    "6-1": "The name of the user who last edited the role.",
    "7-0": "`created_by`",
    "7-1": "The name of the user who created the role."
  },
  "cols": 2,
  "rows": 8,
  "align": [
    "left",
    "left"
  ]
}
[/block]

# Sibling pages

* [Accessible groups](https://techdocs.akamai.com/terraform/docs/iam-ds-access-grps.md)
* [Account switch keys](https://techdocs.akamai.com/terraform/docs/iam-ds-asks.md)
* [Allowed APIs](https://techdocs.akamai.com/terraform/docs/iam-ds-allowed-apis.md)
* [API client](https://techdocs.akamai.com/terraform/docs/iam-ds-api-client.md)
* [API clients](https://techdocs.akamai.com/terraform/docs/iam-ds-api-clients.md)
* [Authorized users](https://techdocs.akamai.com/terraform/docs/iam-ds-auth-users.md)
* [Blocked properties](https://techdocs.akamai.com/terraform/docs/iam-ds-blocked-props.md)
* [CIDR block](https://techdocs.akamai.com/terraform/docs/iam-ds-cidr-block.md)
* [CIDR blocks](https://techdocs.akamai.com/terraform/docs/iam-ds-cidr-blocks.md)
* [Contact types](https://techdocs.akamai.com/terraform/docs/iam-ds-contact-types.md)
* [Countries](https://techdocs.akamai.com/terraform/docs/iam-ds-countries.md)
* [Grantable roles](https://techdocs.akamai.com/terraform/docs/iam-ds-grantable-roles.md)
* [Group](https://techdocs.akamai.com/terraform/docs/iam-ds-group.md)
* [Groups](https://techdocs.akamai.com/terraform/docs/iam-ds-groups.md)
* [Password policy](https://techdocs.akamai.com/terraform/docs/iam-ds-password-policy.md)
* [Property users](https://techdocs.akamai.com/terraform/docs/property-users.md)
* [Role](https://techdocs.akamai.com/terraform/docs/iam-ds-role.md)
* [States](https://techdocs.akamai.com/terraform/docs/iam-ds-states.md)
* [Supported languages](https://techdocs.akamai.com/terraform/docs/iam-ds-supported-languages.md)
* [Time zones](https://techdocs.akamai.com/terraform/docs/iam-ds-timezones.md)
* [Timeout policies](https://techdocs.akamai.com/terraform/docs/iam-ds-timeout-policies.md)
* [User](https://techdocs.akamai.com/terraform/docs/iam-ds-user.md)
* [Users](https://techdocs.akamai.com/terraform/docs/iam-ds-users.md)
* [Users affected by moving group](https://techdocs.akamai.com/terraform/docs/iam-ds-users-affected-by-moving-group.md)