The following table contains a list of common errors that can occur based on the scope of the group being nested.
| HRESULT | Description |
|---|---|
| 0x8007001F | General failure. This error occurs if you attempt to:<ul><li>Add a domain local group to a global or universal group or a domain local group in another domain. Domain local groups can only be added as members to other domain local groups in the same domain.</li><li>Add a universal group to a global group. Universal groups can be added to universal and domain local groups, but not global groups.</li></ul> |
| 0x8007202F | ERROR_DS_CONSTRAINT_VIOLATION. This error occurs if you attempt to add a security group to another group in a domain running in mixed mode. Security groups cannot be nested in mixed mode; security groups can only be nested in native mode. |
Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
