Fetch information for one or more users
Usage
flywire_user_info(
uids,
datastack_name = getOption("fafbseg.cave.datastack_name", "flywire_fafb_production")
)Arguments
- uids
A vector of user ids or a dataframe with a
user_idcolumn- datastack_name
defaults to the value selected by
choose_segmentationand to "flywire_fafb_production" when that is missing. See https://global.daf-apis.com/info/ for other options.
Details
Note that since April 2025, the upstream middle_auth service
requires admin privileges (global, dataset, or group admin) to look up user
information. Non-admin tokens will receive a 403 error. See
https://github.com/CAVEconnectome/middle_auth/commit/53ef80c1 for
details.
Examples
# \donttest{
flywire_user_info(60, datastack_name = "flywire_fafb_public")
#> Error in py_call_impl(callable, call_args$unnamed, call_args$named): requests.exceptions.HTTPError: 403 Client Error: FORBIDDEN for url: https://global.daf-apis.com/auth/api/v1/user?id=60 content: b'Requires admin privilege.'
#> Run `reticulate::py_last_error()` for details.
# }