Configuration of local user names can be done with the Cisco-IOS-XR-aaa-lib-cfg model. Here are some simple sample apps that make use of that model:
nc-create-xr-aaa-lib-cfg-20-ydk.py - user name with one task group
nc-create-xr-aaa-lib-cfg-22-ydk.py - user name with two task groups
nc-delete-xr-aaa-lib-cfg-20-ydk.py - delete all user name config
As usual, you can find boilerplates apps for the CRUD service at:
nc-create-xr-aaa-lib-cfg-10-ydk.py - create boilerplate
nc-delete-xr-aaa-lib-cfg-10-ydk.py - delete boilerplate
nc-read-xr-aaa-lib-cfg-10-ydk.py - read boilerplate
nc-update-xr-aaa-lib-cfg-10-ydk.py - update boilerplate
Happy coding!