Rest Api & Session_Token Control

I want to use rest api services with the logged in user. After materkey and restapikey, I want to check user existence. Can you help?

How are you planning to do that? Via cloud code? Would you mind to share what you’ve tried so far?