question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[FR] - bulk update/edit auth users

See original GitHub issue

Is your feature request related to a problem? Please describe. It is not currently possible to bulk update a large amount of users customClaims in a single request, using a js map makes lots of requests and reaches rate limits very quickly. e.g users.map(user => firebaseAdmin.auth().setCustomUserClaims(user.uid, user.claims));

Removing users then re-importing with bulkImport would logout all current users from web/mobile apps, it would also require users to set new passwords again so this isn’t an option.

Describe the solution you’d like add bulkUpdate or bulkEdit command that matches users by uid or email and updates matching records

Describe alternatives you’ve considered putting updates onto a queue and processing them individually within the firebase customClaims rate limits

Additional context even the ability to run small bulk updates such as 10 or 100 would be better than processing individually

example use case: B2B with several “clients” all in one firebase account. A client gets an upgrade and all the users gain a new feature, a new attribute needs adding to each users custom claims

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:10
  • Comments:8

github_iconTop GitHub Comments

2reactions
prameshjcommented, Dec 12, 2022

Thanks for the reminder. We are still waiting for backend support. I have pinged for an update on the internal tracking bug - b/234611522

2reactions
prameshjcommented, Feb 24, 2022

This is currently handled by the code here which calls https://cloud.google.com/identity-platform/docs/reference/rest/v1/accounts/update#request-body and sets custom attributes.

The backend API provides batchCreate, batchGet and batchDelete - https://cloud.google.com/identity-platform/docs/reference/rest#rest-resource:-v1.projects.accounts, but no batchUpdate.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bulk update/edit user profiles with csv or other method?
Is there a way to bulk update user profiles in okta, maybe with csv? ... For more details please review our documentation below:....
Read more >
bulk edit/update auth users - Google Groups
I'm using the nodejs admin sdk and trying to edit users in bulk but there doesn't seem to be an option for it?...
Read more >
Bulk rule actions | Elastic Security Solution [8.5]
A JSON array containing the deleted rules. Bulk updateedit. This API has been deprecated since version 8.2, and is scheduled for end of...
Read more >
Bulk update or delete users - Auth0 Community
Request the Management API for update users (PATCH /api/v2/users/{id}); Manage timeouts or retry when rate limits have exceeded. Reference ...
Read more >
Users Action Log - How to Monitor your Bulk Actions
Uploaded file: You can download the file that was uploaded for the bulk action to take place. Result: You can see the results...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found