Being a community organizer and running a campaign is not a qualification on foreign policy.
Check it out:

The Obama administration’s Middle East policy has become a casualty of spiraling violence in the region, most recently in Yemen, where intervention by a Saudi-led coalition risks escalating a civil war into a sectarian firestorm that could quickly spread to other countries.

The big winners are not only Iran but also America’s top-priority targets: the Sunni extremists of the Islamic State, al Qaeda and their allies, who have been aided in their efforts to portray themselves as champions of Sunni Arabs by the Obama administration’s perceived tilt toward Tehran in pursuit of a nuclear deal.