Creates a new user for your AWS account.
For information about limitations on the number of users you can create, see Limitations on IAM Entities in Using AWS Identity and Access Management.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Required |
Name of the user to create. [Constraints: The value must be between 1 and 64 characters, and must match the following regular expression pattern: |
|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
---|---|
A |
Examples
Create a new user.
// Instantiate the class $iam = new AmazonIAM(); // Create a new parent group $response = $iam->create_user('johndoe', array( 'Path' => '/abc_group/xyz_group/' )); // Success? var_dump($response->isOK());Result:
bool(true)
Related Methods
Source
Method defined in services/iam.class.php | Toggle source view (7 lines) | View on GitHub