> For the complete documentation index, see [llms.txt](https://help.security.gallagher.com/knowledge-hub/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.security.gallagher.com/knowledge-hub/configuration-client/site-management/service-principals/creating-a-new-service-principal.md).

# Creating a new Service Principal

### Introduction

An operator wishing to add a new Service Principal and add it to Operator Groups must have the "Edit Operators" privilege in the Division the Service Principal will belong to. To add an existing Service Principal to Operator Groups, operators only need the "Modify Operator Group Membership" privilege.

**Note:** You can only create and edit Service Principals in Gallagher Configuration Client.

### Before you begin

Create or decide on the Operator Group(s) that the Service Principal will be assigned. To do this, decide what the Service Principal will need to do for the processes or services it will be assigned to, then define which Operator Privileges are needed for those tasks. For details, see [Which Operator Privileges you require](https://help.security.gallagher.com/knowledge-hub/configuration-client/site-management/operator-privileges/which-operator-privileges-you-require.md) and Setting up Operator Groups.

**Note:** A Service Principal cannot be assigned an Operator Group with the Advanced User privilege.

### Procedure

1. Click **Manage** from the menu bar, then **Service Principals**.

   The **Service Principal** List Window opens (in [grid view](https://help.security.gallagher.com/knowledge-hub/configuration-client/introduction-to-command-centre/knowing-your-way-around/list-windows/grid-view.md)).
2. **Right click** and select **New\...Service Principal**.

   By default the **General** tab displays.
3. Complete the Name, Description and Division fields.

   For further detail see [General tab](https://help.security.gallagher.com/knowledge-hub/configuration-client/introduction-to-command-centre/knowing-your-way-around/generic-properties-configuration/general-tab.md).
4. Click the **Configuration** tab.

   ![](https://3000903572-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfCvaxj3suxNBzdwQndVT%2Fuploads%2Fgit-blob-a33df00c36bc52a79f33695b3e60822374d0e280%2F44900.png?alt=media)
5. Click **Manage** from the menu bar, then **Operator Groups**.

   The **Operator Group** List Window opens.
6. Select the Operator Group(s) you want the Service Principal to belong to, and drag and drop them into the Service Principal’s **Configuration** tab.
7. Click **OK** to exit and save your changes.

   Click **Cancel** to exit without saving your changes.

   Click **Apply** to save your changes and stay in this window.

### Result

A Service Principal has been created. It has the privileges of the Operator Groups it belongs to, and you can now assign it to processes or services that support Service Principals. Gallagher recommends creating a dedicated Service Principal for each process or service that requires one.


---

# 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://help.security.gallagher.com/knowledge-hub/configuration-client/site-management/service-principals/creating-a-new-service-principal.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.
