Upvote:1
Also will the gate agents in my connecting flight before SA know I am not allowed in the country and prevent me from boarding?
No they will not, as South Africa doesn't do advance passenger screening.
Unlike most countries, South Africa does perform "border" control for transit passengers, but as you're not trying to entering the country, not much if anything will happen.
So you should definitely be fine.