Returns current user's roles.

oc_info_me_roles()

Value

A list containing the current user's roles.

Details

This function expects the hostname, username and password to be set as environment variables.

Examples

Sys.setenv(OPENCAST_HOST = "https://legacy.opencast.org") Sys.setenv(OPENCAST_USERNAME = "admin") Sys.setenv(OPENCAST_PASSWORD = "opencast") oc_info_me_roles()
#> $content #> [1] "ROLE_USER" #> [2] "ROLE_GROUP_MH_DEFAULT_ORG_SYSTEM_ADMINS" #> [3] "ROLE_ADMIN" #> [4] "ROLE_SUDO" #> [5] "ROLE_ANONYMOUS" #> [6] "ROLE_USER_ADMIN" #> [7] "ROLE_OAUTH_USER" #> #> $url #> [1] "https://legacy.opencast.org/api/info/me/roles" #> #> $response #> Response [https://legacy.opencast.org/api/info/me/roles] #> Date: 2020-03-19 11:21 #> Status: 200 #> Content-Type: application/json #> Size: 133 B #> #> #> attr(,"class") #> [1] "opencast_api"