Skip to contents

Remove a user from a bucket

Usage

six_bucket_remove_user(bucket, username)

Arguments

bucket

(character) bucket name. required

username

(character) A user name. required

Value

invisibly returns nothing

Details

This function detaches a policy from a user for accessing the bucket; the policy itself is untouched

Examples

if (FALSE) { # interactive()
# create a bucket
bucket <- random_string("bucket")
if (!aws_bucket_exists(bucket)) aws_bucket_create(bucket)

# create user
user <- random_user()
if (!aws_user_exists(user)) aws_user_create(user)

six_bucket_add_user(bucket, user, permissions = "read")
six_bucket_remove_user(bucket, user)

# cleanup
six_user_delete(user)
aws_bucket_delete(bucket, force = TRUE)
}