sfpowerscripts icon indicating copy to clipboard operation
sfpowerscripts copied to clipboard

sfdxAuthURL check prevents use of free DX users

Open yippie opened this issue 3 years ago • 0 comments

Describe the bug As a partner, our CI Users are "Salesforce Limited Access - Free" https://developer.salesforce.com/docs/atlas.en-us.packagingGuide.meta/packagingGuide/dev_hub_license.htm

When using this license, the prepare command fails:

ERROR running sfpowerscripts:orchestrator:prepare: Unable to execute command .. INVALID_TYPE: sObject type 'Organization' is not supported.

This is because the Organization object is queried during that check (but the queried data is not used in this particular check) and that object required the View Setup and Config permission, which the free license cannot be assigned.

To Reproduce Steps to reproduce the behavior:

  1. Have CI user WITHOUT View Setup and Config System Permission, such as the "Salesforce Limited Access - Free" DX users.
  2. Run sfpowerscripts:orchestrator:prepare as this user

Expected behavior Scratch org pool to be built.

Acutal: ERROR running sfpowerscripts:orchestrator:prepare: Unable to execute command .. INVALID_TYPE: sObject type 'Organization' is not supported.

Platform Details (please complete the following information):

  • Version : @dxatscale/sfpowerscripts 13.2.4 (alpha)
  • Salesforce CLI(sfdx cli) Version: sfdx-cli/7.120.0 linux-x64 node-v14.18.0
  • CI Platform: CircleCI

yippie avatar May 05 '22 15:05 yippie