GuideReference
TrainingSupportCommunity
Guide

Users

akamai_iam_users

Get a list of all your users or all users by group.

data "akamai_iam_users" "users" {
  group_id = 12345
}

output "users" {
  value = data.akamai_iam_users.users
}
Changes to Outputs:
  + test = {
      + group_id = 12345
      + users    = [
          + {
              + account_id                           = "act_A-CCT1234"
              + actions                              = {
                  + api_client         = true
                  + can_edit_mfa       = true
                  + can_edit_none      = true
                  + can_edit_tfa       = true
                  + delete             = true
                  + edit               = true
                  + edit_profile       = true
                  + is_cloneable       = true
                  + reset_password     = true
                  + third_party_access = false
                }
              + additional_authentication            = "NONE"
              + additional_authentication_configured = false
              + auth_grants                          = [
                  + {
                      + group_id         = 112345
                      + group_name       = "My group"
                      + is_blocked       = false
                      + role_description = "This role provides the maximum access to users. An Administrator can perform admin tasks such as creating users and groups; configuration-related tasks such as creating and editing configurations; publishing tasks"
                      + role_id          = 3
                      + role_name        = "Admin"
                      + sub_groups       = []
                    },
                ]
              + email                                = "jsmith@email.com"
              + first_name                           = "John"
              + is_locked                            = false
              + last_login_date                      = "2024-09-20T21:08:48.727Z"
              + last_name                            = "Smith"
              + tfa_configured                       = false
              + tfa_enabled                          = false
              + ui_identity_id                       = "A-BC-987654"
              + ui_user_name                         = "jsmith@email.com"
            },
          + {
              + account_id                           = "act_A-CCT1234"
              + actions                              = {
                  + api_client         = true
                  + can_edit_mfa       = true
                  + can_edit_none      = true
                  + can_edit_tfa       = true
                  + delete             = true
                  + edit               = true
                  + edit_profile       = true
                  + is_cloneable       = true
                  + reset_password     = true
                  + third_party_access = false
                }
              + additional_authentication            = "NONE"
              + additional_authentication_configured = false
              + auth_grants                          = [
                  + {
                      + group_id         = 112345
                      + group_name       = "My group"
                      + is_blocked       = false
                      + role_description = "This role provides the maximum access to users. An Administrator can perform admin tasks such as creating users and groups; configuration-related tasks such as creating and editing configurations; publishing tasks"
                      + role_id          = 3
                      + role_name        = "Admin"
                      + sub_groups       = []
                    },
                ]
              + email                                = "janesmith@email.com"
              + first_name                           = "Jane"
              + is_locked                            = false
              + last_login_date                      = "2024-02-13T06:54:22.544Z"
              + last_name                            = "Smith"
              + tfa_configured                       = false
              + tfa_enabled                          = false
              + ui_identity_id                       = "A-BC-1234567"
              + ui_user_name                         = "janesmith@email.com"
            },
        ]
    }

Argument

Pass this data source empty to get a list of all of your users or narrow down the results by passing a group_id in the data block.

Attributes

AttributeDescription
ui_identity_idThe user's UI ID.
account_idThe user's account ID.
actionsThe operations you can perform on the group. Each ability is a boolean. true allows the action, and false denies it. Contains:
  • delete
  • edit
  • api_client
  • is_cloneable
  • reset_password
  • third_party_access
  • can_edit_mfa
  • can_edit_none
  • can_edit_tfa
additional_authenticationThe user's type of multi-factor authentication, if any.
additional_authentication_configuredWhether multi-factor authentication is configured for the user.
auth_grantsContains:
  • group_id. A group's ID.
  • group_name. A group's name.
  • is_blocked. Whether the user is blocked from the group.
  • role_description. A human-readable note about the role.
  • role_id. A role's ID.
  • role_name. A role's name.
  • sub_groups. A list of subgroups for the group, if any. The sub_groups list returned contains the same properties as auth_grants.
emailA user's email address.
first_nameA user's given name.
last_nameThe user's surname.
tfa_configuredWhether two-factor authentication is configured.
tfa_enabledWhether two-factor authentication is enabled.
ui_user_nameThe user's Akamai Control Center name.