Workflow Tools Control Yard

Home / Active Directory

SDDL and SID decoder

Paste a security descriptor string from sc sdshow, Get-Acl, icacls /save, a security template or an Active Directory attribute, and read it as owner, group and access entries in plain words.

Look up a SID

An Entra ID (Azure AD) user or group appears on a joined device as a SID that starts with S-1-12-1-. The four numbers after it are the object ID split into four 32-bit pieces, so each can be worked out from the other. Enter either one.

How to read an SDDL string

A security descriptor string has up to four parts, each introduced by a letter and a colon:

O:owner  G:primary group  D:flags(ace)(ace)...  S:flags(ace)(ace)...

D: is the DACL, the list that grants or denies access. S: is the SACL, which holds auditing entries and integrity labels. Each entry in parentheses is an ACE with six fields separated by semicolons:

(type;flags;rights;object GUID;inherited object GUID;trustee)

The rights field is either a run of two-letter codes or a hexadecimal access mask such as 0x1200a9. The trustee is a SID or one of the two-letter aliases listed below. ACEs are evaluated in order, and a deny that comes before an allow wins.

ACL flags

FlagMeaning
PProtected: the list does not inherit entries from the parent.
AIAuto-inherited: inherited entries have been applied to this list.
ARAuto-inherit requested for child objects.
NO_ACCESS_CONTROLNull ACL: there is no list, so everyone has full access.

ACE types

TypeMeaning
AAllow
DDeny
OAAllow, limited to one property, property set, extended right or child class
ODDeny, limited to one property, property set, extended right or child class
AUAudit
OUAudit, limited to one property, extended right or child class
ALAlarm (not used by Windows)
OLAlarm, object-specific (not used by Windows)
MLMandatory integrity label
XAAllow, only when the condition at the end of the entry is true
XDDeny, only when the condition at the end of the entry is true
XUAudit, only when the condition at the end of the entry is true
ZAAllow, object-specific and conditional
RAResource attribute (a classification property of the object)
SPCentral access policy ID
TLProcess trust label
FLAccess filter

ACE flags

FlagMeaning
OIObject inherit: child objects such as files inherit the entry.
CIContainer inherit: child containers such as subfolders and subkeys inherit the entry.
IOInherit only: the entry does not apply to the object itself, only to children.
NPNo propagate: only direct children inherit the entry.
IDInherited: the entry came from a parent object.
SAAudit successful access.
FAAudit failed access.
TPTrust-protected filter.
CRCritical entry.

Rights codes

The letters stand for bits in a 32-bit access mask. The low bits mean different things on different kinds of object, which is why the directory service codes also turn up in service descriptors.

CodeMaskDirectory objectService
CC0x1Create child objectsQuery configuration
DC0x2Delete child objectsChange configuration
LC0x4List contentsQuery status
SW0x8Validated write (self)Enumerate dependents
RP0x10Read propertyStart
WP0x20Write propertyStop
DT0x40Delete subtreePause and continue
LO0x80List objectInterrogate
CR0x100Extended right (control access)Send user-defined control codes
CodeMaskMeaning on any object
SD0x10000Delete
RC0x20000Read permissions
WD0x40000Change permissions
WO0x80000Take ownership
GA0x10000000Generic all
GX0x20000000Generic execute
GW0x40000000Generic write
GR0x80000000Generic read
FA0x1f01ffFile: full control
FR0x120089File: read
FW0x120116File: write
FX0x1200a0File: execute
KA0xf003fRegistry key: full control
KR0x20019Registry key: read
KW0x20006Registry key: write
KX0x20019Registry key: execute (same bits as read)

File and folder access masks

MaskicaclsMeaning
0x1f01ffFFull control
0x1301bfMModify
0x1200a9RXRead and execute
0x120089RRead
0x120116WWrite

SID aliases

Aliases for domain groups stand for a SID that includes the domain's own identifier, shown here as <domain>.

AliasAccountSID
AAAccess Control Assistance OperatorsS-1-5-32-579
ACAll Application PackagesS-1-15-2-1
ANAnonymous LogonS-1-5-7
AOAccount OperatorsS-1-5-32-548
APProtected UsersS-1-5-21-<domain>-525
ASAuthentication authority asserted identityS-1-18-1
AUAuthenticated UsersS-1-5-11
BABuilt-in AdministratorsS-1-5-32-544
BGBuilt-in GuestsS-1-5-32-546
BOBackup OperatorsS-1-5-32-551
BUBuilt-in UsersS-1-5-32-545
CACert PublishersS-1-5-21-<domain>-517
CDCertificate Service DCOM AccessS-1-5-32-574
CGCreator GroupS-1-3-1
CNCloneable Domain ControllersS-1-5-21-<domain>-522
COCreator OwnerS-1-3-0
CYCryptographic OperatorsS-1-5-32-569
DADomain AdminsS-1-5-21-<domain>-512
DCDomain ComputersS-1-5-21-<domain>-515
DDDomain ControllersS-1-5-21-<domain>-516
DGDomain GuestsS-1-5-21-<domain>-514
DUDomain UsersS-1-5-21-<domain>-513
EAEnterprise AdminsS-1-5-21-<domain>-519
EDEnterprise Domain ControllersS-1-5-9
EKEnterprise Key AdminsS-1-5-21-<domain>-527
EREvent Log ReadersS-1-5-32-573
ESRDS Endpoint ServersS-1-5-32-576
HAHyper-V AdministratorsS-1-5-32-578
HIHigh integrity levelS-1-16-12288
HOUser Mode Hardware OperatorsS-1-5-32-584
ISIIS_IUSRSS-1-5-32-568
IUInteractive logonS-1-5-4
KAKey AdminsS-1-5-21-<domain>-526
LAAdministrator accountS-1-5-21-<domain>-500
LGGuest accountS-1-5-21-<domain>-501
LSLocal ServiceS-1-5-19
LUPerformance Log UsersS-1-5-32-559
LWLow integrity levelS-1-16-4096
MEMedium integrity levelS-1-16-8192
MPMedium Plus integrity levelS-1-16-8448
MSRDS Management ServersS-1-5-32-577
MUPerformance Monitor UsersS-1-5-32-558
NONetwork Configuration OperatorsS-1-5-32-556
NSNetwork ServiceS-1-5-20
NUNetwork logonS-1-5-2
OWOwner RightsS-1-3-4
PAGroup Policy Creator OwnersS-1-5-21-<domain>-520
POPrint OperatorsS-1-5-32-550
PSPrincipal SelfS-1-5-10
PUPower UsersS-1-5-32-547
RARDS Remote Access ServersS-1-5-32-575
RCRestricted CodeS-1-5-12
RDRemote Desktop UsersS-1-5-32-555
REReplicatorS-1-5-32-552
RMRMS Service OperatorsNot documented
ROEnterprise Read-only Domain ControllersS-1-5-21-<domain>-498
RSRAS and IAS ServersS-1-5-21-<domain>-553
RUPre-Windows 2000 Compatible AccessS-1-5-32-554
SASchema AdminsS-1-5-21-<domain>-518
SHOpenSSH UsersS-1-5-32-585
SISystem integrity levelS-1-16-16384
SOServer OperatorsS-1-5-32-549
SSService asserted identityS-1-18-2
SUService logonS-1-5-6
SYLocal SystemS-1-5-18
UDUser-mode driver hostS-1-5-84-0-0-0-0-0
WDEveryoneS-1-1-0
WRWrite Restricted CodeS-1-5-33

More Active Directory tools