Consider behavior of find_one()
functions in the case of multiple matches
#193
Labels
enhancement
New feature or request
question
Further information is requested
sdk
Used for automation
The
find_one()
function returns the first if multiple are found. It is documented in the README here:posit-sdk-py/src/posit/connect/README.md
Line 33 in 62ff359
IMO it would be safer to error out on these functions, especially with endpoints that accept a
prefix
parameter since users may be searching withprefix
, which can easily match multiple users inadvertently (Users
find_one()
searches username, first name, and last name for example).The text was updated successfully, but these errors were encountered: