---
title: "Search Team Members"
method: POST
path: "/api/v2/TeamMembers/search"
tags: ["TeamMembers"]
deprecated: true
---

# Search Team Members

`POST /api/v2/TeamMembers/search`

> **Deprecated.**

Search all team members in your FortiCNAPP instance by invoking the following endpoint:

  > `POST https://YourAccount.lacework.net/api/v2/TeamMembers/search`

  To limit the returned result, optionally specify one or more filters in the request body. For more information about using filters, see the [Simple & Advanced Search section](/api/v2/docs/#tag/OVERVIEW).

  You can filter on the following fields:

  * `custGuid`

  * `userGuid`

  * `userName`

  * `userEnabled`

  Here is an example `body` payload:

  > `{ "filters" : [ { "expression": "eq", "field": "userName",  "value": "jane.smith@mycompany.com" } ] } `

  **Note**: This API is deprecated and is unavailable if you have migrated to the new RBAC model in your FortiCNAPP Console. See [Access Control](https://docs.fortinet.com/document/forticnapp/latest/administration-guide/873733/access-control-overview) for more information about the new RBAC model.

## Headers

- `Authorization` string, required
- `Content-Type` string, required
- `Org-Access` boolean
- `Account-Name` string

## Request body

- GETDATAREQUESTBODYFILTERS
  - `filters` object[] — One or more condition statements you can use to refine the data returned by the request. Only records that satisfy filtering conditions are returned. If there are multiple conditions, a record must satisfy all conditions for a match.
    - `expression` 'eq' | 'ne' | 'in' | 'not_in' | 'like' | 'ilike' | 'not_like' | 'not_ilike' | 'not_rlike' | 'rlike' | 'gt' | 'ge' | 'lt' | 'le' | 'between', required — The comparison operator for the filter condition.
    - `field` string, required — The name of the data field to which the condition applies.
    - `value` string — The value that the condition checks for in the specified field. Use this attribute when specifying a single value.
    - `values` string[] — The values that the condition checks for in the specified field. Use this attribute when specifying multiple values.
  - `returns` string[] — Use this attribute to specify which top-level fields of the response schema you want to receive.

## Response `200`

No Error (List of Team Members)

- object
  - `data` TeamMembersResponseSchema[]
    - union
      - TeamMembersWithOrgAccessResponseSchema
        - `schemaOption` 'With_Org-Access' — Not required.
        - `props` object, required
          - `firstName` string, required
          - `lastName` string
          - `company` string, required
          - `accountAdmin` boolean — If team member is a current account admin, this field will be ignored if org-access is true
        - `orgAdmin` boolean — When sending a request, set to `True` to make the team member an organization admin. Otherwise, set to `False`. When included in a response, returns the role assigned to the team member. **Note:** If the team member is currently an organization admin, FortiCNAPP ignores the `adminRoleAccounts` and `userRoleAccounts` attributes.
        - `orgUser` boolean — When sending a request, set to `True` to make the new member an organization user. Otherwise, set to `False` When included in a response, returns the role assigned to the new member. **Note:** If the team member is currently an organization user, FortiCNAPP will ignore the `userRoleAccounts` attribute.
        - `adminRoleAccounts` string[], required — A list of account names for which this team member will be an admin.
        - `userRoleAccounts` string[], required — A list of account names for which this team member will be a user.
        - `userEnabled` 1 | 0, required
        - `userName` string, required — user email address
        - `userGuid` string — user guid
      - TeamMembersWithoutOrgAccessResponseSchema
        - `schemaOption` 'Without_Org-Access' — Select `Without_Org-Access` to create team members for an account. Select `With_Org-Access` to create team members for an organization.
        - `props` object, required — Details of the new team member. The data varies based on the value of the `schemaOptions` attribute.
          - `firstName` string, required — The new team member's first name.
          - `lastName` string — The new team member's last name.
          - `company` string, required — The new team member's company.
          - `accountAdmin` boolean — When sending a request, set to `True` to make the new member an account admin. Set to `False` to make the new member an account user. When included in a response, returns the role assigned to the new member. **Note:** If the team member is currently an account admin, and the `schemaOption` is set to `With_Org-Access`, FortiCNAPP will ignore this attribute.
        - `userEnabled` 1 | 0, required — When sending a request, use this attribute to enable or disable a team member's access. When included in a response, returns `1` for enabled team members, or returns `0` for disabled team members.
        - `userName` string, required — The new team member's email address.
        - `userGuid` string — user guid
        - `custGuid` string — customer guid

## Other responses

- `204` — No Data
- `4XX` — Client Error
- `5XX` — Internal Server Error

---

[API](https://skmtc.net/lacework/apis/forticnapp-api-2-0-documentation.md) · [All operations](https://skmtc.net/lacework/apis/forticnapp-api-2-0-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lacework/forticnapp-api-2-0-documentation/revisions/7015f76895f2/schema)
