# Shift management

There are two types of shifts that you can create for users.

**Fixed shift:**

* You can create shifts with a specific starting and ending time with the fixed shift.
* Therefore users can clock in only at a specific time.
* If users try to clock in or out at a time later or earlier than the specified time it will show an error message.

**Flexible Shift:**

* With the flexible shift, you can create shifts without specific timing
* Therefore users can clock in and clock out at any time.

#### Assigning shifts to users:

The created shifts can be assigned to specific users, so when they log in, they can clock in for the shifts assigned.

Click the assign users button for a particular shift and assign shifts for users on particular dates.

#### ERROR: No active shift at this time

Sometimes while users try to clock in, it may show this error.\
This is because there are no fixed shifts available for that time when they log in.

In such conditions, you can either manually add the attendance for such users in the attendance tab.

#### Auto clock-out option:

By enabling this option the system will automatically end the shift for users and they can automatically clock out.


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.kbgfuzion.com/erp/knowledge-base/modules/hrm-module/shift-management.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
