diff --git a/examples/okta_app_user_profile/datasource.tf b/examples/okta_app_user_profile/datasource.tf new file mode 100644 index 000000000..9f43aa821 --- /dev/null +++ b/examples/okta_app_user_profile/datasource.tf @@ -0,0 +1,47 @@ +resource "okta_app_oauth" "test" { + label = "testAcc_replace_with_uuid" + type = "web" + grant_types = ["implicit", "authorization_code"] + redirect_uris = ["http://d.com/"] + response_types = ["code", "token", "id_token"] + issuer_mode = "ORG_URL" + + lifecycle { + ignore_changes = [users, groups] + } +} + +resource "okta_user" "test" { + first_name = "TestAcc" + last_name = "Smith" + login = "testAcc_replace_with_uuid@example.com" + email = "testAcc_replace_with_uuid@example.com" +} + +resource "okta_app_user_schema_property" "test" { + app_id = okta_app_oauth.test.id + index = "testCustom" + title = "terraform acceptance test" + type = "string" + description = "terraform acceptance test updated" + required = true + master = "OKTA" + scope = "SELF" +} + +resource "okta_app_user" "test" { + app_id = okta_app_oauth.test.id + user_id = okta_user.test.id + username = okta_user.test.email + + profile = <