Query Users with a particular salesforce license #inSalesforce

Query Users with a particular salesforce license #inSalesforce


SELECT Id, Name, Profile.Id, Profile.Name FROM User WHERE Profile.UserLicense.LicenseDefinitionKey = 'Overage_Platform_Portal_User'


Reference: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_userlicense.htm


Comments