<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "os",
  "identifier" : "/documentation/os/os_workgroup_join_token_t",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "os"
    ],
    "preciseIdentifier" : "c:@T@os_workgroup_join_token_t"
  },
  "title" : "os_workgroup_join_token_t"
}
-->

# os_workgroup_join_token_t

An opaque token that represents a connection between a thread and a workgroup.

```
typedef struct os_workgroup_join_token_opaque_s * os_workgroup_join_token_t;
```

## Discussion

You provide an uninitialized token structure when calling the `os_workgroup_join_self` function, which initializes the structure and fills it with information. Use that token structure in a subsequent call to `os_workgroup_leave_self` to remove the thread from the workgroup.

> Important:
> You must provide the original thread, workgroup, and token when removing a thread from its workgroup. If the values don’t match, the system aborts your process.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)