Tag Archives: SOQL

Get Number of Active Users In a Permission Set Using SOQL Query

SQOL Query:

SELECT COUNT(AssigneeId) FROM PermissionSetAssignment WHERE Assignee.isActive = true AND PermissionSet.Name = 'My_Sample_PermissionSet'

Note: Change the Permission Set API Name as per your requirement.

Get the List of Visualforce Pages defined with the standardController

To get the list of Visualforce Page which are defined with the standardController attribute, we can write SOQL query on ApexPage object with passing ControllerType field value Standard.

Sample SOQL:

SELECT Name, ApiVersion, ControllerKey, ControllerType, Description, NamespacePrefix, MasterLabel, CreatedDate FROM ApexPage Where ControllerType = 'Standard'