ERROR_MEMBER_IN_GROUP - 1320 (0x528)
Either the specified user account is already a member of the specified group, or the specified group cannot be deleted because it contains a member.
Updated: Feb 21, 2026
Technical Meaning
The ERROR_MEMBER_IN_GROUP error code, with the numeric value of 1320 (0x528), is returned when a specific operation related to group membership encounters an issue. This error can manifest in two primary scenarios:
- The specified user account is already a member of the specified group.
- The specified group cannot be deleted because it contains members.
Error Details
This error code indicates that the system attempted to add or remove a user from a group, but encountered an obstacle. Specifically, if the operation was intended to add a user who is already a member, or if the operation was to delete a group with existing members, this error will be returned.
Usage Context
This error code can appear in various contexts where group membership operations are performed, such as during administrative tasks involving user management and group policy enforcement. It is particularly relevant when dealing with Active Directory groups within Windows environments.
Developer Interpretation
When encountering ERROR_MEMBER_IN_GROUP, developers should consider the following:
- Check Membership Status: Verify if the specified user account is already a member of the target group before attempting to add or remove them. This can be done through API calls such as
NetLocalGroupAddMembersorNetUserModalsGet. - Group Deletion Constraints: Ensure that any groups intended for deletion do not contain members, as this operation will fail with
ERROR_MEMBER_IN_GROUP. Developers should implement checks to prevent accidental group deletions by verifying the group's membership status before proceeding with the delete operation.
Related Errors
ERROR_GROUP_NOT_EMPTY(1324): This error is similar in nature but specifically indicates that a group cannot be deleted because it contains members, which aligns closely with the scenario described byERROR_MEMBER_IN_GROUP.
FAQ
Q: What does ERROR_MEMBER_IN_GROUP mean?
A: It means that an attempt to modify (add or remove) a user from a group failed due to the specified user already being a member of the group, or because the target group cannot be deleted as it contains members.
Q: How can I handle this error in my application?
A: Implement checks to ensure that users are not added to groups where they are already members. For group deletion operations, verify that the group is empty before attempting to delete it.
Summary
ERROR_MEMBER_IN_GROUP is a specific error code indicating issues related to user and group management in Windows environments. Developers should carefully manage group membership operations by checking for existing memberships and ensuring groups are empty before performing deletions to avoid this error.