Closed Luci2015 closed 1 year ago
Thank you for this but I've decided to take a different approach. Since the central issue is that the email address is needed to identify the user for the UMAPI call, I've modified the CSV write function to write the email address instead of the username. The read function now checks for email primarily and only uses username if email is not provided.
As a consequence of this change, I updated the user key format to include email address.
The main changes are here - https://github.com/adobe-apiplatform/user-sync.py/commit/651d2117150d59030276297867eeef2d6c09093b
I've also updated all tests that were impacted by the key format change.
Summary
Testing Steps
--adobe-only-user-action write-file a.csv
argumentusername
field -> it should be the current account's email, that the API will use further for other action.--adobe-only-user-action delete --adobe-only-user-list a.csv
and the account should get deleted from admin consoleFixes #808