user_role: Identifies unique REDCap user roles

View source: R/user_role.R

user_roleR Documentation

Identifies unique REDCap user roles

Description

Used to count the number of unique roles (e.g. unique combinations of user rights) on the REDCap project. Note: this replaces the function of roles on the user rights page of the REDCap.

Usage

user_role(
  redcap_project_uri,
  redcap_project_token,
  user_exclude = NULL,
  remove_id = T,
  show_rights = F
)

Arguments

redcap_project_uri

URI (Uniform Resource Identifier) for the REDCap instance.

redcap_project_token

API (Application Programming Interface) for the REDCap project.

user_exclude

Vector of usernames to be excluded (e.g. those with unique rights). Default is none (e.g. "").

remove_id

Logical value to remove identifying details of users (e.g. name, email). Default is TRUE

show_rights

Logical value to show user rights allocated to each role. Default is FALSE

Value

Dataframe of all users by unique role


kamclean/collaborator documentation built on Nov. 17, 2023, 3:52 a.m.