objectscale_iam_user (Data Source)
This data source retrieves an Dell ObjectScale IAM user by name or ID and exposes key user attributes.
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.
*/
data "objectscale_iam_user" "all" {
namespace = "ns1"
}
output "objectscale_iam_user_all" {
value = data.objectscale_iam_user.all
}
data "objectscale_iam_user" "by_username" {
namespace = "ns1"
username = "sample_user_1"
}
output "objectscale_iam_user_by_username" {
value = data.objectscale_iam_user.by_username
}
data "objectscale_iam_user" "by_group" {
namespace = "ns1"
groupname = "group_008"
}
output "objectscale_iam_user_by_group" {
value = data.objectscale_iam_user.by_group
}
Schema
Required
namespace(String) Namespace containing IAM users.
Optional
groupname(String) Filter users who belong to the given group name.username(String) Filter users by username.
Read-Only
id(String) Internal ID for this data source.users(Attributes List) List of IAM users matching the filters. (see below for nested schema)
Nested Schema for users
Read-Only:
access_keys(Attributes List) List of access keys for the IAM user. (see below for nested schema)arn(String) IAM user ARN.create_date(String) The timestamp when the user was created.id(String) Unique ObjectScale IAM user ID (maps to UserId).path(String) IAM user path.permissions_boundary(String) Policy ARN used as permissions boundary. Can be empty if not set.tags(Attributes List) List of tags assigned to the user (sorted by key in Read function). (see below for nested schema)username(String) IAM username.
Nested Schema for users.access_keys
Read-Only:
access_key_id(String) Access key ID.create_date(String) Timestamp when the access key was created.status(String) Status of the access key (Active/Inactive).
Nested Schema for users.tags
Read-Only:
key(String) Tag key.value(String) Tag value.