servercore_iam_user_v1
Creates and manages a control panel (local) user or a federated user using public API v1. Servercore products support Identity and Access Management (IAM). For more information about users, see the official Servercore documentation.
Example Usage
resource "servercore_iam_user_v1" "user_1" {
email = "mail@example.com"
role {
role_name = "member"
scope = "account"
}
}
Argument Reference
-
email— (Required) Email address of the user. Changing this creates a new user. We will send authentication instructions to this email. -
auth_type— (Optional) Authentication type of the user. Changing this creates a new user. Available types arelocal(for control panel users, to store the credentials locally in Servercore) andfederated(for federated users, to store the credentials in the corporate Identity Provider). The default value islocal. Ifauth_typeisfederated, thefederationargument is required. -
federation— (Optional) Information about the federation.auth_typemust be set tofederated.-
id— (Required) Unique identifier of the federation. -
external_id— (Required) Unique identifier of the user assigned by the Identity Provider.
-
-
role— (Optional) Manages service user roles. You can add multiple roles — each role in a separate block. For more information about roles, see the Roles section.-
role_name— (Required) Role name. Available role names areiam_admin,member,reader, andbilling. -
scope— (Required) Scope of the role. Available scopes areaccountandproject. Ifscopeisprojecttheproject_idargument is required. -
project_id— (Optional) Unique identifier of the associated project. Changing this creates a new service user. Ifscopeisproject, theproject_idargument is required. Retrieved from the servercore_vpc_project_v2 resource. Learn more about Projects.
-
Roles
To assign roles, use the following values for scope and role_name:
-
Account administrator —
scopeisaccount,role_nameismember. -
Billing administrator —
scopeisaccount,role_nameisbilling. -
User administrator —
scopeisaccount,role_nameisiam_admin. -
Project administrator —
scopeisproject,role_nameismember. -
Account viewer —
scopeisaccount,role_nameisreader. -
Project viewer —
scopeisproject,role_nameisreader. -
Object storage admin —
scopeisproject,role_nameisobject_storage:admin. -
Object storage user —
scopeisproject,role_nameisobject_storage_user.
Attributes Reference
keystone_id— Unique Keystone identifier of the user.