> For the complete documentation index, see [llms.txt](https://docs.balkan.id/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.balkan.id/lifecycle-management/jitpbac/purposes/create-purpose.md). Agents can also search and read this documentation through its [MCP server](https://docs.balkan.id/~gitbook/mcp).

# Create purpose

Follow the instructions below to define and setup JIT Purposes for your organization in BalkanID.

1. Navigate to the ‘Purposes & Constraints’ tab in the side navigation bar to open the Purposes page. This page lists all the purposes that have been set up for your tenant.
2. To create a new purpose, click on the ‘Create Purpose’ button at the top left of the page. This action will open a new page where you can enter the details for the purpose.<br>

   <figure><img src="https://2975852473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbVGYwk8aSk5yI1GDPEW9%2Fuploads%2FxzTnWOJ5rsd55EzL2IaI%2FScreenshot%202025-08-27%20at%206.26.39%E2%80%AFPM.png?alt=media&amp;token=ff08f573-863f-42b9-b0a5-fdf84055a68b" alt=""><figcaption></figcaption></figure>
3. Fill in all the required fields related to the purpose, ensuring that the information provided is accurate and comprehensive. Filling out the optional fields is not mandatory; they are intended for organizing, grouping, and filtering purposes.<br>

   **Team** lists the teams set on employees. Pick one from the list. You cannot type a new team, and the API rejects a team that no employee has. Team describes the purpose. It does not decide which users get the purpose.<br>

   The Pre-Expiry Notification field allows you to specify whether a notification should be sent to users assigned to the purpose before it expires.<br>

   <figure><img src="https://2975852473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbVGYwk8aSk5yI1GDPEW9%2Fuploads%2F80GgZaIzxOvB1wyuUnzL%2FScreenshot%202025-08-27%20at%206.12.37%E2%80%AFPM.png?alt=media&amp;token=1a9b2931-10cb-497d-8dee-15739033d728" alt=""><figcaption></figcaption></figure>
4. To add connections to the purpose, click on the ‘Add Connection’ button at the top right of the connections table. From the dialog that appears, select the connections you want to associate with the purpose.<br>

   <figure><img src="https://2975852473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbVGYwk8aSk5yI1GDPEW9%2Fuploads%2F8Edf5L5f8HPrGqRLY51l%2FScreenshot%202025-08-27%20at%206.13.19%E2%80%AFPM.png?alt=media&amp;token=e75b08b4-f391-482b-ac64-f89db98920bf" alt=""><figcaption></figcaption></figure>
5. Once all details are entered and connections are selected, click on the ‘Save’ button to create the purpose.<br>

   <figure><img src="https://2975852473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbVGYwk8aSk5yI1GDPEW9%2Fuploads%2FGcyYXXF7IQ8v6xtCo3bY%2FScreenshot%202025-08-27%20at%206.13.33%E2%80%AFPM.png?alt=media&amp;token=3aede608-5acf-4967-8771-2068e919f6ac" alt=""><figcaption></figcaption></figure>
6. The newly created purpose will then appear on the Purposes page.<br>


---

# 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://docs.balkan.id/lifecycle-management/jitpbac/purposes/create-purpose.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.
