How to get the user details with access control?

Hi,

The user authenticated by access token with each request by bearer model, and it works fine.

Now I need to get the user details to use for the access model, how to get it?

Thanks,

Sorry, the autocomplete in my phone changed the title :)

I mean "with access control"

I need to get the user id without using the session, with enabled session everything works fine, but this is not recommended with API.

/* Changed the title */