updateAccount
This method updates a user account identified through the account ID.
Parameters
Parameter | Description | Included in request | Type | Values |
---|---|---|---|---|
| The ID of the target user account. | Mandatory | String | No additional requirements. |
| The email address for the account. | Optional | String | Must have a valid email format. |
| The new user name for the account. | Optional | String | No additional requirements. |
| The password for the account. | Optional | String | The password must 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. |
| An object containing profile information: | Optional | Object | For more information, refer to |
| An object containing phone number information | Optional | Object | For more information, refer to |
| The new role of the user. | Optional | Integer | These are the available roles:
|
| An object containing the rights of a user account. This object should be set only when When set for other roles, the values will be ignored and replaced with the rights specific to that role. | Optional | Object | For more information, refer to |
| A list of IDs representing the targets to be managed by the user account. | Optional | Array | No additional requirements. |
Objects
profile
Parameter | Description | Included in request | Type | Values |
---|---|---|---|---|
fullName | The first and last name of the user. | Mandatory | String | No additional requirements |
language | The language displayed in Control Center. | Mandatory | String | No additional requirements |
timezone | The timezone where the user works from. | Mandatory | String | No additional requirements |
phoneNumber
Parameter | Description | Included in request | Type | Values |
---|---|---|---|---|
| The prefix of the country where the phone number is located. | Mandatory | Integer | Must be a valid country code prefix. |
| The phone number without the prefix. | Mandatory | Integer | Must be a valid phone number format. |
rights
Parameter | Description | Included in request | Type | Values |
---|---|---|---|---|
| Provides administrative privileges over the network security settings:
TipThe If set to ImportantIf | Optional | Boolean | Default value: |
| Allows users to create, delete, or edit user accounts for their own company. | Optional | Boolean | Default value: |
| Allows users to create, view, and edit reports for their own company. | Optional | Boolean | Default value: |
| Provides users access to edit their company profile settings and make changes to licensing. | Optional | Boolean | Default value: |
| Provides administrative privileges over network inventories, tasks, installation packages and quarantined items. NoteCan not be included in the request if | Optional | Boolean | Default value: |
| Allows users to view company policies. NoteCan not be included in the request if | Optional | Boolean | Default value: |
| Allows users to create and edit company policies. If the value is set to NoteCan not be included in the request if | Optional | Boolean | Default value: |
Return value
This method returns a Boolean which is True when the user account has been successfully updated.
Example
Request
{ "id": "787b5e36-89a8-4353-88b9-6b7a32e9c87f", "jsonrpc": "2.0", "method": "updateAccount", "params": { "accountId" : "585d3d3faaed70970e8b45ed", "email": "[email protected]", "authenticationMethod" : 2, "profile": { "fullName": "Bitdefender User", "language": "en_US", "timezone": "Europe/Bucharest" }, "phoneNumber": { "countryCode": "+40", "subscriberNumber": "0000000000" }, "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": true }