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

Trim whitespace in CSV input group list #822

Open adorton-adobe opened 1 year ago

adorton-adobe commented 1 year ago

Description

When using CSV as an identity source, there is apparently no trimming of whitespace from each group name in the groups column for a given user.

For example, these groups will be read and handled as expected:

"acrobat dc,all apps"

But if there is a space after the comma or some other extra whitespace, there is a negative impact on group matching. For example, in this string, only acrobat_dc will match for the user:

"acrobat dc, all apps"

Steps to reproduce

Expected behavior

We should trim the groups in order to ensure they match directory_groups in the group mapping.

Screenshots

n/a

Environment n/a