Skip to content

Add user and group management capability to coderd provider #2

@johnstcn

Description

@johnstcn

Should cover use cases similar to the following:

// Create a bot user for Jenkins
resource "coderd_user" "jenkins" {
  username = "jenkins"
  name     = "Jenkins CI/CD"
  email    = "ci@example.com"
  roles    = ["template-admin"]
  login_type = "none"
}

// Keep the password of a user account up to date from an external source
resource "coderd_user" "audit" {
  username = "auditor"
  name     = "Auditor"
  email    = "security@example.com"
  roles    = ["auditor"]
  login_type = "password"
  password = data.vault_password.auditor.value
}

// Ensure the admin account is suspended
resource "coderd_user" "admin" {
  username = "admin"
  suspended = true
}

// Only the following can admin
resource "coderd_group" "bosses" {
  display_name = "The Bosses"
  members = [
    data.coder_user.jon.id
    data.coder_user.ammar.id
    data.coder_user.kyle.id
    data.coder_user.rob.id
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy