Docs Menu

Enable User Metadata

On this page

MongoDB Realm can read user metadata from authentication providers. Then, Realm exposes each user's data in a field of their user object. For example, you might want to access a user's name, email, birthday, or gender.

You can configure MongoDB Realm to request metadata with the access token when users log in. You can access that data from the logged-in user's object with a client SDK.

You can define the metadata to request when you configure authentication providers. Specify optional metadata fields that you want to access through the user's account. These metadata fields vary depending on provider.

Facebook
Google
Custom JWT
  • name
  • first_name
  • last_name
  • picture
  • gender
  • birthday
  • min_age
  • max_age
  • email
  • name
  • first_name
  • last_name
  • picture
  • email
  • Custom

JWT authentication metadata is completely customizable. You specify JWT authentication metadata to request when you configure it.

←  Enable Custom User DataDelete or Prevent Users From Accessing a Realm Application →
Give Feedback
© 2022 MongoDB, Inc.

About

  • Careers
  • Investor Relations
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2022 MongoDB, Inc.