forked from okta/terraform-provider-okta
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcustom_attributes_array.tf
39 lines (34 loc) · 1.04 KB
/
custom_attributes_array.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
resource "okta_user_schema_property" "test" {
index = "customAttribute123"
title = "terraform acceptance test"
type = "string"
master = "PROFILE_MASTER"
}
resource "okta_user_schema_property" "test_array" {
index = "array123"
title = "terraform acceptance test"
type = "array"
array_type = "string"
master = "PROFILE_MASTER"
depends_on = [okta_user_schema_property.test_number, okta_user_schema_property.test]
}
resource "okta_user_schema_property" "test_number" {
index = "number123"
title = "terraform acceptance test"
type = "number"
master = "PROFILE_MASTER"
depends_on = [okta_user_schema_property.test]
}
resource "okta_user" "test" {
first_name = "TestAcc"
last_name = "Smith"
login = "[email protected]"
email = "[email protected]"
custom_profile_attributes = <<JSON
{
"array123": ["test"],
"number123": 1
}
JSON
depends_on = [okta_user_schema_property.test_array, okta_user_schema_property.test_number]
}