Hello,
Thank you for posting in Q&A forum.
You seem to have an issue where some users, such as "A", do not appear to be members of a particular security group, but still gain permissions via the command line or are included in other groups.
This is causing issues as it's giving these users internet access. Here are a few suggestions:
- Check Group Policy: Ensure that there are no Group Policy settings that are automatically adding users to this group.
- Check Nested Groups: The user might be a part of a nested group that is a member of group A. Check if there are any nested groups within group A.
- Replication Issues: There might be a replication issue between your domain controllers. You can use tools like 'repadmin' or 'dcdiag' to check the health of your domain controllers and replication status.
- Update Group Membership: You can try to update the group membership manually. Remove the user from the group, update the group policy by running 'gpupdate /force' on the user's machine, and then add the user back to the group.
- Use PowerShell: You can use PowerShell to get a list of all the groups a user is a member of. This might give you more information than 'whoami /groups'. The command is 'Get-ADUser -Identity username -Properties MemberOf'. Remember to replace 'username' with the actual username of the user.
If you continue to experience issues, please provide more details about your environment, such as the version of Windows Server you're using, and any error messages you're seeing. This will help in providing a more accurate solution.
I hope the information above is helpful.
Best Regards,
Yanhong Liu
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.