Skip to content

Commit 8693fc7

Browse files
committed
Fix #26: use correct username and domain for dashboard users.
For some reason the username and domain returned by the dashboard for a user were being ignored when constructing the `user_key`. For federatedID users where the username is not the email, this caused the user key to differ from the one constructed for directory users.
1 parent 273e16b commit 8693fc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

user_sync/rules.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ def get_dashboard_user_key(dashboard_user):
663663
'''
664664
:type dashboard_user: dict
665665
'''
666-
return RuleProcessor.get_user_key(None, None, dashboard_user['email'])
666+
return RuleProcessor.get_user_key(dashboard_user['username'], dashboard_user['domain'], dashboard_user['email'])
667667

668668
@staticmethod
669669
def get_user_key(username, domain, email):

0 commit comments

Comments
 (0)