Within NAC you can create a Azure AD connection
But when we use this connection within a form with the "people" form control we only can retrieve users.
When we use the connection within data sources then we can only filter users.
There are reason why a group needs to be selected as well.
Please add a groups control within forms, or expand the people control to allow groups (preferred) or allow the ability to query groups within the datasource creation.