Get all permissions (auth items) for a given user


I’m working with the Role Based Access Control right now I know how to setup users and auth items (which I’m using for permissions). There’s also the



method, which I find useful. But how can I get all permissions/auth items for a given user? There must be a method, isn’t it? I was searching for a while in the code/google and couldn’t find it.