API Testing · Middle · Question 23 of 75

How do you systematically test object-level authorization?

Show the answer

Correct answer: Create data as user A and try every operation on it as user B

Explanation

Read, update, delete and nested resources should all deny user B. Unguessable IDs help but don't replace checks.

Further reading

Problem with a question

API Testing · Middle · question 23

Test yourself

Take the API Testing · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz