Gets or sets the default GID (64-bit) for new user profiles in the zone.


long UserDefaultPrimaryGroup {get; set;}

Property value

The GID. If set to -1, Centrify uses private groups for new user profiles (see UseAutoPrivateGroup).


This property returns an error if the default GID has not been defined. Call the IsUserDefaultPrimaryGroupDefined property to determine whether the default GID is defined.

This property uses a 64-bit value for use in .NET modules. Use the UserDefaultGid property for VBScript.


UserDefaultPrimaryGroup may throw one of the following exceptions:

  • InvalidOperationException if you try to get the default GID and it has not been defined.
  • FormatException if the default GID value is not valid.