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

restrict_merges branch restriction requires "Bitbucket Username" #185

Open twoodhouse opened 6 months ago

twoodhouse commented 6 months ago

I spent a while wrestling with assigning users to the "restrict_merges" branch restriction before realizing that the go library used by this provider can only create user objects within a branch restriction based on those users' Bitbucket usernames. Atlassian account id or UUID will not work.

https://github.com/ktrysmt/go-bitbucket/blob/master/branchrestrictions.go#L127

For automation, this is less usable than the other IDs since Bitbucket Cloud doesn't allow anyone (even admins) to retrieve the Bitbucket Username of a user other than themselves.