Return userType

Is there a function to return a user's userType? (system admin or basic user) ?

  Discussion posts and replies are publicly visible