API - How do I tell if recovery question is required?

I have a user who is part of a group. The group has recovery question NOT required. How can I determine if the question is required or not? This is being done from an API.