Boundary
accounts create
Command: boundary accounts create
The accounts create
command lets you create an account associated with one of the following auth methods:
- LDAP
- OIDC
- Password
Example
The following example creates an account named test_account
. In this example, you provide a password when prompted:
$ boundary accounts create password \
-auth-method-id=ampw_1234567890 \
-login-name="tester01" \
-name=test_account \
-description="Test password account"
Example output:
Please enter the password (it will be hidden):
Account information:
Auth Method ID: ampw_ZbB6UXpW3B
Created Time: Fri, 27 May 2022 11:16:47 MDT
Description: Test password account
ID: acctpw_A8R1escktO
Name: test_account
Type: password
Updated Time: Fri, 27 May 2022 11:16:47 MDT
Version: 1
Scope:
ID: o_u54jrD6ydN
Name: IT_Support
Parent Scope ID: global
Type: org
Authorized Actions:
no-op
read
update
delete
set-password
change-password
Attributes:
Login Name: tester01
Usage
$ boundary accounts create [type] [options] [args]
Command options
-auth-method-id
(string: "")
- The auth-method resource to use for the operation. You can also specify the auth-method using the BOUNDARY_AUTH_METHOD_ID environment variable.-description
(string: "")
- The description to set for the account.-name
(string: "")
- The name to set on the account.
Usages by type
You can create ldap
, oidc
, and password
type accounts.
The boundary accounts create ldap
command creates an account of ldap
type.
Example
The example below creates an LDAP account with the login name prodops
and the description ldap account for ProdOps
:
$ boundary accounts create ldap -login-name prodops \
-description "ldap account for ProdOps"
Usage
$ boundary accounts create ldap [options] [args]
LDAP account option
The following option is LDAP-specific, in addition to the command options:
-login-name
(string: "")
- The login name for the account.
CLI options
In addition to the command specific options, there are options common to all CLI commands and subcommands: