#' Get information about users who have access to a dataset
#'
#' Get user metadata about all of the users that have access to a particular
#' Crunch object like a dataset or project. Returns a `UserCatalog` object which
#' can be translated into a data.frame with [catalogToDataFrame()] if information
#' needs to be extracted, queried, transformed, etc.
#'
#' @param x a `CrunchDataset`, `DatasetTuple`, or `ProjectFolder` object to get
#' users from
#'
#' @return a `UserCatalog` with information about users who have access to the
#' dataset
#'
#' @name users
setGeneric("users", function(x) standardGeneric("users"))
.getUsers <- function(x) UserCatalog(crGET(shojiURL(x, "catalogs", "users")))
#' @rdname users
#' @export
setMethod("users", "CrunchDataset", .getUsers)
#' @rdname users
#' @export
setMethod("users", "DatasetTuple", .getUsers)
#' @rdname users
#' @export
setMethod("users", "ProjectFolder", .getUsers)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.