> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/xsoar-6-administrator-guide/6.12/onboard-cortex-xsoar/users-and-roles/roles-in-cortex-xsoar/shift-management/managing-shifts.md).

# Managing Shifts

Manage shift schedules in Cortex XSOAR 6.12.

You can define shifts for various roles and then add them to automations, playbooks and incidents.

1. Define a Role.
2. In the **Shifts** field, click **Add Shift** and add the required period.

   Weekly shifts start on Sunday and are specified in the UTC time zone format.

   For example, we create a role called First Shift and add a shift starting on Sunday and ending Monday.

   ![shift.png](https://4128117757-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9gZ0C5CI8Bl5Aulkp4dZ%2Fuploads%2Fgit-blob-3151339d53515b734e79bb8da1caf85b9c5af022%2F483c1491e24d1c0ea04651af79d55a89d4e7afb425c63e9891b99e3ed2b9834f.png?alt=media)
3. Click **Save.**
4. (Optional) To add the role to a user, in the **Users** tab, select the user you want to add.

   ![roles.png](https://4128117757-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9gZ0C5CI8Bl5Aulkp4dZ%2Fuploads%2Fgit-blob-5a75a25d4fe76fe1114e60d84738af539c2033f8%2F880a9d162eddb9119029f48ed0a9c60b9d8fdfaa0b8022d296b86ea7ebb7c9be.png?alt=media)
5. Click **Roles**.
6. From the drop-down list, select the role you created.

   ![add-roles.png](https://4128117757-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9gZ0C5CI8Bl5Aulkp4dZ%2Fuploads%2Fgit-blob-e122a797cadc2b0e82ba134f8e48e045b9ad17e1%2F8c3971ebcc272f2fef974263e57f99ea25f120e980402555b41c33c861eb531e.png?alt=media)
7. Click **Save**.

   You can also assign the role to a playbook or automation as required.
8. (Optional) You can view on-call users’ details in a dashboard by adding the required widgets.

   ![shift-dashboard.png](https://4128117757-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9gZ0C5CI8Bl5Aulkp4dZ%2Fuploads%2Fgit-blob-9995c475fb0c400f99db444ed67a63c5aaa1f38f%2F5451b007b8545825e607f675373da99afd6ae68477883526eaa91104525f35b8.png?alt=media)

   When assigning an incident, you can manually assign it to analysts who are on-call or the incidents can be assigned automatically, for example, the **`AssignAnlystToIncident`** automation.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://cortex-docs.paloaltonetworks.com/xsoar-6-administrator-guide/6.12/onboard-cortex-xsoar/users-and-roles/roles-in-cortex-xsoar/shift-management/managing-shifts.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
