Create a user, magically
Usage
six_user_create(
username,
path = NULL,
permission_boundary = NULL,
tags = NULL,
copy_to_cb = TRUE
)Arguments
- username
(character) A user name. required
- path
(character) The path for the user name. optional. If it is not included, it defaults to a slash (/).
- permission_boundary
(character) The ARN of the managed policy that is used to set the permissions boundary for the user. optional
(list) A list of tags that you want to attach to the new user. optional
- copy_to_cb
(logical) Copy to clipboard. Default:
FALSE. See section "Clipboard" below for more details.
Details
See aws_user_create() for more details.
This function creates a user, adds policies so the
user can access their own account, and grants them an access
key. Add more policies using aws_polic* functions
What is magical
Adds a
UserInfopolicy to your account if doesn't exist yetAttaches
UserInfopolicy to the user createdGrants an access key, copying an email template to your clipboard
See also
Other users:
aws_user(),
aws_user_access_key(),
aws_user_access_key_delete(),
aws_user_add_to_group(),
aws_user_create(),
aws_user_current(),
aws_user_delete(),
aws_user_exists(),
aws_users(),
six_user_delete()
Other magicians:
six_admin_setup(),
six_bucket_delete(),
six_bucket_upload(),
six_file_upload(),
six_user_delete()
Examples
if (FALSE) { # interactive() && aws_has_creds()
name <- random_user()
six_user_create(name)
# cleanup
six_user_delete(name)
}