In Security Development Tool, in order to use Open the security test workspace button, it is necessary to have no user with type AD group in AX. In other words, there has to be no record in UserInfo table where accountType is equal to UserAccountType::ADGroup.
What is the purpose of having this check? Why is it necessary to have no AD groups? What are the potential consequences of disabling this check?
I have attached the screenshot of the error itself and the place in code which is responsible for this check.
P.S. This method could really use “select firstOnly RecId” instead of “select count(RecId)”