Open owlleg6 opened 1 year ago
Hello!
Currently, it is not possible to grant role to user in Synapse dedicated database. Because, 'ALTER ROLE' is not working in such databases. Only
EXEC sp_addrolemember 'db_owner', 'User';
azure docs
Is there is any chance to provide some parameter in "mssql_user" resource, so when you are using Synapse dedicated pool database, it would be possible to switch to "EXEC" in part of Role assignment?
https://github.com/betr-io/terraform-provider-mssql/blob/9a2d23c1fd3086d90783eb3d07b145229738471e/sql/user.go#L157
Code snippet:
Error:
Cheers, Oleh.
Hello!
Currently, it is not possible to grant role to user in Synapse dedicated database. Because, 'ALTER ROLE' is not working in such databases. Only
azure docs![image](https://user-images.githubusercontent.com/3865349/180300249-8564cf0f-a488-4b55-a1e4-05abfe618872.png)
Is there is any chance to provide some parameter in "mssql_user" resource, so when you are using Synapse dedicated pool database, it would be possible to switch to "EXEC" in part of Role assignment?
https://github.com/betr-io/terraform-provider-mssql/blob/9a2d23c1fd3086d90783eb3d07b145229738471e/sql/user.go#L157
Code snippet:![image](https://user-images.githubusercontent.com/3865349/180301349-66b4d3b6-997d-41b0-8de9-08e0277e454d.png)
Error:![image](https://user-images.githubusercontent.com/3865349/180300852-8493f0ae-3095-4010-908f-da9a58c1e33d.png)
Cheers, Oleh.