Checking special access for user across multiple quizzes

Bart.R.3318
Bart.R.3318 Berichten: 2 🔍
Using the API, we need to review the list of quizzes in a course (only four) and see if a user has been granted special access and attempted the quiz, then assign/grant special access to a quiz they haven't attempted. Just want to verify our logic with people that have been doing this for awhile (this is new for me):

Get the course and the quizzes in the course,
Then query each quiz to see who has special access,
- Query the userid against the results for a match on each quiz attempts result,
- Store results for future processing,
Grant userid special access to a quiz based on results (or exit if all four attempted).

So, the meat of the question - we do have to iterate through the quiz attempts to get this info, there isn't an explicit call to ask if a user has attempted a quiz, correct?

Thanks,
Bart