O'Brien represented the City of Auckland electorate in the 1st New Zealand Parliament from 1853 to 1855, when he retired. He did not serve in any subsequent Parliaments. He was returning officer for the for the City of Auckland, , and electorates. He also acted as returning officer for elections to the Auckland Provincial Council, including elections of the Superintendent.
