| Previous | Next |
| ERROR_MEMBER_IN_ALIAS | ERROR_LOGON_NOT_GRANTED |
ERROR_ALIAS_EXISTS
Local-group creation collided with an existing alias object
In SAMR terminology an alias is a group type used for local-group membership. NetLocalGroupAdd creates a local group in the target security database, and SamrCreateAliasInDomain creates an alias object. ERROR_ALIAS_EXISTS means that create operation found an existing alias with the requested name; it does not describe an existing member relationship.
Query the existing local group and compare its SID, comment and intended role before accepting the collision as success. Avoid deleting the alias just to repeat provisioning: ACLs and policies can reference its SID. Also make sure the caller did not intend a global/domain group, because ERROR_GROUP_EXISTS covers that separate object type and API family.
What to inspect
- Open the existing local group on the exact target server.
- Compare SID and intended role before adopting the existing alias.
- Use NetLocalGroup membership/update APIs rather than recreating the object.
References
Looking for a different code? Search another status or error code.