Call user variable as map(string) to pagerdutry resource


I have created a variable like below, would like to call this in pagerduty_user resource… it should come with name and email using for_each. How do I do that?

variable "pagerduty_user_list" {
  default = {
    eon morg = "",
    water dance  = ""
  description = "user group for pagerduty "
  type        = map(string)

I would to call this variable from file to file in resource pagerduty_user ?

trying to bring up the value from var to pag file using resource and redirect the output using local to another resource

Please let me know.