user_role | R Documentation |
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.
user_role(
redcap_project_uri,
redcap_project_token,
user_exclude = NULL,
remove_id = T,
show_rights = F
)
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 |
Dataframe of all users by unique role
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.