How to use whitelist mode?

Hello..I am new on Openwrt..I want to enable that function which is when a user connect to the router first time with password it will connect but don’t serve internet.When i list thier IP address/Mac address then they can use internet..Can i do that with Openwrt?
Previously i use Keenetic OS there was a option like that..Pls help to do that if available
Thank you
Using OpenWrt 23.05.3 version

'Possible', in the sense of imaginable: yes.
Ready-made solution at your fingertips: no, the development task would be yours.