Firebase Admin icon

Firebase Admin

Interact with Firebase Firestore, Auth, and Storage using Firebase Admin SDK

Auth → Set Custom User Claims

AI-generated

Summary

Set custom user claims for a specified Firebase Authentication user to assign roles or permissions.

Inputs

  • Project Name or ID — Select the Firebase project by name or ID, or provide a dynamic expression to specify the project.
  • User ID (required) — The UID of the Firebase user whose custom claims will be set.
  • Custom Claims (required) — A JSON object specifying the custom claims to assign to the user.

Output shape

a single record containing the updated user information including the new custom claims.

Returns the full user record with updated claims; errors are thrown if the user ID is invalid or claims JSON is malformed.

Links

Discussion