user

Usage

fugue user [global options] command [options]

Subcommands

set
Set the fugue user. All subsequent commands will be executed as this user.

Arguments

<user_id>
The assumed user id for fugue commands.
<user_secret>
The assumed user secret for the specified user id.

Options

Global options are detailed here.

-h | --help
Show help text. The help flag is available throughout the CLI in both an application-level and command-level context. It enables a user to view help text for any command within the Fugue CLI.

Definition

The user command allows you to assume a specified fugue <user_id> for issuing fugue commands.

Examples

For detailed information on creating and managing users refer to How to Use RBAC in the Fugue User Guide.

Switching Fugue Users with the User Set Command

After creating any required users and policies for Fugue, you have the ability to specify a Fugue user and execute commands as that Fugue user. To switch between Fugue users you can execute the fugue user set command.

To confirm the list of users before selecting a target user, it may be helpful to view a list of users.

Note: In order to issue the fugue user set command the target user must enabled.

$ fugue policy list-users

Fugue User list for main-user/xxxxxxxxxxx - Tue Jan 24 2017 2:54pm

User Id       Enabled    Created    Updated
---------     ---------  ---------  ---------
main-user     yes        2:53pm     2:53pm
root          yes        2:39pm     2:39pm
testuser      no         2:53pm     2:53pm

[ HELP ] To enable a user, run "fugue policy generate-secret <user_id>".

To set a specified Fugue user, issue fugue =set user command specifying both the <user_id> and the <user_secret>. The user set command modifies the contents of your fugue.yaml file and assumes the use of the specified user credentials until you issue the fugue user set command to switch to another user.

The Fugue CLI will warn you that you’re going to replace the current user, ask you to confirm, verify the updates and provide a completion message.

Warning

Do not lose your root credentials. They cannot be replaced with the policy generate-secret command. If you have lost your root credentials, see Troubleshooting or contact support@fugue.co.

$ fugue user set main-user RandomGeneratedSecretUserString1234567891011
[ WARN ] The user name 'root' is already present in fugue.yaml.

Are you sure you want to overwrite this user? [y/N]: y
Found existing fugue.yaml.old file in /Users/test-fugue .
Deleting existing fugue.yaml.old ...
[ OK ] Existing fugue.yaml.old file deleted.

Found existing fugue.yaml file in /Users/test-fugue .
Renaming existing fugue.yaml file to fugue.yaml.old ...
[ OK ] Existing fugue.yaml file renamed.


[ DONE ] The user has been set to 'main-user'