cli
cli copied to clipboard
No way to specify Sandbox Access Group for `org create sandbox` and `org refresh sandbox`
Summary
When creating or refreshing a sandbox using org create sandbox
or org refresh sandbox
, there is no way to specify the sandbox access group, that corresponds to the SandboxInfo.ActivationUserGroupId
Without this option I am unable to use these commands, particularly for automation in CD/CI environements. I have to always use the UI to create and refresh sandboxes, as our policy is to use that feature to restrict access on sandboxes to only those that are members of a specific public group.
Steps To Reproduce
Try to use org create sandbox
or org refresh sandbox
and specify a sandbox access group
Expected result
org create sandbox
and org refresh sandbox
should have an option to allow users to specify a public group, such as a new flag or updating the sandbox definition to include an option like ActivationUserGroupId
.
Actual result
- No flag option available to specify a public group for sandbox access
- Sandbox definition does not have an option to specify a public group for sandbox access, per documentation,
System Information
{
"architecture": "linux-x64",
"cliVersion": "@salesforce/cli/2.57.7",
"nodeVersion": "node-v18.20.3",
"osVersion": "Linux 6.8.0-40-generic",
"rootPath": "/home/alan.morey/.volta/tools/image/packages/@salesforce/cli/lib/node_modules/@salesforce/cli",
"shell": "zsh",
"pluginVersions": [
"@oclif/plugin-autocomplete 3.2.2 (core)",
"@oclif/plugin-commands 4.0.13 (core)",
"@oclif/plugin-help 6.2.10 (core)",
"@oclif/plugin-not-found 3.2.18 (core)",
"@oclif/plugin-plugins 5.4.6 (core)",
"@oclif/plugin-search 1.2.7 (core)",
"@oclif/plugin-update 4.5.5 (core)",
"@oclif/plugin-version 2.2.11 (core)",
"@oclif/plugin-warn-if-update-available 3.1.13 (core)",
"@oclif/plugin-which 3.2.12 (core)",
"@salesforce/cli 2.57.7 (core)",
"apex 3.4.5 (core)",
"api 1.2.1 (core)",
"auth 3.6.51 (core)",
"data 3.6.3 (core)",
"deploy-retrieve 3.12.0 (core)",
"dev 2.3.4 (user) published 84 days ago (Fri Jun 14 2024) (latest is 2.4.2)",
"info 3.4.2 (core)",
"limits 3.3.27 (core)",
"marketplace 1.2.24 (core)",
"org 4.5.4 (core)",
"packaging 2.8.0 (core)",
"schema 3.3.26 (core)",
"settings 2.3.15 (core)",
"sobject 1.4.32 (core)",
"source 3.5.16 (core)",
"telemetry 3.6.10 (core)",
"templates 56.3.14 (core)",
"trust 3.7.25 (core)",
"user 3.5.26 (core)",
"cli-plugin 1.0.0 (link) /home/alan.morey/repos/salesforce/cli-plugin",
"gr-sfdx-plugin 0.0.0 (link) /home/alan.morey/repos/salesforce/gr-sfdx-plugin"
]
}