IsPrimaryGroupDefined

Determines whether there is a primary GID defined for this user in this zone.

Syntax

bool IsPrimaryGroupDefined {get; set;}

Property value

Returns true if there is a primary GID defined for this user. Set this property false to clear the GID.

Discussion

The user’s primary group identifier (GID) can be associated with an Active Directory group or be a separate “dedicated-user” group that is only used in the UNIX operating environment. This property indicates whether a group profile for that GID has been defined in the zone.

Exceptions

IsPrimaryGroupDefined throws an InvalidOperationException if the primary GID has not been defined and you attempt to set this property true.