When I look at my ActiveScratchOrg Limit via the REST API, it is showing that there are Scratch Orgs in use:

enter image description here

However, when I query ActiveScratchOrgs or ScratchOrgInfo I get no results. Why would this be?

  • Just to be pedantic, you're running the queries on the same org and using the same logic credentials?
    – Phil W
    Aug 18, 2020 at 12:57
  • Correct yes, all in Workbench Aug 18, 2020 at 13:00
  • I know that there are permissions issues - it used to be that a free license based user (i.e. a Dev Hub user) was able to see limits before using the sfdx CLI command, but that changed at some point. Perhaps this is a similar permissions problem?
    – Phil W
    Aug 18, 2020 at 13:18

1 Answer 1


Was able to replicate the scenario and you would need to enable 'View All' permission for 'Active Scratch Orgs' object so that when you execute query it returns expected results.

SELECT count() FROM ActiveScratchOrg.

enter image description here


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .