> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Player Segments

> Group PlayFab players into segments in Game Manager, monitor matching player counts, and trigger automatic or manual custom actions on each segment.

Players can be collected together into a segment, with the idea that all players in the segment meet certain conditions (filters).

Once the segment is defined, you can monitor the total number of players in the segment and run custom actions on those players automatically or manually.

## Access players segments

To access player segments:

* Navigate to **Players (1)** in the menu.
* Select the **Segments** tab **(2)**.

<img src="https://mintcdn.com/microsoft-4404708b/U1LR64ZWxo45eXwl/images/playfab/player-progression/player-data/tutorials/game-manager-access-player-segments.png?fit=max&auto=format&n=U1LR64ZWxo45eXwl&q=85&s=f810f346dba5ad1e7fe4cbc5d53e7aa8" alt="Game Manager - Players - Access Segments" width="1024" height="700" data-path="images/playfab/player-progression/player-data/tutorials/game-manager-access-player-segments.png" />

## Overview

The **Segments** page displays the segments that you currently have defined, and offers basic management capabilities.

1. Use the **NEW SEGMENT (1)** button to create a new segment.
2. The segment **ID (2)** uniquely identifies the segment.
3. The segment **Name (3)** identifies the player(s).
4. The **Matching players (4)** area displays the total number of players matching the segment filter.
5. Using the check boxes **(5)** to the left of the screen, you can select certain segments, and **X Delete** or **> Run Task...** custom actions on the chosen segments.

<img src="https://mintcdn.com/microsoft-4404708b/N3T1ucKV7zIMBudj/images/playfab/player-progression/player-data/tutorials/game-manager-players-segments-page.png?fit=max&auto=format&n=N3T1ucKV7zIMBudj&q=85&s=1015e6c88176ed5fb501575e3be05662" alt="Game Manager - Players - Segments page" width="966" height="1034" data-path="images/playfab/player-progression/player-data/tutorials/game-manager-players-segments-page.png" />

* For more information about defining segments and the filtering criteria, see our tutorial on [Player Segment configuration](/services/playfab/player-progression/player-data/player-segment-configuration).

* For more information about executing custom code for all players in a segment (as a one-time event, or on a regular schedule), see our tutorial on [Bulk Actions for an Entire Player Segment](/services/playfab/data-analytics/acting-data/action-rules-using-cloudscript-actions-with-playstream).


## Related topics

- [Player Segment configuration](/services/playfab/player-progression/player-data/player-segment-configuration.md)
- [Segment Configuration](/services/playfab/live-service-management/game-configuration/segmentation/segmentation-configuration.md)
- [PFSegmentsGetPlayersInSegmentRequest](/services/playfab/api-references/c/pfsegmentstypes/structs/pfsegmentsgetplayersinsegmentrequest.md)
- [PFSegmentsGetPlayerSegmentsResult](/services/playfab/api-references/c/pfsegmentstypes/structs/pfsegmentsgetplayersegmentsresult.md)
- [PFSegmentsServerGetPlayersInSegmentAsync](/services/playfab/api-references/c/pfsegments/functions/pfsegmentsservergetplayersinsegmentasync.md)
