-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No way to specify Sandbox Access Group for org create sandbox
and org refresh sandbox
#3008
Comments
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support. |
This issue has been linked to a new work item: W-16699649 |
Server side support for ActivationUserGroupId was recently added back in API v61.0 so we'll add it to the CLI. Thank you for reporting! |
@alan-morey what's the exact error message you get when you set I tried with this def. file can see it set in the request (sandbox copy in progress): {
"ActivationUserGroupId": "<id for `test1` group>"
} request:
|
If I set the API version to
|
@cristiand391 I actually did not try using When I didn't see it in the v62 documentation or in the v61 documentation I assumed it wasn't supported. So, maybe this is just a documentation bug then? I did not think the field names of Either way, I like the way It would be nice if something similar could be done with |
@cristiand391 I tried the field {
"ActivationUserGroupId": "00G30000002HUShEAO",
"autoActivate": true
}
However when I specify {
"ActivationUserGroupId": "00G30000002HUShEAO",
"ApexClassId": "01pOO000001IyrZYAS",
"autoActivate": true
} sf org create sandbox -n alandev05 -l Developer -o PROD -f config/tmp.sandbox-def.json
=== Config Sandbox Request
Field Value
───────────────────── ──────────────────
ActivationUserGroupId 00G30000002HUShEAO
ApexClassId 01pOO000001IyrZYAS
AutoActivate true
SandboxName alandev05
LicenseType Developer
? Is the configuration correct? yes
Sandbox Create... done
Error (1): No such column 'ApexClassId' on sobject of type SandboxInfo |
weird, maybe an access issue? https://issues.salesforce.com/issue/a028c00000qPwkhAAC/no-such-column-apexclassid-on-entity-sandboxinfo-seen-when-creating-sandbox-through-tooling-api You can test access by querying the field via the tooling API:
|
Thanks for the tip, we'll add support for this (tracked internally as |
@cristiand391 Regarding the access issue for This seems more appropriate than assigning the "View All Data" permission which was the suggested workaround in the knowledge article you linked to above. It would be ideal if assigning "Manage Dev Sandboxes" permission was enough to get access to |
Thanks for the update 👍🏼 We've added support for |
Summary
When creating or refreshing a sandbox using
org create sandbox
ororg refresh sandbox
, there is no way to specify the sandbox access group, that corresponds to the SandboxInfo.ActivationUserGroupIdWithout 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
ororg refresh sandbox
and specify a sandbox access groupExpected result
org create sandbox
andorg 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 likeActivationUserGroupId
.Actual result
System Information
The text was updated successfully, but these errors were encountered: