[SD-835] Endpoint for Adding a New User when AD is active.
Merge branch 'SD-835'
[SD-835] Fixing KeyError