Auth0 Home Blog Docs

Set default app_metadata to users using identity providers

#1

Is there a way to assign a default value for app_metadata for users using identity providers authentication?
Like I have a facebook connection in my app, and I want every user that signs up through facebook to have a default app_metadata value assigned to this user

#2

Hello @SirajKakeh,

You should be able to do this using a rule and by leveraging the context object. You could create a rule that triggers only for Facebook logins and writes to the user’s app_metadata.

Here is a partial example:

closed #3

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.