https://promptfoo.dev/ logo
Testing authorization
# ❓|questions
m
I’d like to be able to test against two different user accounts and validate that user 1 can not view user 2 data and vice versa. Is this possible?
t
@shuo0446
s
Hey Myron, yeah - plugins like rbac, bola, bfla are designed for this use case. In your test setup, you need to make promptfoo aware which user the app has access or not having access to, so you can get proper grading. This is done by adding those information under Application Details. Something like; https://cdn.discordapp.com/attachments/1400258117190684884/1400938764267684000/image.png?ex=688e7565&is=688d23e5&hm=bff26e276ab3d4fa05cf1521c8d61b91c00664895bbae49a1f3ea153a868e59a&