acl_add: ACL Add Users or Groups

acl_add_userR Documentation

ACL Add Users or Groups

Description

Add a user or group to the content as an "owner" (collaborator) or "viewer"

Usage

acl_add_user(content, user_guid, role)

acl_add_group(content, group_guid, role)

acl_add_collaborator(content, user_guid)

acl_add_viewer(content, user_guid)

acl_remove_user(content, user_guid)

acl_add_self(content)

acl_remove_self(content)

acl_remove_group(content, group_guid)

Arguments

content

The R6 Content object (as returned by content_item())

user_guid

The user's GUID. Use get_users()

role

One of "owner" or "viewer"

group_guid

The group's GUID. Use get_groups()

Details

  • acl_add_user() allows you to add ACL for a user and specify role

  • acl_add_group() allows you to add ACL for a group and specify role

  • acl_add_collaborator() is a helper to add a user collaborators

  • acl_add_viewer() is a helper to add a user viewer

  • acl_remove_user() removes a user's ACLs from a piece of content

  • acl_remove_group() removes a group's ACLs from a piece of content

  • acl_add_self() is useful for admins and adds the current user as a collaborator

  • acl_remove_self() removes the current user's ACLs from a piece of content

Value

The R6 content object (for piping)

See Also

Other content functions: content_delete(), content_item(), content_title(), content_update(), create_random_name(), dashboard_url_chr(), dashboard_url(), delete_vanity_url(), deploy_repo(), get_acl_user(), get_bundles(), get_environment(), get_image(), get_jobs(), get_vanity_url(), git, permissions, set_image_path(), set_run_as(), set_vanity_url(), swap_vanity_url(), verify_content_name()


connectapi documentation built on Feb. 16, 2023, 7:46 p.m.