Posts

Showing posts with the label users

Salesforce Fact #942 | PermissionSetLicenseAssign

Similar to PermissionSetAssignment, we have an Sobject PermissionSetLicenseAssign which keeps track of the assigned permission set licenses. The below query returns the list of PSLs assigned to the users: Select Id, PermissionSetLicense.DeveloperName, Assignee.Name FROM PermissionSetLicenseAssign Reference:  https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_permissionsetlicenseassign.htm

Salesforce Fact #932 | List of current logged in users

There is an object AuthSession which can be queried to get the list of users currently logged in to the org. example query: Select id, Users.name, CreatedDate, LoginType, SessionType, IsCurrent from AuthSession Reference:  https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_authsession.htm