async def METHOD_NAME(
    app: web.Application, user_id: UserID
) -> FileLocationArray:
    _logger.debug("getting %s accessible locations...", f"{user_id=}")
    session, api_endpoint = _get_storage_client(app)
    locations_url = (api_endpoint / "locations").with_query(user_id=user_id)
    async with session.get(f"{locations_url}") as response:
        response.raise_for_status()
        locations_enveloped = Envelope[FileLocationArray].parse_obj(
            await response.json()
        )
        assert locations_enveloped.data  # nosec
        _logger.info(
            "%s can access %s",
            f"{user_id=}",
            f"{locations_enveloped.data=}",
            extra=get_log_record_extra(user_id=user_id),
        )
        return locations_enveloped.data