You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please add the example of microsoft.ad.identity parameter. Its not clear in description how this should work and how it could change the sAMAccountName
The text was updated successfully, but these errors were encountered:
The identity field is only strictly necessary if you want to change the AD object name or path which are separate to the sAMAccountName. For example I have an AD user CN=testuser,CN=Users,DC=domain,DC=test with the sAMAccountName of test1. I do do the following to change the sAMAccountName.
- microsoft.ad.user:
name: testuser # Matches the first CN=... and is what appears in dsa.mscstate: presentsam_account_name: test2
The identity parameter is used only for trying to find a user that does not match what name and path specify. For example you want to change the user's name from testuser to otheruser
- microsoft.ad.user:
name: otheruseridentity: S-1-5-.... # Can be the objectGuid as wellstate: present
Instead of now creating a new user called otheruser it will modify the user object specified by identity to fit what is set there. I'll submit a PR to add an example of this but in your case it isn't needed for changing the sAMAccountName.
The PR #27 tries to add some more examples which hopefully helps. You are more than welcome to modify the examples or add some more notes to the docs if you think more can be said about it.
Please add the example of microsoft.ad.identity parameter. Its not clear in description how this should work and how it could change the sAMAccountName
The text was updated successfully, but these errors were encountered: