Determine if a contact is a portal user
|Knowledge Article Number||000182146|
Query the User table and use 2 key filters
Query against multiple contacts
NOTE: The first query on Contact will have to be limited so that you don't pass governor limits. To learn more, read our Developer Documentation about Governors and Limits.