Tried the same but causing these errors
06.03.18 01:43:07.971 LISTENER ( PROCESS ) : o365: Creating user with properties: {'passwordProfile': {'password': '******', 'forceChangePasswordNextLogin': False}, 'accountEnabled': True, 'surname': 'c', 'mailNickname': 'sachin', 'userPrincipalName': 'sachin@xxxxx.com', 'immutableId': 'MjgyMjBkMDItYjU1NS0xMDM3LThmNjctZTcwYTY1NmVhZjli', 'otherMails': 'sachin@xxxxx.com', 'displayName': 'sachin', 'givenName': 'sachin', 'usageLocation': 'US'}
06.03.18 01:43:08.340 LISTENER ( PROCESS ) : o365: status: 200 (OK) (GET https://graph.windows.net/71f78fec-7013-49a4-aba0-747f99e381ec/users?api-version=1.6&%24filter=immutableId+eq+%27MjgyMjBkMDItYjU1NS0xMDM3LThmNjctZTcwYTY1NmVhZjli%27)
06.03.18 01:43:11.462 LISTENER ( PROCESS ) : o365: status: 400 (FAIL) Code: Request_BadRequest (POST https://graph.windows.net/71f78fec-7013-49a4-aba0-747f99e381ec/users?api-version=1.6)
06.03.18 01:43:11.464 LISTENER ( ERROR ) : o365: An error occurred while processing the write request.
Traceback (most recent call last):
File "/usr/lib/univention-directory-listener/system/office365-user.py", line 272, in handler
new_user = ol.create_user(new)
File "/usr/lib/pymodules/python2.7/univention/office365/listener.py", line 138, in create_user
self.ah.create_user(attributes)
File "/usr/lib/pymodules/python2.7/univention/office365/azure_handler.py", line 300, in create_user
obj_id={"key": "immutableId", "value": attributes["immutableId"]})
File "/usr/lib/pymodules/python2.7/univention/office365/azure_handler.py", line 291, in _create_object
return self.call_api("POST", url, attributes)
File "/usr/lib/pymodules/python2.7/univention/office365/azure_handler.py", line 227, in call_api
raise ApiError(response)
univention.office365.azure_handler.ApiError: An error occurred while processing the write request.
06.03.18 01:43:11.475 LISTENER ( WARN ) : handler: office365-user (failed)
06.03.18 01:48:21.279 LISTENER ( PROCESS ) : updating 'uid=sachin,cn=users,dc=ad,dc=xxxxxx,dc=com' command d
06.03.18 01:48:21.282 LISTENER ( PROCESS ) : samba4-idmap: removing entry for S-1-5-21-3046349026-1776158987-1028525861-1119
06.03.18 01:48:21.306 LISTENER ( PROCESS ) : updating 'cn=Domain Users,cn=groups,dc=ad,dc=xxxxx,dc=com' command m