GuideReference
TrainingSupportCommunity
Guide

User

akamai_iam_user

Create a new user and manage their data on the Akamai platform.

📘

To delete a record, use terraform destroy.

resource "akamai_iam_user" "my_user" {
  first_name      = "John"
  last_name       = "Smith"
  email           = "jsmith@example.com"
  country         = "USA"
  address         = "5th Avenue"
  city            = "New York"
  state           = "TBD"
  zip_code        = "12345"
  phone           = "+19876543219"
  enable_tfa      = true
  contact_type    = "Business Decision Maker"
  job_title       = "Consultant"
  time_zone       = "America/New_York"
  session_timeout = 900
  auth_grants_json = jsonencode([
    {
      roleId  = 12
      groupId = 123456
    },
    {
      roleId  = 3456
      groupId = 789123
    }
  ])
}

Arguments

ArgumentRequiredDescription
first_name✔️The user's first name.
last_name✔️The user's last name.
email✔️The user's email address.
country✔️As part of the user's location, the value can be any that are available from the view-supported-countries operation.
phoneThe user's mobile phone number in ITU-T E.164 format, that is,+<country-code><area-code><subscriber-number>. For example, +3551234567891 or +441234567891.
For Canadian and US phone numbers, you can provide them with a +<country-code>(for example, +11234567891) or without a +<country-code> as a ten-digit integer within a string (for example, 1234567891).
enable_tfa✔️Indicates whether two-factor authentication is configured.
  • true enables two-factor authentication.
  • false disables it.
auth_grants_json✔️A user's per-group role assignments in JSON format.
contact_typeTo help characterize the user, the value can be any that are available from the view-contact-types operation.
job_titleThe user's position at the company.
time_zoneThe user's time zone. The default is GMT. The value can be any that are available from the view-time-zones operation.
secondary_emailThe user's secondary email address.
mobile_phoneThe user's mobile phone number in ITU-T E.164 format, that is,+<country-code><area-code><subscriber-number>. For example, +3551234567891 or +441234567891.
For Canadian and US phone numbers, you can provide them with a +<country-code>(for example, +11234567891) or without a +<country-code> as a ten-digit integer within a string, for example, 1234567891.
addressThe user's street address.
cityThe city where the user is located.
stateThe state where the user is located. The value can be any that are available from the view-states operation. If the user's state or province is unknown, use the TBD value.
zip_codeThe user's five-digit ZIP code.
preferred_languageThe user's language. The default is English. The value can be any that are available from the view-languages operation.
session_timeoutThe number of seconds it takes for the user's Control Center session to time out if there hasn't been any activity. The default is 64800. The value can be any that are available from view-timeout-policies operation.
lockIndicates whether to block a user account.
  • true blocks the user account.
  • false doesn't block it.

Attributes

There is no default standard output. After creating or updating user's details, the last line of the process log contains your newly created or updated user's ID.

//create
akamai_iam_user.my_akamai_user: Creation complete after 27s [id=A-B-1234567]

//update
akamai_iam_user.my_akamai_user: Modifications complete after 15s [id=A-B-1234567]