I am using v2.0.1 of servicenow from PyPi to interact with ServiceNow. I need to be able to look up a user in the sys_user table so I can find the sys_id assigned to them. If anyone has some sample code they can share it would be appreciated.
I have tried using the following with no success:
from servicenow import Connection
from servicenow import ServiceNow
conn = conn = Connection.Auth(username='abc', password='xyz', instance='demo')
user = ServiceNow.Base(conn)
user.__table__ = 'sys_user.do'
rec = user.fetch_all({'user_name': 'abc123'})
This fails with
AttributeError: 'Base' object has no attribute 'fetch_all'