So I got banned from online play because I was afk during a match on accident. Is this permenant and if it is is there a way to get unbanned?
It shouldn’t be permanent; bans increase in duration with each offense but generally start off short, with the exception of particularly egregious offenses.
Halo 5 should tell you the duration on the ban screen.
There’s information regarding bans in this thread, and it’s the best place to discuss them and potential appeals.
Please use the ban thread pinned at the top of the Halo 5 support forums for any queries on matchmaking bans, as noted above