Represents a User or Group that is a member of a public group.
create(), delete(), describeSObjects(), query(), retrieve(), getDeleted(), getUpdated()
| Field | Field Type | Field Properties | Description |
|---|---|---|---|
| GroupId | reference | Create | Required. ID of the Group. For information on IDs, see ID Field Type. |
| UserOrGroupId | reference | Create | Required. ID of the User or Group that is a direct member of the group. For information on IDs, see ID Field Type. |
A record exists for every User or Group who is a direct member of a public group whose Type field is set to Regular. Users who are indirect members of Regular public groups are not listed as group members. A User can be an indirect member of a group if he or she is in a UserRole above the direct group member in the hierarchy, or if he or she is a member of a group that is included as a subgroup in that group.
If you attempt to create a record that matches an existing record, the create() call simply returns the existing record.