The endpoint should be /v1/users/{guid}. That said, it does not appear that there are any callers to get_user() which provide a guid, so get_user() could be simplified to always call /v1/user, returning details for the user associated with the available credentials.
The Connect
get_user()
function takes an optionalguid
parameter, which is used to call/v1/user/{guid}
. That endpoint does not exist.https://github.com/rstudio/pins-python/blob/2b7bebbc0687323830f06ec7345192452f12dacf/pins/rsconnect/api.py#L264-L269
The endpoint should be
/v1/users/{guid}
. That said, it does not appear that there are any callers toget_user()
which provide aguid
, soget_user()
could be simplified to always call/v1/user
, returning details for the user associated with the available credentials.