I am developing a Android app with firebase as backend. I heard about firebase admin SDK but I don't know how to create it. I am using firebase console in web interface. Now how can I set customer claims for a user?
Asked
Active
Viewed 452 times
1 Answers
2
You cannot. You could add custom claims from your local computer instead of Cloud functions or run a node process locally if you just need to add claims for a few users but the Admin SDK is necessary.
Checkout Firebase Custom Claims without Cloud Functions for detailed explanation on setting up admin sdk locally. You could just locally run functions or a node process to add claims as mentioned in there.

Dharmaraj
- 47,845
- 8
- 52
- 84
-
Can you please tell me where to create admin SDK? I mean do I need to create it in cloud functions or some where else? – Real Tech Hacks Aug 01 '21 at 06:23
-
@RealTechHacks you install it using npm. `npm install firebase-admin`. Just follow the answer and you'll know ;) – Dharmaraj Aug 01 '21 at 06:24