-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
win_group_membership "Some or all identity references could not be translated." #502
Comments
The code cannot translate the user ([System.Security.Principal.NTAccount]'user2@domain').Translate([System.Security.Principal.SecurityIdentifier]) This in turn uses some internal Win32 APIs to translate the name to a SID. Unfortunately there's not much else the module can do, if it cannot translate the name to a SID then it cannot work. Are you sure you have the correct UPN, is it missing a |
The UPN looks correct to me. It doesn't end with a |
The UPN needs to be the full UPN and not just the netbios name. So if it’s |
@alphaxr6 did the above solve your problem? |
Nope, still the same issue unfortunately |
So what happens when you run - win_shell: |
$user = 'whatever you use for the group member name'
([System.Security.Principal.NTAccount]$user).Translate([System.Security.Principal.SecurityIdentifier]) This is exactly what the |
SUMMARY
Error "Some or all identity references could not be translated." when trying to add domain user to local group on windows server
ISSUE TYPE
COMPONENT NAME
win_group_membership
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
STEPS TO REPRODUCE
EXPECTED RESULTS
Add the domain user account into the local group Administrators of a windows server
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: