• Support
  • cPanel & WHM Documentation
  • Developer Forums
  • Discord
    • Nothing Found
  • Support
  • cPanel & WHM Documentation
  • Developer Forums
  • Discord
    cPanel UAPI
    WHM API1
      Guide to WHM API 1
      WHM API
      Account Restoration
      Restore Account
      Restore Queue Management
      Restore Queue Reporting
      Accounts
      Account Creation
      Account Enhancements
      Account Management
      Bandwidth and Disk Quotas
      Domain Information
      Passwords
      Styles
      Suspensions
      API Development Tools
      API Execution
      API Statistics
      API Token Management
      Applications
      Session
      Authentication
      Authentication Providers
      External Authentication
        get
        Disable identity provider
        get
        Disable identity provider modules that fail to load
        get
        Enable identity provider
        get
        Return available identity providers
        get
        Return identity provider client configuration
        get
        Return identity provider configuration fields
        get
        Return identity provider login interface appearance
        get
        Return accounts linked to identity providers
        get
        Add identity provider to cPanel account
        get
        Update identity provider client configuration
        get
        Update identity provider login interface appearance
      Login URL
      SSH Keys and Connections
      Two-Factor Authentication
      Backups
      Backup Destination
      Backup or Restore
      Backup Settings
      Legacy Migration
      Commerce Integration
      Market Integration
      Sitejet
      cPanel Market
      Product Management
      Provider Management
      cPanel Support Tickets
      Support Access
      Ticket Management
      Customizations
      Customizations
      Databases
      Manage MySQL Server
      MySQL Databases
      PostgreSQL Databases
      Remote MySQL Databases
      DNS
      DNS Cluster Settings
      DNS Security
      DNS Zones
      Domain Management
      Domain Management
      Resolvers
      Hosting Plans
      Feature Access
      Feature Lists
      Hosting Plan Extensions
      Hosting Plans
      Integrations
      API Authentication
      Links
      Scripts Hooks
      IP Address Management
      IPv4 Address Settings
      IPv6 Address Settings
      Network Address Translation
      Login Security (cPHulk)
      Management
      Reporting
      Settings
      Mail
      cPanel Account Mail Management
      Mail DNS Settings
      Mail Server Settings
      Spam Management
      Spam Protection (Greylisting)
      NGINX Manager
      NGINX Manager
      Resellers
      Account Enhancement Limit
      Account Limits
      Account Permissions
      Account Settings
      Reseller Account Management
      Security
      WHM Access
      Server Administration
      Configuration Clusters
      Configurations
      Connected Applications
      Connections
      cPanel Analytics
      License Management
      Notifications
      Plugin-Based Features
      Security
      Server Nodes
      Server Profiles
      Services
      System Information
      Updates
      SSL Certificates
      Auto-Generated Certificates
      cPanel Account Settings
      SSL Server Settings
      System Package Management
      Install or Uninstall Package
      List Package Information
      Package Manager Settings
      Transfers
      cPanel Account Transfer
      Transfer Configuration
      Transfer Monitoring
      Web Server Configuration
      EasyApache Settings
      PHP
      PHP-FPM
      Web Server Security (ModSecurity)
      Rule Settings
      Rule Vendor Settings
      Server Settings

Add identity provider to cPanel account

This function adds an External Authentication authorization link to an account.

SecurityBasicAuth
Request
query Parameters
preferred_username
required
string

The preferred username of the account on the identity provider.

Example: preferred_username=Example
provider_id
required
string

The name of the identity provider.

Example: provider_id=google
subject_unique_identifier
required
string

The unique identifier for the user at the identity provider.

Example: subject_unique_identifier=123456789012345678901
username
required
string <username>

The account's username.

Example: username=example
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
get/link_user_authn_provider
Request samples
  • CLI
  • URL
whmapi1 --output=jsonpretty \
  link_user_authn_provider \
  username='example' \
  provider_id='google' \
  subject_unique_identifier='123456789012345678901' \
  preferred_username='Example'
Response samples
  • 200
application/json
{
  • "metadata": {
    • "command": "link_user_authn_provider",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}
©2025 WebPros International, LLC All rights reserved.Privacy PolicyTrademarks