Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

View all the Fabric Data Days sessions on demand. View schedule

Reply
moshiera
Frequent Visitor

Active Directory and User Account Control

I had an issue that seems to be asked alot and found this and wanted to share it to all: 

 

Here's the function that we found for using the UserAccountControl value to determine if an account is active or disabled.  We created a custom column with the forumal:

 

= Number.BitwiseAnd([UserAccountControl],2)

 

I found in Microsoft's AD documentation that the UAC code (2) is the official flag for disabled accounts, and the function above returns a (2) if the account is disabled or (0) if the account is active. You can use this for other things as well. We also use it for SmartCard Required = Number.BitwiseAnd([UserAccountControl],262144).   Below is the microsoft website to get the values. 

 

https://support.microsoft.com/en-us/help/305144/how-to-use-useraccountcontrol-to-manipulate-user-acc...

 

 

1 REPLY 1
v-chuncz-msft
Community Support
Community Support

@moshiera ,

 

Thanks for the sharing.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors