How to query all non portal user roles in Salesforce? November 7, 2017June 9, 2022InfallibleTechie Admin SOQL: SELECT Id, Name FROM UserRole WHERE PortalType = ‘None’ Output: