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

Export User #69

Open
matcaampos opened this issue Jul 20, 2021 · 2 comments
Open

Export User #69

matcaampos opened this issue Jul 20, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@matcaampos
Copy link

Hi Fabien, I'm trying to export the User object, but in the User.json i can't receive the profileId, and this field is required when i'll import the users on other org.

@FabienTaillon FabienTaillon added the enhancement New feature or request label Jul 20, 2021
@FabienTaillon
Copy link
Member

Hi @matcaampos, originally these commands were built to populate Scratch Orgs, where you don't have your existing users, so I agree that exporting/importing users may not work as expected.

I'm flagging this as an enhancement because I've seen several use cases to make the commands more than just scratch org related.

Also, you're not seeing the Profile Id because the command removes all lookups that have not been extracted first (so if you export a Contact without exporting the Account first, Contact.AccountId will be empty in the json).

I tried to run sfdx texei:data:export -o Profile,User -d ./data but unfortunately it doesn't work because Profiles are not creatable beside the Metadata API, so importing them would not work.

I'll actually have another update to do that may fix this too, so that's good to have it in mind before I start working on it, thanks for the feedback.

I don't think this will land before a few weeks though so you may want to use another solution in the meantime.

@matcaampos
Copy link
Author

Thanks Fabien for your, help, this is so helpful for me, really create new data every time scratch org are created is so boring.

I'll continue testing and learning your extension, tks a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants