Univention Bugzilla – Bug 56028
Removal of attributes does not get synced to Azure
Last modified: 2023-05-30 09:38:23 CEST
While debugging #55984 https://forge.univention.org/bugzilla/show_bug.cgi?id=55984 I noticed that once I set a value like `mobilePhone`, `buisnessPhone` or many other non-essential values, the values don't get removed from the azure user. Azure supports setting values back to null, but it is not implemented in our connector. Before motifying(or deactivating) a user We filter out all none values and thus will never reset them back to empty. azureobjects.py: 401 │ def update(self, other): 402 │ │ # type: ('AzureObject') -> Dict[str, Any] 403 │ │ """""" 404 │ │ data = (self - other).get_not_none_values_as_dict() `data` will be the MSGraph update request payload later in the code.
The test: 92_office365/21_phone_number_sync.py can reproduce this bug if the last two lines are not commented out.