Programmatically add/remove user codes to smartlock via API

You might find this useful for your needs: