I have heard that colonial troops were barred from serving on the western front however what about a black man who lived or was maybe born within the United Kingdom at the time? Any answer is appreciated.
They were allowed and did fight. See my previous answer here: https://www.reddit.com/r/AskHistorians/comments/er280e/in_the_film_1917_british_units_were_mixed_with/