GuideReference
TrainingSupportCommunity
Guide

Role

akamai_iam_role

Get details about a given role.

data "akamai_iam_role" "my_role" {
  role_id = 123456
}

output "my_role" {  
  value = data.akamai_iam_role.my_role  
}
Changes to Outputs:
  + my_role = {
      + actions          = {
          + delete = false
          + edit   = true
        }
      + created_by       = "jsmith"
      + created_date     = "2022-09-27T18:14:13Z"
      + granted_roles    = [
          + {
              + granted_role_description = "This role lets users edit or create reports."
              + granted_role_id          = 12345
              + granted_role_name        = "Edit Reports"
            },
          + {
              + granted_role_description = "Admin role for Marketplace Direct Contract."
              + granted_role_id          = 987654
              + granted_role_name        = "AMD Reports"
            },
        ]
      + modified_by      = "jmith"
      + modified_date    = "2023-03-08T14:51:04Z"
      + role_description = "Lets a user process business admin tasks."
      + role_id          = 123456
      + role_name        = "Business Admin"
      + type             = "custom"
      + users            = [
          + {
              + account_id      = "act_A-CCT1234"
              + email           = "jsmith@email.com"
              + first_name      = "John"
              + last_login_date = "2024-09-20T21:37:35.504Z"
              + last_name       = "Smith"
              + ui_identity_id  = "A-BC-987654"
            },
          + {
              + account_id      = "act_A-CCT1234"
              + email           = "janesmith@email.com"
              + first_name      = "Jane"
              + last_login_date = "2023-12-16T19:42:18.955Z"
              + last_name       = "Smith"
              + ui_identity_id  = "A-BC-1234567"
            },
        ]
    }

Arguments

Pass a role_id to get information about the role.

Attributes

Returned is a list of details about the given role.

AttributeDescription
role_idThe role's ID
actionsThe operations you can perform on the role.
  • delete. Whether you can delete the role.
    • true allows you to delete the role.
    • false means you can't.
  • edit. Whether you can edit the role.
    • true allows you to update the role.
    • false means you can't.
created_byThe user who created the role.
created_dateThe role's creation date in ISO 8601 format.
modified_byThe user who last modified the role.
modified_dateThe role's modification date in ISO 8601 format.
role_descriptionA human-readable note about the role.
role_nameThe role's name.
typeThe role type. Possible values:
  • standard. A role defined by Akamai. You can't modify or delete this type of role.
  • custom. A role created by a user of your account.
granted_rolesA list of roles granted to the user. Contains:
  • granted_role_description. A human-readable note about the role.
  • granted_role_id. The granted role's ID.
  • granted_role_name. The granted role's name.
usersA list of users who are granted a given role. Contains:
  • account_id. Your account ID.
  • first_name. The user's first name.
  • last_name. The user's last name.
  • email. The user's email address.
  • last_login_date. The last time the user logged in in ISO 8601 format.
  • ui_identity_id. The user's UI login ID.