New user accounts are created but old accounts in office365 can’t able to activate sso
03.11.17 08:28:51.213 LISTENER ( ERROR ) : o365(D): office365-user.handler:263 new is enabled.
03.11.17 08:28:51.214 LISTENER ( ERROR ) : o365(D): office365-user.handler:270 new_enabled and not old_enabled -> NEW or REACTIVATED (uid=sudesh,cn=users,dc=urolime,dc=local)
03.11.17 08:28:51.214 LISTENER ( ERROR ) : o365(D): listener.create_user:98 udm_attrs={'mail': 'sudesh@devopsin.com', 'givenName': 'sudesh', 'displayName': 'sudesh a', 'mailPrimaryAddress': 'sudesh@devopsin.com', 'sn': 'a'}
03.11.17 08:28:51.215 LISTENER ( ERROR ) : o365(I): azure_handler._create_object:278 Creating user with properties: {'passwordProfile': {'password': '******', 'forceChangePasswordNextLogin': False}, 'accountEnabled': True, 'surname': 'a', 'mailNickname': 'sudesh', 'userPrincipalName': 'sudesh@devopsin.com', 'immutableId': 'ODMzMmIwZDYtNTRkYy0xMDM3LTgyNWQtODUyY2I2NzFhOTNi', 'otherMails': ['sudesh@devopsin.com'], 'displayName': 'sudesh a', 'givenName': 'sudesh', 'usageLocation': 'US'}
03.11.17 08:28:51.216 LISTENER ( ERROR ) : o365(D): azure_auth.get_access_token:341 Loading token from disk...
03.11.17 08:28:51.217 LISTENER ( ERROR ) : o365(D): azure_auth.get_access_token:348 Token valid until 2017-11-03T09:22:47.
03.11.17 08:28:51.219 LISTENER ( ERROR ) : o365(D): azure_handler.call_api:180 GET https://graph.windows.net/71f78fec-7013-49a4-aba0-747f99e381ec/users?api-version=1.6&%24filter=immutableId+eq+%27ODMzMmIwZDYtNTRkYy0xMDM3LTgyNWQtODUyY2I2NzFhOTNi%27 data: None
03.11.17 08:28:51.521 LISTENER ( ERROR ) : o365(I): azure_handler.call_api:212 status: 200 (OK) (GET https://graph.windows.net/71f78fec-7013-49a4-aba0-747f99e381ec/users?api-version=1.6&%24filter=immutableId+eq+%27ODMzMmIwZDYtNTRkYy0xMDM3LTgyNWQtODUyY2I2NzFhOTNi%27)
03.11.17 08:28:51.524 LISTENER ( ERROR ) : o365(D): azure_auth.get_access_token:348 Token valid until 2017-11-03T09:22:47.
03.11.17 08:28:51.525 LISTENER ( ERROR ) : o365(D): azure_handler.call_api:180 POST https://graph.windows.net/71f78fec-7013-49a4-aba0-747f99e381ec/users?api-version=1.6 data: {'passwordProfile': {'password': '******', 'forceChangePasswordNextLogin': False}, 'accountEnabled': True, 'surname': u'a', 'mailNickname': u'sudesh', 'userPrincipalName': u'sudesh@devopsin.com', 'immutableId': u'ODMzMmIwZDYtNTRkYy0xMDM3LTgyNWQtODUyY2I2NzFhOTNi', 'otherMails': ['sudesh@devopsin.com'], 'displayName': u'sudesh a', 'givenName': u'sudesh', 'usageLocation': u'US'}
03.11.17 08:28:54.761 LISTENER ( ERROR ) : o365(I): azure_handler.call_api:212 status: 400 (FAIL) Code: Request_BadRequest (POST https://graph.windows.net/71f78fec-7013-49a4-aba0-747f99e381ec/users?api-version=1.6)
03.11.17 08:28:54.763 LISTENER ( ERROR ) : o365(E): azure_handler.__init__:143 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.
03.11.17 08:28:54.768 LISTENER ( WARN ) : handler: office365-user (failed)