connectapi
connectapi copied to clipboard
Create a data.frame representation from remote users.
We need to do slightly more than simply making a data.frame from the results:
remote_users <- client$users_remote(user_prefix)
tibble(
username = map_chr(remote_users$results, ~.$username),
fist_name = map_chr(remote_users$results, ~.$first_name),
last_name = map_chr(remote_users$results, ~.$last_name),
guid = map_chr(remote_users$results, ~ifelse(is.null(.$guid), NA, .$guid)),
temp_ticket = map_chr(remote_users$results, ~.$temp_ticket)
)
https://github.com/posit-dev/connect-cookbook/pull/72/files#r1640289734