Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(lh-86966): add new Terraform resource to manage users in an MSP-managed tenant #146

Merged
merged 2 commits into from
Oct 30, 2024

Conversation

siddhuwarrier
Copy link
Collaborator

Ahttps://jira-eng-rtp3.cisco.com/jira/browse/LH-86966

Description

This adds a new resource that allows an MSP portal super-admin to create users in a tenant managed
by the MSP portal.

Example usage:

data "cdo_msp_managed_tenant" "tenant" {
  name             = "CDO_tenant-name"
}

resource "cdo_msp_managed_tenant_users" "example" {
  tenant_uid = data.cdo_msp_managed_tenant.tenant.id
  users = [
    {
      username = "[email protected]",
      role = "ROLE_SUPER_ADMIN"
      api_only_user = false
    },
    {
      username = "[email protected]",
      role = "ROLE_ADMIN"
      api_only_user = false
    }
  ]
}

…managed tenant

This adds a new resource that allows an MSP portal super-admin to create users in a tenant managed
by the MSP portal.
client/msp/users/models.go Outdated Show resolved Hide resolved
client/msp/users/create.go Show resolved Hide resolved
provider/examples/data-sources/msp/tenants/main.tf Outdated Show resolved Hide resolved
provider/internal/msp/msp_tenant_users/resource_test.go Outdated Show resolved Hide resolved
Also add validator for user role
@siddhuwarrier siddhuwarrier merged commit bf6e271 into main Oct 30, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants