-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
data_source_okta_users omits admin_roles #1014
Comments
Thanks @exitcode0 I'll look into this, thanks! |
it seems that the documentation for the datasource Here would suggest that this is possible So I guess either the doco here is missleading and should be updated or the implementation or |
My workaround for this for now in case someone else comes across this issue resource "okta_resource_set" "okta_admins" {
label = "okta_admins"
description = "okta_admins"
resources = [
"https://${local.org_name}.${local.base_url}/api/v1/groups/${okta_group.okta_admins.id}/users",
]
}
resource "okta_group" "okta_admins" {
name = "okta_admins"
description = "Users with okta admin permissions. Membership to this group is managed by terraform."
skip_users = true
}
resource "okta_group_memberships" "okta_admins" {
group_id = okta_group.okta_admins.id
users = [
for user in data.okta_app_user_assignments.okta_admin_console.users :
user
]
}
data "okta_app" "okta_admin_console" {
label = "Okta Admin Console"
}
data "okta_app_user_assignments" "okta_admin_console" {
id = data.okta_app.okta_admin_console.id
} |
being addressed in #1159 |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 5 days |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 5 days |
Community Note
Terraform Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
when the user in question is a super admin, i'd expect
testing2
output to contain the users ID andtesting1
to contain an entry similar to"admin_roles" = toset(["SUPER_ADMIN"])
Actual Behavior
the output
testing2
outputs as empty andtesting1
correctly outputs the user object but the admins roles entry shows as"admin_roles" = toset([])
Steps to Reproduce
terraform refresh
Important Factoids
References
The text was updated successfully, but these errors were encountered: