The user data source allows you to find a Boundary user.
# Retrieve a user from the global scope
data "boundary_user" "global_scope_admin" {
name = "admin"
}
# User from a org scope
data "boundary_user" "org_user" {
name = "username"
scope_id = data.boundary_scope.org.id
}
data "boundary_scope" "org" {
name = "my-org"
scope_id = data.boundary_scope.org.id
}
name
(String) The username to search for.scope_id
(String) The scope ID in which the resource is created. Defaults global
if unset.account_ids
(Set of String) Account ID's to associate with this user resource.authorized_actions
(List of String) A list of actions that the worker is entitled to perform.description
(String) The user description.id
(String) The ID of the user.login_name
(String) Login name for user.primary_account_id
(String) Primary account ID.scope
(List of Object) (see below for nested schema)scope
Read-Only:
description
(String)id
(String)name
(String)parent_scope_id
(String)type
(String)