Many served in combat but, discriminatory practices resulted in large numbers being assigned to perform as cooks, laborers, and teamsters. African-American soldiers were paid less. If captured, they had a much greater threat than the white soldiers.
Hope that helps!
-Chris