I understand that you are experiencing issue while performing sudo for specific user.
I would request you to check the sssd configuration and consider disabling implicit files domain for id_provider = files if not already done. Please modify the below parameter in the /etc/sssd/sssd.conf:
Once the above changes are done. Please restart sssd, make sure to clear the cache while performing the operation and verify sudo access.
However if you still experience issues after making the changes, you may consider checking the below commands/logs to troubleshoot further:
$ id username $ getent passwd username
logs: /var/log/messages /var/log/secure sssd logs
You may also consider enabling debug logs on the sssd to get more clues on the issue.
Transfer EC2 and Savings Plan from one AWS Account to anotherAccepted Answerasked a year ago
Cli "Unable to locate credentials" on EC2 instanceasked 6 months ago
How to migrate Lightsail instances from one AWS account to anotherasked 4 days ago
Unable to 'sudo git clone...' a repository using ubuntu instanceasked a year ago
Unable to access EC2 instance?asked 8 months ago
One user unable to sudo on specific EC2 instances (g4/g5.*). PAM account management error is thrown while trying to sudoasked a month ago
AWS CLI does not pick up credentials file with sudo (EC2, Linux)asked 10 months ago
Accidentally change ownership of /etc/sudoer back to ec2-userasked 7 months ago
sudo usersasked 4 years ago
Workmail Failing on iPhone for One User Account Onlyasked 10 months ago