gomorpheus / terraform-provider-morpheus

Terraform Morpheus provider
MIT License
17 stars 23 forks source link

[Feature Request] data source to get list of existing roles #217

Closed doubletwist13 closed 6 months ago

doubletwist13 commented 6 months ago

It would be nice to be able to get a list of roles (user and/or tenant). This appears to be present in the SDK/API so hopefully it's a simple matter of adding the datasource to this provider.

martezr commented 6 months ago

The tenant role is already available (https://registry.terraform.io/providers/gomorpheus/morpheus/latest/docs/data-sources/tenant_role) so it would just be a matter of adding the user role data source.

martezr commented 6 months ago

The user_role data source has been added in the latest release of the Terraform provider - https://registry.terraform.io/providers/gomorpheus/morpheus/latest/docs/data-sources/user_role