Closed LeoTheGriff closed 3 months ago
@LeoTheGriff have you tried to use https://registry.terraform.io/providers/fivetran/fivetran/latest/docs/resources/team_group_membership ?
In API we have slightly different approach. User may have only one role on account level. For each resource you have to assign role separately by adding user memberships in reaources
I am not on the enterprise license so I cannot use teams.
For each resource you have to assign role separately by adding user memberships in resources
How do I do this?
How do I do this?
https://fivetran.com/docs/rest-api/users#connectormemberships - for connectors https://fivetran.com/docs/rest-api/users#groupmemberships - for destinations
But looks like these endpoints are not covered by TF provider. We will do that ASAP)
Awesome, thank you!
Describe the bug Cannot manage in Terraform the multiple roles that definable in UI. How do you set multiple roles to a user at different levels? e.g. account billing and destination analyst
I don't see from the docs how this can be described in existing resources. You can set a role with a user, but it is a string not a list.
To Reproduce Provide an example .tf configuration
In UI: create user with an account role and a destination role.
Expected behavior A clear and concise description of what you expected to happen.
Roles as an array or another resource mapping roles to users
Logs & Output Provide terraform CLI output on
plan
|apply
. If it is possible, please, refer to this guide to enable debug output.Plugin version: Please specify Fivetran Terraform Provider version you are using.
Additional context Add any other context about the problem here.
Workaround is to remove destination-specific role and rely on
<inherited>