Here’s the command to check if instance is domain joined.

realm discover domain.com

To check if AD user is working.

id user@ad.example.com

To check if AD group is working.

getent group ad-group