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

Datasource Zitadel project roles #169

Open
2 tasks done
DoGab opened this issue Apr 18, 2024 · 0 comments
Open
2 tasks done

Datasource Zitadel project roles #169

DoGab opened this issue Apr 18, 2024 · 0 comments

Comments

@DoGab
Copy link

DoGab commented Apr 18, 2024

Preflight Checklist

  • I could not find a solution in the existing issues, docs, nor discussions
  • I have joined the ZITADEL chat

Describe your problem

We would like to query Zitadel for all project roles so that we can assign them without knowing the role names previously.

Describe your ideal solution

There is a datasource which makes it possible to query for roles in a specific project. I could imagine following features:

  • Getting all roles of a project without providing a name
  • Getting all roles of a project in a specific group
  • Getting all roles of a project by name

All roles:

data "zitadel_projects" "default" {
  org_id      = data.zitadel_org.default.id
  project_id  = data.zitadel_project.default.id
}

Roles in a group:

data "zitadel_projects" "default" {
  org_id       = data.zitadel_org.default.id
  project_id   = data.zitadel_project.default.id
  group        = "api"
  group_method = "TEXT_QUERY_METHOD_CONTAINS_IGNORE_CASE"
}

Roles with name:

data "zitadel_projects" "default" {
  org_id      = data.zitadel_org.default.id
  project_id  = data.zitadel_project.default.id
  name        = "api"
  name_method = "TEXT_QUERY_METHOD_CONTAINS_IGNORE_CASE"
}

For us the most important would be the first one.

Version

1.1.1

Additional Context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 📨 Product Backlog
Development

No branches or pull requests

2 participants