adobe-apiplatform / user-sync.py

Application for synchronizing Adobe customer directories via the User Management API
https://adobe-apiplatform.github.io/user-sync.py/en/user-manual/
MIT License
87 stars 67 forks source link

Update umapi.py #809

Closed Luci2015 closed 1 year ago

Luci2015 commented 1 year ago

Summary

Testing Steps

Fixes #808

adorton-adobe commented 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.