Skip to content
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

Ability to retrieve / pull profiles with standard behavior in source tracked sandbox and scratch orgs. #1351

Closed
rom116 opened this issue Jan 7, 2022 · 3 comments
Labels
feature Issue or pull request for a new feature

Comments

@rom116
Copy link

rom116 commented Jan 7, 2022

Is your feature request related to a problem? Please describe.
Currently, in source tracked sandbox and scratch orgs, when we retrieve / pull profiles, it retrieves permissions for components in the package.xml PLUS all other components that are currently tracked.

Reference: https://developer.salesforce.com/docs/atlas.en-us.232.0.sfdx_dev.meta/sfdx_dev/sfdx_dev_source_tracking_source_tracking_profiles.htm

We would also like the option to override this behavior to retrieve/pull the "standard" way.

What are you trying to do
There are times when we want to retrieve the profile permissions for components that are ONLY listed in the package.xml or changeset from source tracked sandbox & scratch orgs.

Describe the solution you'd like
A parameter where we can override the default behavior
sfdx force:source:retrieve -x package.xml --profilestandardretrieve true
sfdx force:mdapi:retrieve -p ChangeSetName --profilestandardretrieve true

This will retrieve the profile permissions for only components that are listed in the package.xml or changeset/package.

Describe alternatives you've considered
Nothing elegant at this point.

Additional context
See Salesforce Reference Docs for current behavior in source tracked sandbox and scratch orgs.
https://developer.salesforce.com/docs/atlas.en-us.232.0.sfdx_dev.meta/sfdx_dev/sfdx_dev_source_tracking_source_tracking_profiles.htm

@rom116 rom116 added the feature Issue or pull request for a new feature label Jan 7, 2022
@github-actions
Copy link

github-actions bot commented Jan 7, 2022

Thank you for filing this feature request. We appreciate your feedback and will review the feature at our next grooming or sprint planning session. We prioritize feature requests with more upvotes and comments.

@uip-robot-zz
Copy link

This issue has been linked to a new work item: W-10395490

@WillieRuemmele
Copy link
Member

Hi - we've looked into supporting profiles in that way, and found it wasn't possible without a lot of hazardous rewrites #1785 (comment)

@WillieRuemmele WillieRuemmele closed this as not planned Won't fix, can't repro, duplicate, stale Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Issue or pull request for a new feature
Projects
None yet
Development

No branches or pull requests

3 participants