getAccoutDetails
Use this method to retrieve information for a specific GravityZone account.
Parameters
Parameter | Description | Included in request | Type | Values |
---|---|---|---|---|
| The ID of the account you want to display information for. | Optional | String | Default value: The ID of the GravityZone account used to generate the API key. |
Return value
Attribute | Type | Description |
---|---|---|
| String | The email address of the account. |
| Object | This object contains the account's profile information:
|
| Object | This object contains the phone number information for the account:
|
| Integer | The role of the new account. Possible values:
For more information regarding user roles and the associated rights, refer to User roles |
| Object | This object contains the rights associated to the user account:
|
| Integer | Indicates the password expiration policy assigned to the user account. Possible values:
|
| Boolean | Indicates if the user account is set to lock down after after 5 unsuccessful attempts. |
| Boolean | Indicates if Two Factor Authentication (2FA) is activated for the user account. |
| String | The name of the company the user account belongs to. |
| String | The ID of the company the user account belongs to. |
| Boolean | Indicates if the user has access to manage the company it belongs to. This setting is the equivalent of the Select Tragets section available when creating or editing user accounts in GravityZone and indicates that user has access to top most level target. |
Example
Request:
{ "id": "787b5e36-89a8-4353-88b9-6b7a32e9c87f", "jsonrpc": "2.0", "method": "getAccountDetails", "params": { "accountId": "6718732309e2be32df0550c2" } }
Response:
{ "id": "787b5e36-89a8-4353-88b9-6b7a32e9c87f", "jsonrpc": "2.0", "result": { "id": "6718732309e2be32df0550c2", "email": "[email protected]", "profile": { "fullName": "customer2", "language": "en_US", "timezone": "UTC", "landingPage": "dashboard" }, "phoneNumber": { "countryCode": null, "subscriberNumber": null }, "role": 1, "rights": { "manageCompanies": false, "manageInventory": true, "managePoliciesRead": true, "managePoliciesWrite": true, "manageUsers": true, "manageReports": true, "companyManager": true, "manageRemoteShell": true, "manageMspTrialFeatures": false }, "passwordLifetime": 90, "accountLockdown": true, "twoFactorAuthenticationStatus": false, "companyName": "Customer_0_0", "companyId": "670fa2a2e0d7e2ea2907fec2", "hasOwnCompanyInTargets": true } }