filter users by profile

Hi all!
I have users that connect to a subscriver using pppoe.
Each user have an assigne profile (basic, medium, extra).
Now I want to implement queue tree to give different priority to users with different profile.
How can I filter in mangle users having certain prifle ?

thanks!

set address list in ppp profile, and then mark in mangle using those adress lists.

you are fantastic!
thank you MRZ.
Marie