User get by ID and get by credential