Only the owner of the filter can edit it.
In your example, if User B is a site admin, he/she can impersonate User A and then edit the filter.
We have been tracking a feature request to Allow shared filters and dashboards to be edited by a group
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events