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

Add support for Account Role #266

Closed
mitchnielsen opened this issue Sep 24, 2024 · 1 comment
Closed

Add support for Account Role #266

mitchnielsen opened this issue Sep 24, 2024 · 1 comment

Comments

@mitchnielsen
Copy link
Contributor

Let's add full support for Account Roles: https://app.prefect.cloud/api/docs#tag/Account-Roles

@mitchnielsen
Copy link
Contributor Author

I believe this is already complete. Looking at the API, there is no Create option available, so it makes sense that it's only available as a datasource right now (https://registry.terraform.io/providers/PrefectHQ/prefect/latest/docs/data-sources/account_role).

I see an Update method where you can change the name and permissions, but I don't think we actually want/need to expose that based on the comments below.

#77 (comment):

Currently, there are no plans to allow practitioners to create custom Account Roles (there is no create endpoint), and we do not allow modifying the default system roles. As such, we will just support reading down either the Admin or Member account roles by name - practitioners can then use the fetched data.prefect_account_role.foobar.id in order to set account membership in a followup resource

#39 (comment):

we no longer allow creating account roles (meaning only the default roles exist), and PATCH-ing the default roles will fail
therefore, we'll modify this issue to only scaffold the datasource, eg. reads

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants