Global InfraGlobal Infra Cloud
DbaaS MSSQL

Database User

Terraform reference for Database User.

Schema Properties

PropertyTypeDescription
create_date
Computed
stringSQL Server login creation date
database_roles
Computed
stringPer-database role memberships as JSON (db_name to roles mapping)
databases
Required
list(string)Databases on which this user has permissions
db_roles
Required
list(string)Database roles granted to the user
db_user
RequiredForceNew
stringSQL user name
instance
Default
stringLogical SQL instance name
is_disabled
Computed
stringWhether the SQL Server login is disabled (true/false)
password_location
Computed
stringThe Vault UI URL where the user password is stored.
server_roles
Computed
stringServer-level role memberships (e.g. sysadmin, setupadmin)
sid
Computed
stringSQL Server login security identifier (SID)
resource "gi_dbaas_mssql_database_user" "example" {  attributes = {    databases = ["value-1", "value-2"]    db_roles  = ["value-1", "value-2"]    db_user   = "example-db_user"  }}

Usage Notes