@@ -113,7 +113,6 @@ def __init__(self, caller_options):
113113 self .primary_users_created = set ()
114114 self .secondary_users_created = set ()
115115 self .updated_user_keys = set ()
116- self .primary_users_by_email : dict [str , dict ] = {}
117116
118117 # stray key input path comes in, stray_list_output_path goes out
119118 self .stray_key_map = {}
@@ -922,9 +921,9 @@ def update_umapi_users_for_connector(self, umapi_info, umapi_connector: UmapiCon
922921 # Walk all the adobe users, getting their group data, matching them with directory users,
923922 # and adjusting their attribute and group data accordingly.
924923 for umapi_user in umapi_users :
925- # if target is ESM, then treat existing AdobeID (i.e. businessID) as linked identity type
926- if umapi_connector .uses_business_id and umapi_user [ 'email' ] in self . primary_users_by_email :
927- umapi_user ['type' ] = self .primary_users_by_email [ umapi_user [ 'email' ]][ 'type ' ]
924+ # if target is ESM, then override identity type
925+ if umapi_connector .uses_business_id :
926+ umapi_user ['type' ] = self .options [ 'new_account_type ' ]
928927 # let save adobeID users to a seperate list
929928 self .filter_adobeID_user (umapi_user )
930929 # get the basic data about this user; initialize change markers to "no change"
@@ -953,9 +952,6 @@ def update_umapi_users_for_connector(self, umapi_info, umapi_connector: UmapiCon
953952
954953 self .map_email_override (umapi_user )
955954
956- if umapi_connector .is_primary :
957- self .primary_users_by_email [umapi_user ['email' ]] = umapi_user
958-
959955 directory_user = filtered_directory_user_by_user_key .get (user_key )
960956 if directory_user is None :
961957 # There's no selected directory user matching this adobe user
0 commit comments