---
title: "Update Team Member"
method: PATCH
path: "/api/v2/TeamMembers/{userGuid}"
tags: ["TeamMembers"]
deprecated: true
---

# Update Team Member

`PATCH /api/v2/TeamMembers/{userGuid}`

> **Deprecated.**

Optionally update the `userName` and`userEnabled` settings and the `props`  sub-settings of the passed in team member. Update these settings by invoking the following endpoint:

  > `PATCH https://YourAccount.lacework.net/api/v2/TeamMembers/{userGuid}`

  Replace `{userGuid}` with the `userGuid` value returned for a team member in the response, when invoking the following endpoint: `GET /api/v2/TeamMembers`.

  Here is an example `body` payload:

  > `{ "props": {"firstName":"Jane"} }` 

 **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.

## Path parameters

- `userGuid` string, required

## Headers

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

## Request body

- union
  - TeamMembersWithOrgAccessUpdateSchema
    - `schemaOption` 'With_Org-Access' — Not required.
    - `props` object
      - `firstName` string
      - `lastName` string
      - `company` string
      - `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[] — A list of account names for which this team member will be an admin.
    - `userRoleAccounts` string[] — A list of account names for which this team member will be a user.
    - `userEnabled` 1 | 0
  - TeamMembersWithoutOrgAccessUpdateSchema
    - `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 — Details of the new team member. The data varies based on the value of the `schemaOptions` attribute.
      - `firstName` string — The new team member's first name.
      - `lastName` string — The new team member's last name.
      - `company` string — 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 — 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.

## Response `200`

No Error

- object
  - `data` union
    - TeamMembersWithOrgAccessUpdateSchema
      - `schemaOption` 'With_Org-Access' — Not required.
      - `props` object
        - `firstName` string
        - `lastName` string
        - `company` string
        - `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[] — A list of account names for which this team member will be an admin.
      - `userRoleAccounts` string[] — A list of account names for which this team member will be a user.
      - `userEnabled` 1 | 0
    - TeamMembersWithoutOrgAccessUpdateSchema
      - `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 — Details of the new team member. The data varies based on the value of the `schemaOptions` attribute.
        - `firstName` string — The new team member's first name.
        - `lastName` string — The new team member's last name.
        - `company` string — 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 — 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.

## Other responses

- `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)
