5

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 at 12:57
  • Correct yes, all in Workbench – Bryan Anderson Aug 18 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 at 13:18
4

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

Thanks,

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.