EffectivePrimaryGroup

Gets the GID of the effective primary group from the user profile.

Syntax

long EffectivePrimaryGroup {get;}

Property value

The contents of the primary group field of the effective profile for this user.

Discussion

You must call the ResolveEffectiveProfile method before calling this property. If you don’t do so, this property returns the unresolved value at the current hierarchical level, or null if there is none.