# Returns a list of Accounts

Endpoint: GET /management/accounts
Version: 3.18.0
Security: ApiKeyAuth

## Security:

  - `ApiKeyAuth` (unknown)
    apiKey in header Authorization

## Query parameters:

  - `limit` (integer)
    Maximum number of objects to return per query. The value must be between 1 and 1000. Default is 100.

  - `cursor` (string)
    Cursor to fetch the next or previous page of results. The value of this property must be extracted from the 'prev_cursor' or 'next_cursor' property of a PaginatedResponseMetadata which is contained in the response of list and search API endpoints.

  - `sort` (string)
    The field to sort results by. A property name with a prepended '-' signifies descending order.

## Response 200:

  - `200` (unknown)
    OK

## Response 200 fields (application/json):

  - `items` (array)

  - `items.id` (integer)
    Numeric ID of the Account.

  - `items.api_client_id` (string)
    The unique ID which is used to identify the identity of an API request. The web server (nginx) configuration must be configured so as to include the external ID as the value of the X_CLIENT_ID HTTP request header when requests are proxied. For OAuth2/JWT based authentication, this typically corresponds to a value extracted from the JWT, uniquely identifying the Account.

  - `items.first_name` (string)
    An optional first name for the Account.

  - `items.last_name` (string)
    An optional last name for the Account.

  - `items.email` (string)
    An optional email for the Account.

  - `items.username` (string)
    The username for username/password authentication. This can also be used to provide an optional logical name for the Account.

  - `items.ldap_principal` (string)
    This value will be used for linking this account to an LDAP user when authenticated with the same LDAP principal. When accounts authenticate with LDAP, an LDAP principal value is calculated based on the username, msad_domain_name, search_base and username_pattern.

  - `items.last_access_time` (string)
    last time this account made a (successful or failed) API call. Note that updates to this property are asynchronous and make take some time to be reflected.

  - `items.creation_time` (string)
    Creation time of this Account. This value is null for accounts created prior to version 9.0.0 of the product.

  - `items.api_key_expiry_time` (string)
    Expiration time of the API key, if null then API key will never expire.

  - `items.effective_scopes` (array)
    Access group scopes associated with this account.

  - `items.effective_scopes.id` (string)
    Id of the access group scope.

  - `items.effective_scopes.name` (string)
    Name of the access group scope.

  - `items.tags` (array)
    The tags to be created for this Account.
    Example: [{"key":"key-1","value":"value-1"},{"key":"key-2","value":"value-2"}]

  - `items.tags.key` (string, required)
    Key of the tag
    Example: key-1

  - `items.tags.value` (string, required)
    Value of the tag
    Example: value-1

  - `items.enabled` (boolean)
    Whether this account can be used to make API calls.

  - `response_metadata` (object)

  - `response_metadata.prev_cursor` (string)
    Pointer to the previous page of results. Use this value as a cursor query parameter in a subsequent request, along with limit, to navigate through the collection by virtual page.

  - `response_metadata.next_cursor` (string)
    Pointer to the next page of results. Use this value as a cursor query parameter in a subsequent request, along with limit, to navigate through the collection by virtual page.

  - `response_metadata.total` (integer)
    The total number of results. This value may not be provided.

