Apis for checking username and group name