Site icon EfmSoft

What does Windows error code 1308 (ERROR_INVALID_PRIMARY_GROUP) mean?

 
Previous Next
ERROR_INVALID_OWNER ERROR_NO_IMPERSONATION_TOKEN

ERROR_INVALID_PRIMARY_GROUP

ERROR_INVALID_PRIMARY_GROUP (1308, 0x0000051C) means that the SID supplied as the primary group of a security descriptor cannot be assigned in this context. The primary group is security-descriptor metadata and is not the same thing as the object's owner or its access control list.

Why this field is often unnecessary

Windows access tokens contain a default primary-group SID, which may be used for security descriptors created on behalf of that token. Most application code does not need to set an object's primary group at all. Setting GROUP_SECURITY_INFORMATION unnecessarily can turn an otherwise valid ownership or ACL update into a failed operation.

How to investigate

See Microsoft documentation for access tokens and SetSecurityInfo.


Looking for a different code? Search another status or error code.

Exit mobile version