Add a team user
This function creates and adds a new team user.
Note:
This action may result in team users gaining access to team owner level privileges.
Query parameters
The contact email for the new team user.
The username of the team user. Follows cPanel standards.
Send an email to the team user that allows them to set their own password.
- 1 - Enabled.
Note:
- You must pass either the password or activation_email parameter.
The secondary email for the new team user.
The epoch time on which the team user account expires, or the offset from the current time, in days. Integers are treated as Unix Epoch Time unless followed by 'days'.
The reason for expiration.
Notes about the new team user. This field should not contain private information. Maximum of 100 characters.
The password to set for the new team user.
Note:
- You must pass either the password or activation_email parameter.
A comma-separated list of roles assigned to the new team user. Current roles include admin, database, email, web.
Note:
- This parameter is named roles, not role. This function rejects the role parameter with an error.
- A team user with no roles cannot use any features. To assign roles after you create the team user, use the set_roles or add_roles functions.
Whether to create an email subaccount for the team user. A subaccount is always created for a team user, but it does not have any associated service subaccounts by default.
- 1 - Create an email subaccount.
- 0 - Do Not create an email subaccount.
The maximum amount of disk space, in megabytes (MB), allocated to the team user's email account.
- 0 or unlimited - The subaccount has unlimited disk space.
This value defaults to the defined system value.
Note:
This value cannot be larger than the system's maximum email quota.
Whether to create an FTP subaccount for the team user. A subaccount is always created for a team user, but it does not have any associated service subaccounts by default.
- 1 - Create an FTP subaccount.
- 0 - Do Not create an FTP subaccount.
The team user's FTP home directory, relative to the cPanel account's home directory.
Note:
- This parameter is required if you enabled the services.ftp.homedir parameter.
- The directory must exist.
Whether to create a Web Disk subaccount for the team user. A subaccount is always created for a team user, but it does not have any associated service subaccounts by default.
- 1 - Create a Web Disk subaccount.
- 0 - Do Not create a Web Disk subaccount.
Whether to enable the Web Disk Digest Authentication.
- 1 - Enabled.
- 0 - Disabled.
Note:
- Only enable Digest Authentication for clients that require additional compatibility support on certain versions of Windows® operating systems. This compatibility support is only required on servers that use a self-signed certificate for the cpsrvd and cpdavd daemons.
- We recommend that you do not use Digest Authentication.
The team user's Web Disk home directory, relative to the cPanel account's home directory.
Note:
This parameter is required if you enable the services.webdisk.enabled parameter.
The team user's file permissions for its Web Disk home directory.
- ro - Read-only permissions.
- rw - Read and write permissions.
Note:
The services.webdisk.homedir parameter determines the team user's Web Disk home directory.
Whether to set the directory's permissions to public or private.
- 1 - Private (0700).
- 0 - Public (0755).
Response
HTTP Request was successful.
Example response
{
"apiversion": 3,
"func": "add_team_user",
"module": "Team",
"result": {
"data": 1674575562,
"metadata": {
"transformed": 1
},
"status": 1
}
}