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

<pre lang="bash">
realm discover domain.com

To check if AD user is working.

<pre lang="bash">
id user@ad.example.com

To check if AD group is working.

<pre lang="bash">
getent group ad-group