This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hi. Active user is a user who logs-in. Do not confuse that with accountEnabled.
Azure AD reports that in the SigninLogs.
I use this one now:
"set truncationmaxrecords=600000;SigninLogs | where Category == 'SignInLogs' | summarize count() by UserPrincipalName"
But i'm not sure it is any good.
And the maxrecords seams only to work downwords. So I can ask for less records but not fot more. How can I increase the records number? I have 800K users to report.
Do you mean user presence? User presence in Teams - Microsoft Teams | Microsoft Learn
No. I want to get all user's last login date. Therefore I need to get them all. I now founf the query:
$signInQuery = $signInQuery = "set notruncation;SigninLogs | summarize count() by UserPrincipalName"
But even setting notruncationretrievs only 500000 users. And I have 750000.
PS: this works and retrieve 30 records:\
$signInQuery = "set truncationmaxrecords=30;SigninLogs | summarize count() by UserPrincipalName"
With that amount of users you likely have subdomains. You could run separate queries for each subdomain and then concatenate.
No. For two reaons. I do have an Azure AD domain with almost a million users. But above all,AAD has no sub domains.
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 1 |