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

chore: support set roles for user in workspace level & support group #82

Merged
merged 7 commits into from
Dec 12, 2024

Conversation

ecmadao
Copy link
Collaborator

@ecmadao ecmadao commented Dec 11, 2024

  • Support set roles for user in workspace level
resource "bytebase_user" "workspace_dba" {
  title = "DBA"
  email = "[email protected]"

  # Grant workspace level roles.
  roles = ["roles/workspaceDBA", "roles/projectViewer"]
}
  • Support group
resource "bytebase_group" "developers" {
  depends_on = [
    bytebase_user.workspace_dba,
    bytebase_user.project_developer
  ]

  email = "[email protected]"
  title = "Bytebase Developers"

  members {
    member = format("users/%s", bytebase_user.workspace_dba.email)
    role   = "OWNER"
  }

  members {
    member = format("users/%s", bytebase_user.project_developer.email)
    role   = "MEMBER"
  }
}

@ecmadao ecmadao requested a review from d-bytebase December 11, 2024 11:03
@ecmadao ecmadao changed the title chore: support set roles for user in workspace level chore: support set roles for user in workspace level & support group Dec 12, 2024
@d-bytebase d-bytebase merged commit 0e0054c into main Dec 12, 2024
4 checks passed
@d-bytebase d-bytebase deleted the chore/BYT-6671 branch December 12, 2024 06:38
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