Skip to content

Commit

Permalink
Merge pull request #321 from Vinothdarwin/main
Browse files Browse the repository at this point in the history
User data source documentation update
  • Loading branch information
JasperPaul authored Nov 21, 2024
2 parents 049d674 + ba51ee4 commit 981a908
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/data-sources/user.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,20 +52,20 @@ output "s247_user_matchingUserIDsAndNames" {
}
//
// Iterating the user group data source
// Iterating the user data source
data "site24x7_user" "userlist" {
for_each = toset(["e", "a"])
name_regex = each.key
}
locals {
user_group_ids = toset([for prof in data.site24x7_user.userlist : prof.id])
user_group_names = toset([for prof in data.site24x7_user.userlist : prof.display_name])
user_ids = toset([for prof in data.site24x7_user.userlist : prof.id])
user__names = toset([for prof in data.site24x7_user.userlist : prof.display_name])
}
output "s247_user_ids" {
description = "Matching user IDs : "
value = local.user_group_ids
value = local.user_ids
}
output "s247_user_names" {
Expand Down

0 comments on commit 981a908

Please sign in to comment.