-
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
Package Install with AdminsOnly option is changing all the profiles #2059
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. |
We have determined that the issue you reported exists in code owned by another team that uses only the official support channels. To ensure that your issue is addressed, open an official Salesforce customer support ticket with a link to this issue. We encourage anyone experiencing this issue to do the same to increase the priority. We will keep this issue open for the community to collaborate on. |
@georgeslater @davidmreed I could see this issue exist even in SF CLI (1.x) version(Earlier was facing in sfdx CLI). Is there any fix provided for this issue? If yes, please give the version number to which I need to update. |
@ar-srinivas - can you please uninstall any old CLIs (sfdx v7 or sf v1) then install the latest sf (v2) and try your flow again? Ensure you're using a recent (or latest) packaging plugin version as well. |
@shetzel I have uninstalled sfdx v7 and sf v1 and installed the latest sf CLI 2.14.6 but still facing the same issue. Identity User - A non admin profile impacted after installing a package with AdminsOnly option. See the screen shot where the apex class, custom permissions are added. |
@shetzel Could you please let me know if you have any further findings on this issue? |
sf package install -p -b 0 -a all -s AdminsOnly -t Mixed -o --api-version=57.0 -r --json sf package install -p -b 0 -a all -s AdminsOnly -t Mixed -o --api-version=55.0 -r --json Only the API version makes the difference on the install. With 55, we could see the package installs for all users and with 57 it installs only for Admins. |
@ar-srinivas - I don't have any updates for this. I'll try to get an answer from the packaging team soon. However, if the API version changes the behavior, that indicates a server side change and not related to CLI code. If you want a quicker response from the packaging team you should open a support case. If using API version 57.0 fixes this for you then I would just use that if you can. |
This appears to be fixed in current server side code so closing this. If it's still a problem, the best and fastest way to a workaround or solution is to open a support case for the packaging experts. |
Summary
When we run
sfdx force:package:install -p <*****> -b 0 -u <****> --apiversion=55.0 -r -s AdminsOnly --json
it should install and change the profile of the admin but it is changing the non admin profiles and also assigning the@@permissions
. When we do the same from a browser and selecting AdminsOnly option it is changing only the admin profile.Steps To Reproduce:
Run
sfdx force:package:install -p <*****> -b 0 -u <****> --apiversion=55.0 -r -s AdminsOnly --json
and see the profiles modified. It changes are non admin and admin profilesExpected result
It should modify only the admin profiles
Actual result
Updating admin and non admin profiles
System Information
We have seen this behaviour starting from 7.180 to the latest 7.190
The text was updated successfully, but these errors were encountered: