getUserInfo: Gets information about the current user

View source: R/getUserInfo.R

getUserInfoR Documentation

Gets information about the current user

Description

Returns information about the current user, including the roles or groups they are in.

Usage

getUserInfo(labbcat.url)

Arguments

labbcat.url

URL to the LaBB-CAT instance

Value

A named list containing information about current the LaBB-CAT user.

See Also

labbcatCredentials

Examples

## Not run: 
## List file export formats supported
me <- getUserInfo("https://labbcat.canterbury.ac.nz/demo/")

## am I an administrator?
admin <- "admin" %in% me$roles

## End(Not run)


nzilbb.labbcat documentation built on June 8, 2025, 10:57 a.m.