Get Group Information
Fetch a specific group by ID from your Traccar server.
WARNING
Standard users can only access groups they have been granted access to. Admins and managers can access any group.
Usage
Use the ThingsTelemetry\Traccar\Facades\Group::get(int $id) method to retrieve a single group.
php
use ThingsTelemetry\Traccar\Facades\Group;
$group = Group::get(1); // ThingsTelemetry\Traccar\Dto\GroupDataResult
The response is an instance of ThingsTelemetry\Traccar\Dto\GroupData.
php
$group->id; // 1
$group->name; // "Vehicles"
$group->groupId; // null (top-level group)
$group->attributes; // ['color' => 'blue', 'icon' => 'truck']Key Result Items
id→?intUnique group identifier.name→stringHuman-readable group name.groupId→?intParent group ID (null for top-level groups).attributes→array<string, mixed>Custom attributes for the group.
Related Operations
- Get All Groups - Fetch all accessible groups
- Create Group - Create a new group
- Update Group - Update an existing group
- Delete Group - Remove a group