get_owner_id function

Get ownerId based on credentials