forked from okta/terraform-provider-okta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathusers_with_group.tf
39 lines (34 loc) · 979 Bytes
/
users_with_group.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_group" "test" {
name = "foo_replace_with_uuid"
}
resource "okta_user" "test" {
first_name = "TestAcc"
last_name = "Jones"
login = "john_replace_with_uuid@ledzeppelin.com"
email = "john_replace_with_uuid@ledzeppelin.com"
}
resource "okta_user" "test1" {
first_name = "TestAcc"
last_name = "Entwhistle"
login = "john_replace_with_uuid@thewho.com"
email = "john_replace_with_uuid@thewho.com"
}
resource "okta_user" "test2" {
first_name = "TestAcc"
last_name = "Doe"
login = "john_replace_with_uuid@unknown.com"
email = "john_replace_with_uuid@unknown.com"
}
resource "okta_user" "test3" {
first_name = "TestAcc"
last_name = "Astley"
login = "rick_astley_replace_with_uuid@rickrollin.com"
email = "rick_astley_replace_with_uuid@rickrollin.com"
}
resource "okta_group_memberships" "test" {
group_id = okta_group.test.id
users = [
okta_user.test.id,
okta_user.test1.id
]
}