#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,
    authentik_group.arr-users.id
  ]
  attributes = jsonencode(
    {
      nextcloud_user_id = "chris"
    }
  )
}
#
resource "authentik_user" "nadege" {
  username = "nadege"
  name     = "Nadege Cowley"
  email    = "nadege@cowley.tech"
  attributes = jsonencode(
    {
      nextcloud_user_id = "nadege"
    }
  )
}
resource "authentik_user" "nicolas" {
  username = "nicolas"
  name     = "Nicolas Cowley"
  email    = "colas@cowley.tech"
  attributes = jsonencode(
    {
      nextcloud_user_id = "nicolas"
    }
  )
}