> ## Documentation Index
> Fetch the complete documentation index at: https://docs-xcor.paloaltonetworks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Teams

> Palo Alto Networks Cortex XCOR lets you create and manage teams, assign roles, and set permissions for effective collaboration.

A *team* defines how an organization grants permissions for sensitive
management and administrative operations to *accounts*, including
[*user accounts*](https://docs-xcor.paloaltonetworks.com/administer/accounts-teams/user-accounts.md) and
[*service accounts*](https://docs-xcor.paloaltonetworks.com/administer/accounts-teams/service-accounts.md).

A team's accounts have a shared responsibility for certain services. Palo Alto Networks Cortex XCOR
represents those services as [*collections*](https://docs-xcor.paloaltonetworks.com/administer/collections), which contain
resources related to the service a collection represents, such as dashboards and
monitors. A team can own multiple collections.

All user and service accounts in a team that has the special System Administrator
(`SysAdmin`) role are *administrators*. If you're an administrator, you can
[add this role to a team](#add-a-role-to-a-team).

Teams can own collections and services, which in turn own other functions:

```mermaid actions={false} theme={null}
flowchart TD
    accDescr: Ownership flow for teams and functions
    Team[**Team**]
    Col(<A href="/administer/collections">Collections</a>)
    Ser(<a href="/observe/services">Services</a> )

    Team --> Col
    Team --> Ser

    Dash(<a href="/observe/dashboards">Dashboards</a>)
    Mon(<a href="/investigate/alerts/monitors">Monitors</a>)
    SLO(<a href="/observe/slo">SLOs</a>)

    Col --> Dash
    Col --> Mon
    Col --> SLO

    Dash2(<a href="/observe/dashboards">Dashboards</a>)
    Mon2(<a href="/investigate/alerts/monitors">Monitors</a>)
    SLO2(<a href="/observe/slo">SLOs</a>)

    Ser --> Dash2
    Ser --> Mon2
    Ser --> SLO2
```

## View teams

To search for a team:

1. Click the search bar to focus on it, or use the keyboard shortcut
   `Control+K` (`Command+K` on macOS).
2. Begin typing any part of the team's name.
3. Optional: Click the **Teams** filter at the top of the search results to
   constrain your results to only Teams.
4. Click the search result you're interested in, or use the arrow keys to select it
   and press enter, to go to that team.

### View teams and their collections

To view teams and the collections they own, in the navigation menu click
** Go to admin view**, and then select
**Platform > Collections** or
**Platform > Teams**. For details about working
with collections, see [Collections](https://docs-xcor.paloaltonetworks.com/administer/collections).

### View a list of teams to manage

To view teams in a list that displays their members, provides an audit log of
membership changes, and includes management options for administrators:

> [tab] Web
>
> In the navigation menu, click \*\* Go to admin view\*\* and then select
> **Platform > Teams**.

> [tab] Chronoctl
>
> Use the command:
>
> ```shell theme={null}
> chronoctl teams list
> ```

For details, see
[Accounts and Teams](https://docs-xcor.paloaltonetworks.com/administer/accounts-teams#view-accounts-and-teams).

## Manage teams

> [!NOTE]
>
> To manage teams, you must use a user account or
> [service account](https://docs-xcor.paloaltonetworks.com/administer/accounts-teams/service-accounts.md) that belongs to a team
> with the SysAdmin role.

To manage teams, in the navigation menu, click ** Go to admin view**
and then select **Platform > Teams**.

### Create a team

> [tab] Web
>
> To create a new team:
>
> 1. In the navigation menu, click \*\* Go to admin view\*\*
>    and then select
>    **Platform > Teams**.
> 2. Click **Create team**.
> 3. In the dialog that appears, enter a name for the new team and the access role it
>    should have.
> 4. Click **Save** to create the team.
>
> The team now appears in the list of users and teams.

> [tab] Chronoctl
>
> > [!WARNING]
> >
> > To create teams or modify team membership with Chronoctl, you must use a user account
> > or [service account](https://docs-xcor.paloaltonetworks.com/administer/accounts-teams/service-accounts.md) that
> > belongs to a team with the SysAdmin role.
>
> To create and manage a team with [Chronoctl](https://docs-xcor.paloaltonetworks.com/tooling/chronoctl),
> use the `Team` resource type. The resource can contain these fields:
>
> | Field | Type | Description |
> | - | - | - |
> | `name` | String | The team name as displayed in Cortex XCOR. |
> | `slug` | String | Optional: A unique identifier that Cortex XCOR uses to identify the team. If omitted, Cortex XCOR generates a slug. |
> | `description` | String | Optional: A description displayed when viewing this team. |
> | `user_emails` | Collection of strings | Contains an item for each member account's email address. |
>
> To generate an example Team resource, run `chronoctl teams scaffold`.
>
> If an email address in `users` doesn't already have a Cortex XCOR
> account, the app creates a pending user account for that email address. When that
> user signs in, Cortex XCOR then activates the account.
>
> For example, this YAML resource creates a team named `DBAs` in Cortex XCOR, with the
> description `Database administrators`, and which the app
> identifies with the slug `dbas`. It also includes the listed accounts identified by
> their email addresses as team members:
>
> ```yaml Chronoctl example icon="square-terminal" theme={null}
> api_version: v1/config
> kind: Team
> spec:
>   name: DBAs
>   slug: dbas
>   description: "Database administrators"
>   user_emails:
>     - adam@example.com
>     - betty@example.com
> ```
>
> To include service accounts, add the service account's internal email address to
> the `users` list. For details, see [Service Accounts](https://docs-xcor.paloaltonetworks.com/administer/accounts-teams/service-accounts.md).

> [tab] Terraform
>
> > [!WARNING]
> >
> > To create teams or modify team membership with Terraform, you must use a user account
> > or [service account](https://docs-xcor.paloaltonetworks.com/administer/accounts-teams/service-accounts.md) that
> > belongs to a team with the SysAdmin role.
>
> To create and manage a team with [Terraform](https://docs-xcor.paloaltonetworks.com/tooling/infrastructure/terraform),
> declare the `chronosphere_team` resource type and provide a resource name. The resource
> can contain these fields:
>
> | Field | Type | Description |
> | - | - | - |
> | `name` | String | The team name as displayed in Cortex XCOR. |
> | `slug` | String | Optional: A unique identifier that Cortex XCOR uses to identify the team. If omitted, Cortex XCOR generates a slug. |
> | `description` | String | Optional: A description displayed when viewing this team. |
> | `user_emails` | Array of strings | The email address for each member account. |
>
> For example, this resource creates a team referred to by Terraform as `dbas`, named
> `DBAs` in Cortex XCOR, and identified in the app with the slug `dbas`. It
> also includes the listed accounts identified by their email addresses as team
> members:
>
> ```terraform Terraform example icon="square-terminal" theme={null}
> resource "chronosphere_team" "dbas" {
>   name = "DBAs"
>   slug = "dbas"
>   description = "Database administrators"
>
>   user_emails = [
>     "adam@example.com",
>     "betty@example.com",
>   ]
> }
> ```
>
> To include service accounts, add the service account's internal email address to
> the `user_emails` array. For details, see [Service Accounts](https://docs-xcor.paloaltonetworks.com/administer/accounts-teams/service-accounts.md).
>
> 1. Add the definition to a Terraform file.
> 2. Run this command to create the resource:
>
>    ```shell theme={null}
>    terraform apply
>    ```

> [tab] API
>
> To complete this action with the Cortex XCOR API, use the
> [`CreateTeam`](https://docs-xcor.paloaltonetworks.com/tooling/api-info/definition/operations/CreateTeam) endpoint.
>
> Because the Cortex XCOR API requires authentication, include an API token with your
> `curl` request, as shown in the following example. For more details, see
> [Create an API token](https://docs-xcor.paloaltonetworks.com/tooling/api-info.md#create-an-api-token).
>
> ```shell /"TOKEN"/ /INSTANCE/ /METHOD/ /ENDPOINT_PATH/ theme={null}
> export CHRONOSPHERE_API_TOKEN="TOKEN"
> export CHRONOSPHERE_DOMAIN="INSTANCE.chronosphere.io"
>
> curl -H "API-Token: ${CHRONOSPHERE_API_TOKEN}" \
>      -X METHOD "https://${CHRONOSPHERE_DOMAIN}/ENDPOINT_PATH"
> ```
>
> Replace the following:
>
> * *`TOKEN`*: Your API token.
> * *`INSTANCE`*: The subdomain name for your organization's Cortex XCOR instance.
> * *`METHOD`*: The HTTP method to use with the request, such as `GET` or `POST`.
> * *`ENDPOINT_PATH`*: The specific endpoint you want to access.

### Edit team membership

> [tab] Web
>
> To add users to or remove users from a team:
>
> 1. In the navigation menu, click \*\* Go to admin view\*\* and then select
>    **Platform > Teams**.
> 2. [Select the team](https://docs-xcor.paloaltonetworks.com/administer/accounts-teams#view-accounts-and-teams) to manage.
> 3. Click \*\* Edit Team\*\*.
> 4. In the **Team Members** section, click **Update Membership**.
> 5. From the account list that appears, select the checkbox for each account you want
>    to add to the team, and clear the checkbox for each account you want to remove
>    from the team.
> 6. Click **Save** to edit the team's membership.
>
> The team page updates its membership list accordingly, and the audit log adds an
> entry logging the operation.
>
> The account list includes both user and service accounts. You can remove a service account
> from the **Default** team to make it read-only. For more information, see
> [Assign team roles and permissions](#assign-team-roles-and-permissions).

> [tab] Chronoctl
>
> > [!WARNING]
> >
> > To modify teams with Chronoctl, you must use a user account or
> > [service account](https://docs-xcor.paloaltonetworks.com/administer/accounts-teams/service-accounts.md) that
> > belongs to a team with the `SysAdmin` role.
>
> You can use [Chronoctl](https://docs-xcor.paloaltonetworks.com/tooling/chronoctl) to replace and update a team and
> its membership with those defined in a YAML file.
>
> To generate a YAML description of your current teams and accounts, see
> [View Accounts and Teams](https://docs-xcor.paloaltonetworks.com/administer/accounts-teams#view-accounts-and-teams).
>
> Following the `DBAs` team example from [creating a team](#create-a-team),
> to add a user to that team, update the YAML to include the new user's email:
>
> ```yaml Chronoctl example icon="square-terminal" theme={null}
> api_version: v1/config
> kind: Team
> spec:
>   name: DBAs
>   slug: dbas
>   description: "Database administrators"
>   user_emails:
>     - adam@example.com
>     - betty@example.com
>     - charles@example.com
> ```
>
> To apply the changes, use the Chronoctl `chronoctl teams update` command, which
> updates teams but doesn't create them if they don't already exist:
>
> ```shell /FILE_NAME/ theme={null}
> chronoctl teams update -f FILE_NAME.yaml
> ```
>
> Replace *`FILE_NAME`* with the path to the YAML definition file.
>
> You can test the changes without applying them by including the `--dry-run` flag:
>
> ```shell /FILE_NAME/ theme={null}
> chronoctl teams update -f FILE_NAME.yaml --dry-run
> ```
>
> To force `teams update` to create a defined team if it doesn't exist, include the
> `--create-if-missing` flag:
>
> ```shell /FILE_NAME/ theme={null}
> chronoctl teams update -f FILE_NAME.yaml --create-if-missing
> ```

> [tab] Terraform
>
> To edit a team's membership using [Terraform](https://docs-xcor.paloaltonetworks.com/tooling/infrastructure/terraform), modify the
> `user_emails` array in the team's `chronosphere_team` resource, and then apply the
> resource using Terraform.

> [tab] API
>
> To complete this action with the Cortex XCOR API, use the
> [`UpdateTeam`](https://docs-xcor.paloaltonetworks.com/tooling/api-info/definition/operations/UpdateTeam) endpoint.
>
> Because the Cortex XCOR API requires authentication, include an API token with your
> `curl` request, as shown in the following example. For more details, see
> [Create an API token](https://docs-xcor.paloaltonetworks.com/tooling/api-info.md#create-an-api-token).
>
> ```shell /"TOKEN"/ /INSTANCE/ /METHOD/ /ENDPOINT_PATH/ theme={null}
> export CHRONOSPHERE_API_TOKEN="TOKEN"
> export CHRONOSPHERE_DOMAIN="INSTANCE.chronosphere.io"
>
> curl -H "API-Token: ${CHRONOSPHERE_API_TOKEN}" \
>      -X METHOD "https://${CHRONOSPHERE_DOMAIN}/ENDPOINT_PATH"
> ```
>
> Replace the following:
>
> * *`TOKEN`*: Your API token.
> * *`INSTANCE`*: The subdomain name for your organization's Cortex XCOR instance.
> * *`METHOD`*: The HTTP method to use with the request, such as `GET` or `POST`.
> * *`ENDPOINT_PATH`*: The specific endpoint you want to access.

## Assign team roles and permissions

Cortex XCOR teams use *roles* to grant or restrict access to features
that create, edit, or delete resources, teams, and accounts. Roles are assigned
to teams, and all accounts that belong to a team gain the permissions granted by
that team's role.

### Default team properties

During creation, accounts are assigned to the **Default** team, which has the `Editor`
role. The **Default** team can't be deleted, and its role can't be changed.

To remove editing access from a user or service account,
[remove them from the **Default** team](#edit-team-membership). This limits
the account to read-only Viewer access if they don't have edit access through
membership in another team.

[Unrestricted service accounts](https://docs-xcor.paloaltonetworks.com/administer/accounts-teams/service-accounts.md#create-an-unrestricted-service-account)
removed from the **Default** team have read-only access to the full Cortex XCOR API.
To create a read-only unrestricted service account that can access all APIs, remove
it from the **Default** team.

### Available roles

The available roles are:

* `None`: Accounts on teams with this role can view pages in Cortex XCOR
  but can't create, edit, or remove resources or accounts. Any
  [Operator](https://docs-xcor.paloaltonetworks.com/navigate/operator) chats by these accounts aren't saved to the chat
  history. Accounts that don't belong to any team also have the `None` role by
  default.
* `Editor`: Accounts on teams with this role can create, view, edit, and delete
  resources within Cortex XCOR, but can't create, edit, or delete accounts
  and teams. Operator saves the last 20 chat sessions of accounts that have the
  `Editor` or higher roles.
* `SysAdmin`: Any account that's a member of a team with the System Administrator
  (`SysAdmin`) role can create, edit, and delete accounts and teams, assign accounts
  to teams, and assign roles to teams. Accounts with this role are designated by a
  &#x20;key icon next to their name in the **Users** list.
* `User Administrator`: Accounts belonging to teams with this role can access the
  System for Cross-domain Identity Management (SCIM) API, which manages accounts
  that use single sign-on. This role grants no other permissions.

  The `User Administrator` role can be assigned to teams only in organizations that
  have SCIM integration enabled. For more information, see
  [Okta user synchronization](https://docs-xcor.paloaltonetworks.com/administer/accounts-teams/okta.md).

If an account belongs to multiple teams with different roles, they inherit the
highest-level permissions of each assigned team. For example, an account in a team
with the `Editor` role and a second team with the `SysAdmin` role has both sets of
privileges.

The following chart summarizes roles and permissions:

| Action | None | Editor | SysAdmin | User Admin |
| - | :-: | :-: | :-: | :-: |
| Interact with SCIM API | | | | |
| View pages in Cortex XCOR | | | | |
| Add and edit user and service accounts | | | | |
| Add, edit, and remove teams | | | | |
| Change users' team membership | | | | |
| Apply service configuration changes | | | | |
| Add, edit, and remove Trace Optimization datasets | | | | |
| Add, edit, and remove derived labels | | | | |
| Add, edit, and remove other resources | | | | |

Some features vary by role beyond whether an account can use them. Accounts with
the `None` role can chat with [Operator](https://docs-xcor.paloaltonetworks.com/navigate/operator), but their
conversations aren't saved, don't appear in chat history, and can't be shared. See
[Availability and permissions](https://docs-xcor.paloaltonetworks.com/navigate/operator#availability-and-permissions).

### Add a role to a team

To add a role to a team:

1. In the navigation menu, click ** Go to admin view** and then select
   **Platform > Teams**.
2. [Select the team](https://docs-xcor.paloaltonetworks.com/administer/accounts-teams#view-accounts-and-teams)
   to manage.
3. In the **Team Information** section, click ** Edit**.
4. Click the **Role** dropdown and select the role you want to assign to the team.
5. Click **Save**.

### Remove a role from a team

To remove a role from a team:

1. In the navigation menu, click ** Go to admin view** and then select
   **Platform > Teams**.
2. [Select the team](https://docs-xcor.paloaltonetworks.com/administer/accounts-teams#view-accounts-and-teams) to manage.
3. In the **Team Information** section, click ** Edit**.
4. Click the **Role** dropdown and select the **None** role.
5. Click **Save**.

### Rename a team

To rename a team:

1. In the navigation menu, click ** Go to admin view** and then select
   **Platform > Teams**.
2. [Select the team](https://docs-xcor.paloaltonetworks.com/administer/accounts-teams#view-accounts-and-teams) to manage.
3. In the **Team Information** section, click ** Edit**.
4. Change the team's name in the **Name** field.
5. Click **Save**.

### Describe a team

Team pages can display a brief description in the **Team Information** section.
You can use this description to clarify the team's purpose, identify the people
responsible for managing it, or provide general information or context to the team's
activities.

You can also add links to URLs, whether within or external to Cortex XCOR,
to the **Team Information** section.

To access a team's information:

1. In the navigation menu, click ** Go to admin view** and then select
   **Platform > Teams**.
2. [Select the team](https://docs-xcor.paloaltonetworks.com/administer/accounts-teams#view-accounts-and-teams) to manage.
3. In the **Team Information** section, click ** Edit**.

To add, edit, or remove a team's description:

1. Enter the team description in the **Description** field.
2. Click **Save**.

To add links to a team's information:

1. In the **Team Links** section, click ** Add**. This
   adds a row of fields to the section.
2. Enter the link text in the **Link Name** field.
3. Enter the link target in the **URL** field.
4. Repeat these steps to add more links.
5. Click **Save**.

To edit a team's links:

1. In the **Team Links** section, modify the link's **Link Name** and **URL** fields.
2. Click **Save**.

To remove links from a team's information:

1. In the **Team Links** section, click the  delete
   button in the rows of the links you want to delete.
2. Click **Save**.

### Delete a team

Use one of the following methods to delete a team. The **Default** team can't be
deleted.

> [tab] Web
>
> To delete a team:
>
> 1. In the navigation menu, click \*\* Go to admin view\*\* and
>    then select **Platform > Teams**.
> 2. [Select the team](https://docs-xcor.paloaltonetworks.com/administer/accounts-teams#view-accounts-and-teams) to delete.
> 3. In the **Team Information** section, click \*\* Edit\*\*.
> 4. Click **Delete team**.
> 5. In the confirmation dialog that appears, click **Delete**.

> [tab] Chronoctl
>
> To delete teams with [Chronoctl](https://docs-xcor.paloaltonetworks.com/tooling/chronoctl), use the `chronoctl teams delete`
> command:
>
> ```shell /SLUG/ theme={null}
> chronoctl teams delete SLUG
> ```
>
> Replace *`SLUG`* with the unique slug of the team you want to delete.
>
> For example, to delete the team with the slug `dbas`, run:
>
> ```shell theme={null}
> chronoctl teams delete dbas
> ```

> [tab] Terraform
>
> To delete a resource that's managed by [Terraform](https://docs-xcor.paloaltonetworks.com/tooling/infrastructure/terraform):
>
> 1. Edit your Terraform configuration file to remove the pre-existing resource
>    definition.
> 2. Run this command to remove the resource from Cortex XCOR:
>
>    ```shell theme={null}
>    terraform apply
>    ```

> [tab] API
>
> To complete this action with the Cortex XCOR API, use the
> [`DeleteTeam`](https://docs-xcor.paloaltonetworks.com/tooling/api-info/definition/operations/DeleteTeam) endpoint.
>
> Because the Cortex XCOR API requires authentication, include an API token with your
> `curl` request, as shown in the following example. For more details, see
> [Create an API token](https://docs-xcor.paloaltonetworks.com/tooling/api-info.md#create-an-api-token).
>
> ```shell /"TOKEN"/ /INSTANCE/ /METHOD/ /ENDPOINT_PATH/ theme={null}
> export CHRONOSPHERE_API_TOKEN="TOKEN"
> export CHRONOSPHERE_DOMAIN="INSTANCE.chronosphere.io"
>
> curl -H "API-Token: ${CHRONOSPHERE_API_TOKEN}" \
>      -X METHOD "https://${CHRONOSPHERE_DOMAIN}/ENDPOINT_PATH"
> ```
>
> Replace the following:
>
> * *`TOKEN`*: Your API token.
> * *`INSTANCE`*: The subdomain name for your organization's Cortex XCOR instance.
> * *`METHOD`*: The HTTP method to use with the request, such as `GET` or `POST`.
> * *`ENDPOINT_PATH`*: The specific endpoint you want to access.


## Related topics

- [Accounts and teams](https://docs-xcor.paloaltonetworks.com/administer/accounts-teams.md)
- [CreateTeam](https://docs-xcor.paloaltonetworks.com/tooling/api-info/definition/operations/CreateTeam.md)
- [UpdateTeam](https://docs-xcor.paloaltonetworks.com/tooling/api-info/definition/operations/UpdateTeam.md)
- [ReadTeam](https://docs-xcor.paloaltonetworks.com/tooling/api-info/definition/operations/ReadTeam.md)
- [ListTeams](https://docs-xcor.paloaltonetworks.com/tooling/api-info/definition/operations/ListTeams.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.