Modifying existing Users with Office 365 Connector

Hello,

i have the folloewing Problem:
I used to have UCS (4.1-5) connected to Office365 via a Delta sync and the AD-Connector.

After a failed Upgrade to a newer Version, i had to restore my installation from an Backup. This led to my Delta Sync not working anymore.
I upgraded my restored System to Version 4.4-5 and i use The Office 365 Connector now, unfortunately i can not alter the already existing Users in AD.
Following error is in the listener.log

26.08.20 09:06:00.080 LISTENER ( PROCESS ) : o365: Modifying user with object_id u’81ecb576-a974-45ff-b67f-5b25160b4920’ (defaultADconnection) and modifications {‘otherMails’: [‘sth@domain.com’, ‘alias@domain.com’, ‘alias@domain.com’, ‘testest@domain.com’, ‘philipp.wieseckel@mail.domain.com’, ‘philipp.wieseck
el@domain.com’, ‘alias3@domain.com’, ‘ppwieseckel@domain.com’, ‘konferenz@domain.com’], ‘userPrincipalName’: ‘philipp.wieseckel@domain.com’}…
26.08.20 09:06:00.238 LISTENER ( PROCESS ) : o365: status: 404 (FAIL) Code: Request_ResourceNotFound (PATCH https://graph.windows.net/f041a75f-617d-4fa3-8d89-99e9a4c18ae8/users/81ecb576-a974-45ff-b67f-5b25160b4920?api-version=1.6)
26.08.20 09:06:00.238 LISTENER ( ERROR ) : o365: Resource ‘81ecb576-a974-45ff-b67f-5b25160b4920’ does not exist or one of its queried reference-property objects are not present.
Traceback (most recent call last):
File “/usr/lib/univention-directory-listener/system/office365-user.py”, line 465, in handler
modify_user(ol, dn, new, old)
File “/usr/lib/univention-directory-listener/system/office365-user.py”, line 317, in modify_user
ol.modify_user(old, new)
File “/usr/lib/pymodules/python2.7/univention/office365/listener.py”, line 313, in modify_user
return self.ah.modify_user(object_id=object_id, modifications=attributes)
File “/usr/lib/pymodules/python2.7/univention/office365/azure_handler.py”, line 372, in modify_user
return self._modify_objects(object_type=“user”, object_id=object_id, modifications=modifications)
File “/usr/lib/pymodules/python2.7/univention/office365/azure_handler.py”, line 369, in _modify_objects
return self.call_api(“PATCH”, url, modifications)
File “/usr/lib/pymodules/python2.7/univention/office365/azure_handler.py”, line 230, in call_api
raise ResourceNotFoundError(response, adconnection_alias=self.adconnection_alias)
univention.office365.azure_handler.ResourceNotFoundError: Resource ‘81ecb576-a974-45ff-b67f-5b25160b4920’ does not exist or one of its queried reference-property objects are not present.

Hello @ppwieseckel,

UCS 4.1 is not maintained anymore. Please consider an upgrade to UCS 4.4 first. There have been changes in the app in the meantime because of API changes at Microsoft and they are not provided for UCS 4.1.

Best regards
Nico

Mastodon