connectapi icon indicating copy to clipboard operation
connectapi copied to clipboard

Create a data.frame representation from remote users.

Open jonkeane opened this issue 8 months ago • 0 comments

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

jonkeane avatar Jun 21 '24 14:06 jonkeane