# Subaccount Management

cPanel Account / Subaccount Management

## Return Subaccounts and service accounts conflicts

 - [GET /UserManager/check_account_conflicts](https://api.docs.cpanel.net/specifications/cpanel.openapi/subaccount-management/usermanager-check_account_conflicts.md): This function lists the other Subaccounts or services accounts that conflict
with the specified username.

Note:

If the function returns more than one account, it will return some values
multiple times within the return arrays.

## Create Subaccount

 - [GET /UserManager/create_user](https://api.docs.cpanel.net/specifications/cpanel.openapi/subaccount-management/usermanager-create_user.md): This function creates a Subaccount.

## Delete Subaccount

 - [GET /UserManager/delete_user](https://api.docs.cpanel.net/specifications/cpanel.openapi/subaccount-management/usermanager-delete_user.md): This function deletes a Subaccount. This function returns only metadata if no other service accounts exist with the same username and domain.
* If one service account uses the same username and domain, the function returns the service account's information.
* If two or more service accounts use the same username and domain, the function returns a hypothetical Subaccount.

Note:

* A hypothetical Subaccount consists of two or more service accounts that use the same username and domain.
* This function returns only metadata if the specified username and domain do not match any service accounts or hypothetical Subaccounts.

## Remove service account link request

 - [GET /UserManager/dismiss_merge](https://api.docs.cpanel.net/specifications/cpanel.openapi/subaccount-management/usermanager-dismiss_merge.md): This function removes a service account as a link candidate to create a subaccount or
link to a subaccount. When you use this function, the system removes the Link option in
cPanel's User Manager interface (_cPanel >> Home >> Preferences >> User Manager_).

Note:

You must use at least one of the following parameters:
* services.email.dismiss
* services.ftp.dismiss
* services.webdisk.dismiss

## Update Subaccount settings

 - [GET /UserManager/edit_user](https://api.docs.cpanel.net/specifications/cpanel.openapi/subaccount-management/usermanager-edit_user.md): This function edits a Subaccount.

## Return cPanel account's Subaccounts

 - [GET /UserManager/list_users](https://api.docs.cpanel.net/specifications/cpanel.openapi/subaccount-management/usermanager-list_users.md): This function lists the cPanel account's Subaccounts.

## Return service account's information

 - [GET /UserManager/lookup_service_account](https://api.docs.cpanel.net/specifications/cpanel.openapi/subaccount-management/usermanager-lookup_service_account.md): This function lists a service account's information.

## Return Subaccount's information

 - [GET /UserManager/lookup_user](https://api.docs.cpanel.net/specifications/cpanel.openapi/subaccount-management/usermanager-lookup_user.md): This function lists a single Subaccount's information.

## Register service account to Subaccount

 - [GET /UserManager/merge_service_account](https://api.docs.cpanel.net/specifications/cpanel.openapi/subaccount-management/usermanager-merge_service_account.md): This function links service accounts to subaccounts and creates a subaccount if one does not exist.

Note:

You can only link email, FTP, or Web Disk accounts.

Important

You must use at least one of the following parameters:

* services.email.merge
* services.ftp.merge
* services.webdisk.merge

To link multiple service accounts, the service accounts must share the same username and domain.

## Unregister service account from Subaccount

 - [GET /UserManager/unlink_service_account](https://api.docs.cpanel.net/specifications/cpanel.openapi/subaccount-management/usermanager-unlink_service_account.md): This function unlinks a service account from a subaccount.

