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
Argument | Required | Description |
---|---|---|
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. |
phone | The 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.
|
auth_grants_json | ✔️ | A user's per-group role assignments in JSON format. |
contact_type | To help characterize the user, the value can be any that are available from the view-contact-types operation. | |
job_title | The user's position at the company. | |
time_zone | The user's time zone. The default is GMT. The value can be any that are available from the view-time-zones operation. | |
secondary_email | The user's secondary email address. | |
mobile_phone | The 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 . | |
address | The user's street address. | |
city | The city where the user is located. | |
state | The 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_code | The user's five-digit ZIP code. | |
preferred_language | The user's language. The default is English. The value can be any that are available from the view-languages operation. | |
session_timeout | The 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. | |
lock | Indicates whether to block a user account.
|
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]
Updated 7 months ago