Powered by
Testing authorization
# ❓|questions
m
myron0389_85472
07/30/2025, 11:25 PM
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
Tabs [Promptfoo]
08/01/2025, 7:31 PM
@shuo0446
s
shuo0446
08/01/2025, 8:30 PM
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&
Previous
Next