get_group_content: Get content access permissions for a group or groups

View source: R/groups.R

get_group_contentR Documentation

Get content access permissions for a group or groups

Description

Get content access permissions for a group or groups

Usage

get_group_content(src, guids)

Arguments

src

A Connect client object

guids

A character vector of group guids

Value

A tibble with the following columns:

  • group_guid: The group's GUID

  • group_name: The group's name

  • content_guid: The content item's GUID

  • content_name: The content item's name

  • content_title: The content item's title

  • access_type: The access type of the content item ("all", "logged_in", or "acl")

  • role: The access type that members of the group have to the content item, "publisher" or "viewer".

See Also

Other groups functions: get_group_members(), get_groups()

Examples

## Not run: 
library(connectapi)
client <- connect()

# Get a data frame of groups
groups <- get_groups(client)

# Get permissions for a single group by passing in the corresponding row.
get_group_content(client, groups[1, "guid"])
dplyr::filter(groups, name = "research_scientists") %>%
  dplyr::pull(guid) %>%
  get_group_content(client, .)

# Get permissions for all groups by passing in all group guids.
get_group_content(client, groups$guid)

## End(Not run)


rstudio/connectapi documentation built on Dec. 20, 2024, 1:48 p.m.