Distinguish between admin and user API call

Fixes #268