Skip to content

Instantly share code, notes, and snippets.

@hiranya911
Created June 10, 2018 18:51
Show Gist options
  • Save hiranya911/05ad650e2f1d0ee301bff52f86f54813 to your computer and use it in GitHub Desktop.
Save hiranya911/05ad650e2f1d0ee301bff52f86f54813 to your computer and use it in GitHub Desktop.
from firebase_admin import auth
users = [
auth.ImportUserRecord(
uid='some-uid',
display_name='John Doe',
email='[email protected]',
photo_url='http://www.example.com/photo.png',
email_verified=True,
provider_data=[
auth.UserProvider(
uid='google-uid',
email='[email protected]',
display_name='John Doe',
photo_url='http://www.example.com/photo.png',
provider_id='google.com'
)
],
),
# users list can contain up to 1000 records
]
result = auth.import_users(users)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment