-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filter to find unlicensed users does not work #2112
Comments
Thanks for following through on this. Calling the command with |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. |
I attach the transcript file with the debug parameter. I have deleted the personal information data of the tenant users. |
Thanks for providing the debug log. The debug log shows that the wrong count is coming from the API via the Since you are using v2 of SDK, can you confirm if the inconsistent count is also present when using the dedicated count commands - |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. |
I run the Get-MgUser command with the following filter: Filter = 'assignedLicenses/$count eq 0 and OnPremisesSyncEnabled eq true'. It always returns the same two results, which do not correspond to reality. Currently in the tenant I have 17 unlicensed users. Here is an example:
The text was updated successfully, but these errors were encountered: