GenAuth DocsDocuments
Concepts
User Guide
Development Integration
AgentAuth
Metadata
Development Integration
Multi-tenant (beta)
Console Documentation
Multi-tenant Console
Tenant Console
Saas Application Demo
Concepts
User Guide
Development Integration
AgentAuth
Metadata
Development Integration
Multi-tenant (beta)
Console Documentation
Multi-tenant Console
Tenant Console
Saas Application Demo
Old version
User Guide
  • Quick Start

  • Authentication

  • Access Control

  • Authorization

  • Adaptive MFA

  • User Account Management

  • User Directory Management

  • Applications

  • Become a Federation Authentication Identity Provider

  • Connect External Identity Providers (IdP)

  • WeChat Ecosystem Full Scenario Capabilities

  • Migrate Users to GenAuth

  • Security Settings

  • Branding

  • Automation

    • Pipeline

      • Create Your First Pipeline Function
      • Pipeline API Reference
      • Pipeline Use Cases
      • Pipeline User Object
      • Pipeline Context Object
      • Use Environment Variables in Pipeline
      • Available Node Modules
      • How to Debug
      • Private Deployment
    • Webhooks
  • Audit Logs

  • Setting

  • FAQ

  1. User Guide
  2. /
  3. Automation
  4. /
  5. Pipeline
  6. /
  7. Pipeline User Object

¶ user object

Update time: 2025-07-23 07:34:21
Edit

The user object stores various data of the current user, as well as methods for adding custom fields and custom token fields.

The user object of the Pre-Register Pipeline contains the information filled in when the user registered, but it is not actually written to the database.

Only supports modifying user information (user object) in the Pipeline before and after authentication. It does not support directly modifying user information in the Pipeline at other nodes (such as before and after token issuance).

¶ Attributes

Attribute nameValue typeDescription
idstringUser ID
usernamestringUser name
emailstringEmail
emailVerifiedbooleanEmail verified
phonestringPhone number
phoneVerifiedbooleanPhone number verified
photostringAvatar link
nicknamestringNickname
genderstringGender
lastLoginstringLast login time, in the format of 2020-02-07T04:29:40.877Z
companystringCompany name
browserstringRegistered browser
devicestringRegistered device
countrystringCountry
regionstringRegion
addressstringAddress

¶ Methods

Method NameDescriptionSample Code
addCustomDataAdd user-defined fields. You need to define preset user-defined fields at the user pool level before you can set them for users in Pipeline.​​user.addCustomData("KEY", "VALUE")
addIdTokenSet custom fields for ID Token. It can also be used to replace the original ID Token content. **This interface is only available before OIDC ID Token is issued. **user.addIdToken("KEY","VALUE")
removeIdTokenDelete original or custom fields of ID Token. **This interface is only available before OIDC ID Token is issued. **user.removeIdToken("KEY","VALUE")
addAccessTokenSet custom fields for Access Token. It can also be used to replace the original Access Token content. **This interface is only available before OIDC Access Token is issued. **user.addAccessToken("KEY","VALUE")
removeAccessTokenDelete the original or custom fields of Access Token. **This interface is only available before OIDC Access Token is issued. **user.removeAccessToken("KEY")
Previous article: Pipeline Use Cases Next article: Pipeline Context Object
  • Attributes
  • Methods

User identity management

Integrated third-party login
Customized authentication process

Enterprise internal management

Single sign-on
Multi-factor authentication
Permission management

Developer

Development Documentation
GitHub (opens new window)

Company

official@genauth.ai
16th Floor, Building B, Beichen Century Center, Chaoyang District, Beijing (Total)
Room 406, 4th Floor, Block B, No. 200, Tianfu Fifth Street, High-tech Zone, Chengdu (Branch)

© Beijing Steamory Technology Co., Ltd.