You can see them in the Domains and Users page, under the domain Configuration section. User domains — NS8 documentation
If you’re looking for a command, try
api-cli run cluster/list-user-domains
APIs can be accessed from external hosts. Additional information here API server | NS8 dev manual