zahiar / terraform-provider-bitbucket

Terraform Provider for Bitbucket Cloud
https://registry.terraform.io/providers/zahiar/bitbucket/latest
Mozilla Public License 2.0
19 stars 22 forks source link

Add a workspace_members datasource #152

Closed nbrys closed 1 year ago

nbrys commented 1 year ago

Please add a datasource that includes all users in the current workspace.

You can leverage the https://developer.atlassian.com/cloud/bitbucket/rest/api-group-workspaces/#api-workspaces-workspace-members-member-get api

nbrys commented 1 year ago

Hi @zahiar ,

Thanks for implementing this feature. Question, wouldn't a map have been a better return type for this? It would make it easier to convert "names" into their slug.

I'm still trying to find an easy way of converting a list of usernames into their slug with this implementation