Sub topic 12
Edition limits, permissions and governance
This chapter assumes you can build a dashboard, know how the running user controls visibility, and have shared reports and dashboards through folders. It covers the limits and permissions that decide who can build dynamic dashboards, and the habits that keep an org manageable.
Edition limits on dynamic dashboards
Dynamic dashboards are not unlimited. Salesforce caps how many you can have per org, and the cap depends on the edition. At the time of writing, these are the documented figures:
| Edition | Dynamic dashboards allowed |
|---|---|
| Developer | 3 |
| Enterprise | 5 |
| Unlimited and Performance | 10 |
Check the current Salesforce help for your edition before you plan a design, because limits and add-on options change between releases. The cap applies to dashboards whose running user is "the logged-in user". Dashboards run as a specified user do not count against it.
A limit this small affects design. Spend each dynamic dashboard on a view that many people open and that really needs per-viewer data. Use a specified running user for views that everyone should see the same way, such as company-wide pipeline.
Permissions that control dashboards
Access to a dashboard comes from several layers. A viewer needs all of them.
- Folder access. The user must be able to see the dashboard folder and the report folder.
- User permissions. These include Run Reports, Create and Customize Dashboards, and Manage Dynamic Dashboards. Only users with Manage Dynamic Dashboards can set a dashboard to run as the logged-in user.
- Record visibility. In a dynamic dashboard, each viewer sees only the records that role hierarchy, sharing rules and field-level security allow them to see.
Governance practices
Governance keeps the org from filling with abandoned dashboards and over-shared data.
- Use a naming convention. Prefix names with team and purpose, for example
Sales - Pipeline by Stage. - Keep ownership in folders, not people. Dashboards in personal folders disappear from view when the owner leaves.
- Limit who can edit. Give most users Viewer access on shared folders. Reserve Manager access for a small group.
- Review running users. If a specified running user is deactivated, the dashboard fails to refresh. Prefer a stable integration or admin user over a named employee.
- Retire unused dashboards. Remove dashboards nobody has opened recently, and free dynamic slots when you need them.
Checking usage with SOQL
You can see how close you are to the limit by counting dashboards by running-user type.
SELECT Type, COUNT(Id) total
FROM Dashboard
GROUP BY TypeTo list the dynamic dashboards themselves and see where each one lives:
SELECT Id, Title, DeveloperName, FolderName, Type, RunningUserId
FROM Dashboard
WHERE Type = 'LoggedInUser'Compare the count for LoggedInUser with your edition's cap. Run these queries on a schedule, for example in Developer Console or a script, so you notice a creeping count before a save fails.
Common mistakes
- Planning many dynamic dashboards without checking the edition cap.
- Assuming Create and Customize Dashboards also allows dynamic dashboards. It does not. Manage Dynamic Dashboards is a separate permission.
- Storing shared dashboards in personal folders.
- Setting a specified running user with broader access than the audience should have.
Exercise
Your Enterprise org has 5 dynamic dashboards already. A manager asks for a sixth that shows each rep their own cases. Name two ways to respond, and one query that supports your decision.
Show answer
Either retire or convert an unused dynamic dashboard to a specified running user to free a slot, or confirm with Salesforce whether your edition can get a higher limit. Use SELECT Type, COUNT(Id) total FROM Dashboard GROUP BY Type to confirm how many LoggedInUser dashboards exist, and the LoggedInUser listing query to find candidates to retire.