resource "authentik_user" "chriscowley" {
  username = "chriscowley"
  name     = "Chris Cowley"

  email = "chriscowleysound@gmail.com"

  groups = [
    data.authentik_group.admins.id,
    authentik_group.grafana_admins.id,
  ]
  is_active = false
}
resource "authentik_user" "chris" {
  username = "chris"
  name     = "Chris Cowley"

  email = "chris@cowley.tech"

  groups = [
    data.authentik_group.admins.id,
    authentik_group.grafana_admins.id,
    authentik_group.nextcloud_admins.id,
  ]
#  attributes = jsonencode(
#    {
#      nextcloud_user_id = "chris"
#    }
#  )
}

resource "authentik_user" "nadege" {
  username = "nadege"
  name     = "Nadege Cowley"
  email    = "nadege@cowley.tech"
}