objectscale_management_user (Resource)
This resource manages Dell ObjectScale management users. Supported types include LOCALUSER, ADLDAPUSER, and ADLDAP_GROUP.
Example Usage
/*
Copyright (c) 2025 Dell Inc., or its subsidiaries. All Rights Reserved.
Licensed under the Mozilla Public License Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://mozilla.org/MPL/2.0/
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
# Available actions: Create, Update, Delete and Import
# Create, Update, and Delete operations require SECURITY_ADMIN role.
# Read operation requires any one of SECURITY_ADMIN, SYSTEM_ADMIN, SYSTEM_MONITOR roles.
# Running `terraform apply` will create/update the management user with the specified roles in the ObjectScale
resource "objectscale_management_user" "example" {
# Required. Possible values are LOCAL_USER/AD_LDAP_USER/AD_LDAP_GROUP
type = "LOCAL_USER"
# Required. Format is "user1" for LOCAL_USER and "user1@domain" for AD_LDAP_USER/AD_LDAP_GROUP
name = "localuser1"
# Required for LOCAL_USER and not applicable for AD_LDAP_USER/AD_LDAP_GROUP
password = "pass123"
# Optional parameters. If set to true, assigns the management user to that role.
system_administrator = true
system_monitor = true
security_administrator = true
}
Schema
Required
name(String) Management user id. Format is as follows: For LOCAL_USER use “user1”. For AD/LDAP User/Group use “user1@domain”.type(String) Type of management user. Allowed values: LOCAL_USER, AD_LDAP_USER, AD_LDAP_GROUP.
Optional
password(String, Sensitive) Password for the management user. Password is required for LOCAL_USER and is not applicable for AD_LDAP_USER/AD_LDAP_GROUP.security_administrator(Boolean) If set to true, assigns the management user to the Security Admin role. Security Administrators perform user management and security related administration.system_administrator(Boolean) If set to true, assigns the management user to the System Admin role. System Administrators perform system level administration (VDC administration) and namespace administration.system_monitor(Boolean) If set to true, assigns the management user to the System Monitor role. System Monitors have read-only access to the ObjectScale Portal.
Read-Only
id(String) Unique identifier for the management user.
Unless specified otherwise, all fields of this resource can be updated.
Import
Import is supported using the following syntax:
# Copyright (c) 2025 Dell Inc., or its subsidiaries. All Rights Reserved.
# Licensed under the Mozilla Public License Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://mozilla.org/MPL/2.0/
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# The command is
# terraform import objectscale_management_user.example <name>
# <name>: The name of the LOCAL_USER, AD_LDAP_USER, or AD_LDAP_GROUP.
# Examples:
# terraform import objectscale_management_user.example localuser1
# terraform import objectscale_management_user.example user1@domain
# terraform import objectscale_management_user.example group1@domain
# after running this command, populate the other parameters in the config file to start managing this resource.
# Note: running "terraform show" after importing shows the current config/state of the resource. You can copy/paste that config to make it easier to manage the resource.