Skip to content
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

count of users does not match #496

Open
chaitanya4288 opened this issue Oct 20, 2020 · 3 comments
Open

count of users does not match #496

chaitanya4288 opened this issue Oct 20, 2020 · 3 comments
Assignees
Labels

Comments

@chaitanya4288
Copy link

@chaitanya4288 chaitanya4288 commented Oct 20, 2020

Operating System version: MacOS Catalina 10.15.6
Firebase SDK version: 7.14.3
Library version: 4.3.0
Firebase Product: auth

The user count shown in the console and the count obtained by iterating all the users via admin sdk don't seem to match.

In the console, under the authentication section, the count can be seen in the pagination information.

image

In the above pic, the count seems to be: 936701

Where as when the count is obtained via admin sdk gives: 906553

I am using list_users to iterate over the users. Here is the following code

    count = 0
    page = auth.list_users()
    while page:
        for user in page.users:
            count = count + 1
        page = page.get_next_page()

    print("The count of users is: {0}".format(str(count)))

The counts seem to be different. Which one is the correct count?

@chaitanya4288
Copy link
Author

@chaitanya4288 chaitanya4288 commented Oct 23, 2020

Hello team, any update on this issue?

@hiranya911
Copy link
Member

@hiranya911 hiranya911 commented Oct 23, 2020

Doesn't repro on our test projects. But they also don't have as many users (only around 400 users).

@bojeil-google is it possible the UI displays duplicates in certain cases?

@bojeil-google
Copy link
Member

@bojeil-google bojeil-google commented Oct 26, 2020

This is a known issue in the total counter. I think there are cases where the counter goes off due to duplication. If the counter is off in the UI, please file a bug with support to reset it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.