Skip to content
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

Exitcode0 custom profile attributes #1041

Merged
merged 4 commits into from
Mar 31, 2022
Merged

Conversation

monde
Copy link
Collaborator

@monde monde commented Mar 31, 2022

Bringing @exitcode0's code #1033 into an Okta branch. Added additional explanation to the PR.

Original PR salutation:

fix #1009
code was mostly inspired by existing code in the repo at resource_okta_group.go#L128-L133

Still very new to Go and TF providers, so if this implementation is sub-par please let me know 😄

intended to work with the below example config

data "okta_groups" "test" {
  type = "OKTA_GROUP"
}

output "test" {
  value = [for group in data.okta_groups.test.groups : group.name if lookup(jsondecode(group.profile), "admin", false) == true]
}

@monde monde merged commit b7c676f into master Mar 31, 2022
@monde monde deleted the exitcode0_custom_profile_attributes branch March 31, 2022 20:42
@monde
Copy link
Collaborator Author

monde commented Apr 8, 2022

@exitcode0 this is released as v3.23.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Expose custom group attributes in data_source_okta_groups
3 participants