You are here:
Create a SOQL Query
To gather details about locale use, like user count by locale, create a SOQL query

Use more general search terms.
Select fewer filters to broaden your search.
To gather details about locale use, like user count by locale, create a SOQL query
| Available in: both Salesforce Classic and Lightning Experience |
| Available in: all editions |
| User Permissions Needed | |
|---|---|
| To use the Developer Console: | API Enabled AND View All Data |
| To use code search and run SOQL or SOSL on the query tab: | API Enabled |
| To create, edit, and delete reports in private folders: | Create and Customize Reports |
| To create, edit, and delete reports in public and private folders: | Report Builder OR Report Builder (Lightning Experience) |
). Using Classic? Click your name in the upper right corner.The developer console opens in a new window.

SELECT toLabel(LocaleSidKey) LocaleName, LocaleSidKey, Count(id) UserCount FROM User where IsActive=true GROUP BY LocaleSidKeyYour results display in the Query Results grid in the Developer Console workspace.

In this example, there are 4 locales in use across 10 users: 2 users with bn_BD, 5 users with en_US, 1 user with it_IT, and 2 users with en_HN.

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.