I was creating an Active Directory (AD) security auditing tool in Go and Python when I stumbled upon the UserAccountControl flags. This attribute can hold multiple statuses like ACCOUNTDISABLE, NORMAL_ACCOUNT, or DONT_EXPIRE_PASSWORD. It uses a bit-field; a bit-field is a group of bits with each bit representing a value. It is an efficient way of handling multiple statues of a record.
For example, I have a decimal value of 514 from the userAccountControl field. The application converts the value from 514 to its corresponding property flags (ACCOUNTDISABLE, NORMAL_ACCOUNT).