Skip to contents

Add or remove a user to/from a group

Usage

aws_user_add_to_group(username, groupname)

aws_user_remove_from_group(username, groupname)

Arguments

username

(character) A user name. required

groupname

(character) a group name. required

Value

a named list with slots for:

  • user (tibble)

  • policies (list)

  • attached_policies (list)

  • groups (list)

Examples

if (FALSE) { # \dontrun{
if (!aws_group_exists("testgroup3")) {
  aws_group_create("testgroup3")
}
if (!aws_user_exists("testBlueBird3")) {
  aws_user_create("testBlueBird3")
}
aws_user_add_to_group("testBlueBird3", "testgroup3")
aws_user_remove_from_group("testBlueBird3", "testgroup3")
} # }