-
Notifications
You must be signed in to change notification settings - Fork 245
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
Package installed for AdminsOnly installs for AllUsers #3536
Comments
I should also note that the equivalent sfdx command,
|
Thanks for the detailed report, George. SecurityType We'll have to compare with how SFDX runs the install to confirm what is happening here. Our code is doing very little over and above the API call, but the semantics of the SecurityType parameter are not well documented. |
Thank you @davidmreed . I notice that the NPSP MetaDeploy Installer (which I believe runs on CumulusCI) also installs the NPSP for AllUsers. Not sure if that's related to this issue or by design, but thought I'd mention it. |
@davidmreed Closing as I believe it's an SFDX issue: forcedotcom/cli#2059 |
@georgeslater @davidmreed API documentation (https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_packageinstallrequest.htm) says the security type is |
Describe the bug
We have a build process that generates a 2GP Feature Test Package, installs it in a scratch org and runs tests.
If I install the package version via the Salesforce UI (package installation link), and select install for Admins Only, other profiles such as the Minimum Access - Salesforce profile do not get any package permissions.
However if I install the package version via the
install_managed
command, even when I specify security_type NONE it gives all the package permissions to the Minimum Access - Salesforce profile. This includes FLS, Custom Permissions, Custom Metadata access etc.In our case, this causes two tests to fail in our CI build (which were passing with the same codebase late Nov 2022). In the build process we are using the
install_2gp_commit
flow but I have narrowed it down specifically to theinstall_managed
task.Reproduction steps
Run the install_managed task to install any package version (it is not clear whether this just affects 2GP or also 1GP)
cci task run install_managed --security_type NONE --version 04txxxxxxxxxxxx --org perms-bug --password xxxxxxx
Your CumulusCI and Python versions
CumulusCI: 3.70
Python: 3.9.1
Operating System
MacOS 12.5.1
Windows environment
No response
CumulusCI installation method
None
Error Gist
No response
Additional information
Unfortunately adding --debug does not show me how the package install request is constructed
The text was updated successfully, but these errors were encountered: