You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
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.
The text was updated successfully, but these errors were encountered: