---
schema_version: "1"
id: c940087c8eb8bde5fb8a9e93fa2a8877a55227bea40dbef2e3a90ecc909b5e69
title: GroupMember
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_groupmember.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_groupmember.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: e3aa074881eb61a4576376a2a1fbe6884d98cad11f279afadec99053f277933c
description: Represents a User or Group that is a member of a public group.
---
# GroupMember

Represents a User or Group that is a member of a public group.

## Supported Calls

create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()

## Fields

| Field | Details |
| --- | --- |
| GroupId | 
Type

reference

Properties

Create, Filter, Group, Sort

Description

Required. ID of the Group.

This is a relationship field.

Relationship Name

Group

Relationship Type

Lookup

Refers To

Group



 |
| UserOrGroupId | 

Type

reference

Properties

Create, Filter, Group, Sort

Description

Required. ID of the User or Group that is a direct member of the group.

This field is a polymorphic relationship field.

Relationship Name

UserOrGroup

Relationship Type

Lookup

Refers To

Group, User



 |

## Usage

If your group contains more than 10,000 members, for improved performance, you can adjust group membership using the GroupMember API object instead of the group's detail page in Setup. You can also adjust membership using the public group's access summary or user access policies in Setup.

A record exists for every User or Group who is a direct member of a public group whose Type field is set to Regular. User records that are indirect members of Regular public groups aren't 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 system simply returns the existing record.

#### See Also

- [Overview of Salesforce Objects and Fields](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_concepts.htm "Salesforce objects and fields are analogous to database tables and the table columns. Objects and fields structure data. For example, the central object in the Salesforce data model represents accounts—companies and organizations involved with your business, such as customers, partners, and competitors.")