You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Customer ask:
Add boolean a skip_groups and skip_roles to resource okta_user so that unnecessary API calls to GET /api/v1/users/{userId}/roles and GET /api/v1/users/{userId}/groups are not made.
An example
terraform {
required_providers {
okta = {
source ="okta/okta"
}
}
}
# in test org, there are 1000 users with login starting with "testprefix-"data"okta_users""important_users" {
search {
name ="profile.login"
value ="testprefix-"
comparison ="sw"
}
}
resource"okta_group""very_important_group" {
name ="very_important_group"
skip_users =true
}
data"okta_user""very_important_group" {
for_each =toset([foruserindata.okta_users.important_users.users:user.id])
user_id = each.key# The `okta_user` data source will make additional API calls to fill in group and role information.# If fields like `skip_groups` and `skip_roles` were added, these unnecessary API calls could be avoided.# skip_groups = true# skip_roles = true
}
resource"okta_group_memberships""very_important_group" {
group_id = okta_group.very_important_group.id
users = [foruserindata.okta_user.very_important_group:user.id]
}
The text was updated successfully, but these errors were encountered:
Nice -- yes all about performance. Go ahead and start as I've been swamped moving our org over into Okta past couple of weeks so not quite able to switch gears yet but I'll definitely review.
Customer ask:
Add boolean a
skip_groups
andskip_roles
to resourceokta_user
so that unnecessary API calls toGET /api/v1/users/{userId}/roles
andGET /api/v1/users/{userId}/groups
are not made.An example
The text was updated successfully, but these errors were encountered: