Restricted countries for sat

Are certain nationalties banned to do the sat? Or just the one who are residing in special countries have this problem?
For example, if I am Iranian but I have Turkish residency , can I apply for this exam?

No

Yes, ss long as you are not trying to take the exam in Iran, where it is not offered.