Added end point for permission checking when provided userId, TODO - add test case for permission checking handler util