createAccount
You can use this method to create a user account and assign it a password.
Parameters
Parameter | Type | Optional | Description |
---|---|---|---|
| String | No | The email address for the new account. |
| Object | No | An object containing profile information:
|
| String | Yes | The password for the new account. If this value is omitted a password will be created and sent by email to the user. The password should be at least twelve characters in length, and must contain at least one upper case character, one lower case character, one digit, one special character, and needs to be different from previously used passwords. |
| Number | Yes | The role of the new account. Possible values:
Default value: TipFor more information regarding user roles and the associated rights, refer to User roles |
| Object | Yes | An object containing the rights of a user account. ImportantOnly use this parameter if the The available rights are:
Possible values:
Default value: |
| Array | Yes | A list of IDs representing the targets to be managed by the user account. |
Return value
This method returns a String: The ID of the created user account.
Example
Request
{ "id": "787b5e36-89a8-4353-88b9-6b7a32e9c87f", "jsonrpc": "2.0", "method": "createAccount", "params": { "email": "[email protected]", "profile": { "fullName": "Bitdefender User", "language": "en_US", "timezone": "Europe/Bucharest" }, "password": "P@s4w0rd", "role": 5, "rights": { "manageInventory": true, "managePoliciesRead": true, "managePoliciesWrite": true, "manageReports": true, "manageUsers": false }, "targetIds": [ "585d2dc9aaed70820e8b45b4", "585d2dd5aaed70b8048b45ca" ] }
Response
{ "id": "787b5e36-89a8-4353-88b9-6b7a32e9c87f", "jsonrpc": "2.0", "result": "585d2dc9aaed70820abc45b4" }