In 1970, Danjuma attended the International Court Martial in Trinidad and Tobago as Nigeria's representative, where he was appointed president of the tribunal in a case brought against members of a failed coup attempt in Trinidad and Tobago. Following his promotion to Colonel in 1971 he spent next two years with responsibility for court-martialling Army officers proven guilty of corruption and indiscipline. In 1975 he was promoted to Brigadier and the position of General Officer Commanding (GOC), and in the following year he became the Chief of Army Staff to the Head of State Olusegun Obasanjo. He played a prominent role in supporting the president in resisting the Dimka Coup in 1976. He retired from the Nigerian army in 1979.