Is there a way to get the username from the SID with ansible?
Ansible has the full power of PowerShell available at hand, just find out how to do it there and then use win_shell to execute the task. A quick Google search brings up a few pages on how this can be done in PowerShell, the one I find easiest to use is https://www.morgantechspace.com/2015/09/convert-sid-to-username-using-powershell.html.
Thanks
Jordan
I should have been more specific in my question. Meant native to ansible. I’ll jump to powershell.