Listing Your Users
As a root account, you can get information about the EIM users of your account, including their creation dates, paths, unique IDs and OUTSCALE Resource Names.
Listing Users Using OSC CLI
The ReadUsers command lists all EIM users that have a specified path.
If you do not specify a path, this action returns a list of all users in the account (or an empty list if there are none).
$ osc-cli api ReadUsers --profile "default"
This command contains the following attributes that you need to specify:
-
DryRun
: (optional) If true, checks whether you have the required permissions to perform the action.
The ReadUsers command returns the following elements:
-
ResponseContext
: Information about the context of the response. -
Users
: A list of EIM users.
{
"Users": [
{
"UserName": "example-user",
"UserId": "ABCDEFGHIJKLMNOPQRSTUVWXYZ12345",
"Path": "/documentation/"
}
],
"ResponseContext": {
"RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
}
}
Listing Users Using AWS CLI
To get information about EIM users, use the list-users command following this syntax:
$ aws iam list-users \
--profile YOUR_PROFILE \
--path-prefix / \
--endpoint https://eim.eu-west-2.outscale.com
This command contains the following attributes that you need to specify:
-
(optional)
profile
: The named profile you want to use, created when configuring AWS CLI. For more information, see Installing and Configuring AWS CLI. -
(optional)
path-prefix
: The path prefix of specific users. If unspecified, you will get information about all users of your account. -
endpoint
: The endpoint corresponding to the Region you want to send the request to.
The list-users command returns the following elements:
-
Users
: A list of EIM users. This element contains the following information:-
UserName
: The common name of the user. -
Path
: The path for the user. -
CreateDate
: The date and time of creation of the user. -
UserId
: The user ID. For more information, see Resource Identifiers. -
Arn
: The OUTSCALE Resource Name (ORN) of the user. For more information, see Resource Identifiers.
-
{
"Users": {
"UserName": "USER_NAME",
"Path": "/PATH/SUB_PATH/",
"CreateDate": "2016-05-12T12:12:24.165Z",
"UserId": "1234567890000",
"Arn": "arn:aws:iam::123456789012:user/USER_NAME"
}
}
Related Pages
Corresponding API Methods
AWS™ and Amazon Web Services™ are trademarks of Amazon Technologies, Inc or its affiliates in the United States and/or other countries.