---
id: "windows_sid"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["software", "useraccounts"]
langs: ["common"]
quality: 75
url: "http://registry.apicrafter.io/datatype/windows_sid"
---

# Windows security identifier (SID) (`windows_sid`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Identifier of a security principal in Microsoft Windows, such as a user account, group, computer or service. Its text form is S-1- followed by the identifier authority and up to 15 subauthorities, all decimal and separated by hyphens. Domain and local accounts have SIDs starting with S-1-5-21. Well-known SIDs, such as S-1-5-32-544 for the local Administrators group, are the same on all systems.

- Personal data (PII): no
- Categories: Software development (software), User accounts in products and services (useraccounts)
- Countries: global
- Languages: Common to most languages (common)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^S-1-\d+(?:-\d+){1,15}$
```

## Examples

- `S-1-5-32-544` — Well-known SID of the built-in Administrators group
- `S-1-1-0` — Well-known SID World, the group of all users
- `S-1-5-80-859482183-879914841-863379149-1145462774-2388618682` — Service SID of the dnscache service
- `S-1-5` (invalid example) — An identifier authority without subauthorities

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/Security_Identifier>
- doc: <https://learn.microsoft.com/en-us/windows-server/identity/ad-ds/manage/understand-security-identifiers>

## Quality

Score 75/100. Missing: mapping (Wikidata, Schema.org, ...), translation, detector coverage.

JSON: <http://registry.apicrafter.io/api/v1/datatypes/windows_sid.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/software/windows_sid.yaml>
