((a))
((1)) A member of the armed forces may only serve as a judge advocate if such member—
((A)) is admitted to the practice of law before the highest court of a State, territory, commonwealth, or the District of Columbia;
((B)) maintains a license status that provides current eligibility to actively practice law before such court;
((C)) is subject to the disciplinary review process of the jurisdiction in which such member maintains such a license status; and
((D)) is in compliance with any other requirements of such jurisdiction to remain eligible to practice law in such jurisdiction.
((2)) The Judge Advocates General of the Army, Navy, Air Force, and Coast Guard and the Staff Judge Advocate to the Commandant of the Marine Corps may suspend the authority of a judge advocate of the Army, Navy, Air Force, Coast Guard, or Marine Corps, respectively, to perform legal duties if such judge advocate becomes noncompliant with the requirements of paragraph (1). A member of the armed forces who is suspended or disbarred from the practice of law within a jurisdiction may not perform legal duties.
((b))
((1)) The assignment for duty of judge advocates of the Army, Navy, Air Force, and Coast Guard shall be made upon the recommendation of the Judge Advocate General of the armed force of which they are members. The assignment for duty of judge advocates of the Marine Corps shall be made by direction of the Commandant of the Marine Corps. The Judge Advocates General, and within the Marine Corps the Staff Judge Advocate to the Commandant of the Marine Corps, or senior members of their staffs, shall make frequent inspections in the field in supervision of the administration of military justice.
((2)) The assignment for duty of judge advocates pursuant to this subsection shall include qualified judge advocates in numbers sufficient to provide legal advice to all commanders responsible for planning and organizing military operations (including commanders of and within commands assigned to a combatant command or the United States element of the North American Aerospace Defense Command as established pursuant to sections 161 and 162 of this title) and all commanders authorized to convene courts-martial under sections 822 through 824 of this title (articles 22 through 24). The qualifications of judge advocates assigned to provide legal advice to commanders under this paragraph shall include—
((A)) the qualifications set forth in subsection (a)(1); and
((B)) any additional education, expertise, or experience determined to be necessary to fulfill the requirements of this paragraph by the Judge Advocate General of the armed force concerned, or in the case of the Marine Corps, by the Staff Judge Advocate to the Commandant of the Marine Corps.
((c)) Convening authorities shall at all times communicate directly with their staff judge advocates or legal officers in matters relating to the administration of military justice; and the staff judge advocate or legal officer of any command is entitled to communicate directly with the staff judge advocate or legal officer of a superior or subordinate command, or with the Judge Advocate General.
((d))
((1)) No person who, with respect to a case, serves in a capacity specified in paragraph (2) may later serve as a staff judge advocate or legal officer to any reviewing or convening authority upon the same case.
((2)) The capacities referred to in paragraph (1) are, with respect to the case involved, any of the following:
((A)) Preliminary hearing officer, court member, military judge, military magistrate, or appellate judge.
((B)) Counsel who have acted in the same case or appeared in any proceeding before a military judge, military magistrate, preliminary hearing officer, or appellate court.
((e))
((1)) A judge advocate who is assigned or detailed to perform the functions of a civil office in the Government of the United States under may perform such duties as may be requested by the agency concerned, including representation of the United States in civil and criminal cases.
((2)) The Secretary of Defense, and the Secretary of Homeland Security with respect to the Coast Guard when it is not operating as a service in the Navy, shall prescribe regulations providing that reimbursement may be a condition of assistance by judge advocates assigned or detailed under .