Skip to main content

User Settings

The Users tab controls how new accounts are created and managed when users sign in with Google. This guide covers all user-related configuration options.

Accessing User Settings

  1. Go to Settings > OneTap Login in WordPress admin
  2. Click the Users tab

Settings Users Tab Full

User Configuration Section (FREE)

These settings are available in the free version.

Auto-Register Users

Field: Auto-register users Default: Enabled

SettingBehavior
EnabledNew accounts created automatically for first-time Google users
DisabledOnly existing users can sign in with Google
Recommended

Keep auto-registration enabled for the best user experience. Disabling it means users must first register manually.

When disabled:

  • Users see "No account found" error
  • They must register through traditional forms first
  • Then they can link their Google account

Default Role

Field: Default role for new users Default: Customer (with WooCommerce) or Subscriber (without)

Assigns this role to all new users created via Google sign-in.

Available roles:

RoleDescriptionTypical Use
CustomerWooCommerce customer roleE-commerce sites
SubscriberBasic WordPress roleBlogs, membership sites
ContributorCan write but not publishMulti-author blogs
AuthorCan publish own postsContent platforms

Settings User Config Section

Restricted Roles

For security, these roles are never available for Google sign-in:

  • Administrator
  • Editor
  • Shop Manager

Users with these roles cannot use Google login—they must use standard WordPress authentication.

Understanding Role Assignment

When a user signs in with Google:

  1. New user: Gets the default role you configured
  2. Existing user: Keeps their current role (unchanged)
  3. Admin/Editor: Redirected to standard login
New Google User → Default Role (Customer/Subscriber)
Existing User → No Change
Admin Role → Cannot Use Google Login

PRO User Features

These features require OneTap Login PRO.

Custom Redirects

Field: Post-login redirect URL Default: (empty) - uses WooCommerce My Account

Redirect users to a specific URL after login.

Options:

TypeExampleUse Case
Specific URLhttps://site.com/welcome/Welcome page
Relative path/dashboard/Internal page
Dynamic{referrer}Back to previous page

Role-Based Redirects

Different URLs based on user role:

RoleRedirect URL
Customer/my-account/
Subscriber/members/
Contributor/wp-admin/

Domain Restrictions

Field: Allowed email domains Default: (empty) - all domains allowed

Restrict registration to specific email domains.

Use cases:

  • B2B: Only allow @company.com
  • Education: Only allow @university.edu
  • Internal: Only allow @yourdomain.com

Example configuration:

company.com
partner.org
contractor.net

Behavior:

  • Users with unlisted domains see an error
  • Existing users with unlisted domains can still log in
  • Empty field = no restrictions

Domain Blacklist

Field: Blocked email domains Default: (empty)

Block specific email domains from registration.

Common blocks:

tempmail.com
guerrillamail.com
10minutemail.com

Account Behavior

Existing User Matching

When a Google user's email matches an existing WordPress account:

ScenarioResult
Email matches, no Google IDAccount linked to Google
Email matches, has Google IDNormal login
Email doesn't matchNew account created

How linking works:

  1. User clicks "Sign in with Google"
  2. Plugin checks if email exists in WordPress
  3. If yes, links Google ID to existing account
  4. User's password and data preserved

Account Merge (PRO)

For more control over account linking:

Field: Enable account merge Default: Disabled

When enabled:

  • Users with matching email see a merge prompt
  • Must enter existing password to confirm
  • Prevents unauthorized account takeover

See Account Merge for details.

Pending Approval (PRO)

Field: Require approval for new users Default: Disabled

When enabled:

  • New Google users get "pending" status
  • Admin must approve before they can access
  • Users see "awaiting approval" message

See Pending Approval for details.

User Data from Google

When a user signs in, OneTap Login retrieves:

DataWordPress FieldNotes
Emailuser_emailPrimary identifier
First Namefirst_nameFrom Google profile
Last Namelast_nameFrom Google profile
Profile PictureavatarStored as user meta
Google IDgoogle_idStored as user meta

Username Generation

Since Google doesn't provide usernames, the plugin generates one:

Algorithm:

  1. Try email prefix: john from john@gmail.com
  2. If taken, add number: john2
  3. If still taken, increment: john3

Example:

john@gmail.com → john
john@company.com → john2 (if john exists)
john@other.com → john3 (if john and john2 exist)

Display Name

The display name is set as:

{First Name} {Last Name}

Example: "John Smith"

Security Considerations

Forbidden Roles

These roles cannot authenticate via Google:

RoleReason
AdministratorHigh privilege, needs 2FA
EditorContent management access
Shop ManagerWooCommerce management access

What happens:

  • User sees "This account type cannot use Google sign-in"
  • Redirected to standard WordPress login
  • Must use username/password

2FA Detection

If a user has two-factor authentication enabled:

  1. Plugin detects 2FA status
  2. Redirects to standard login
  3. User completes normal 2FA flow

Supported 2FA plugins:

  • Two Factor (WordPress.org)
  • Wordfence 2FA
  • WP 2FA
  • iThemes Security
  • Google Authenticator
  • miniOrange 2FA

See 2FA Integration for details.

Settings Reference Table

SettingTypeDefaultVersion
Auto-register usersCheckboxOnFREE
Default roleSelectCustomerFREE
Post-login redirectURL(empty)PRO
Allowed domainsText(empty)PRO
Blocked domainsText(empty)PRO
Enable account mergeCheckboxOffPRO
Require approvalCheckboxOffPRO
Role-based redirectsMultiple(empty)PRO

Common Configurations

E-commerce Store

Auto-register: Enabled
Default role: Customer
Redirect: /my-account/

Membership Site

Auto-register: Enabled
Default role: Subscriber
Redirect: /members-area/

B2B Portal

Auto-register: Enabled
Default role: Customer
Allowed domains: company.com, partner.org
Redirect: /portal/

Internal Tool

Auto-register: Disabled
Default role: Subscriber
Allowed domains: yourdomain.com

Next Steps