How can I get the signed in user data from another plugin? I am able to sign in and when I do a request in a restricted area it works fine. But how can I access the existing user object? I tried using BackendAuth::getUser() but it doesn't work.
I would like to check the user id of the user making request and do some ownership checks on a record. How do I do this?