Open
Description
#22272 exposed a bug in one particular API endpoint for authorizations where if a "name" was provided for either user or organization, it would not use the name to filter and would instead return a list of all results. This was fixed, including the convention that if BOTH the "ID" and "name" are provided simultaneously for org and/or user, the ID will take precedence and the name will not be used. This seems to be the convention across resources handled by the API.
This brought to light a couple of things:
- We should ensure that our API docs indicate that for resources like this, the ID takes precedence over the name if both are provided
- We should ensure that this behavior is indeed consistent across endpoints. There may be other API endpoints where the "name" parameters are not being handled correctly, or behave inconsistently with the convention used here.