# 2026-06-12 New feature: use holder group in UID script

### The new feature

<p class="callout info">Now, on the [Service provider](https://bookstack.soffid.com/books/federation/page/identity-service-providers#bkmrk-service-provider "Service provider") configuration page, the **holder group** can now be used in the **UID** selection **script**.</p>

### Bear in mind

Please note the following points:

- If there are multiple levels of folders, **only** the **authorizations** from the **parent** **folder** are **inherited**.

### How to configure it?

The following **components** must be installed:

- Federation addon 3.6.92 (or higher)

### Let's look at an example

First of all, we check that we have a **user** with **holder groups**.

[![image.png](https://bookstack.soffid.com/uploads/images/gallery/2026-07/scaled-1680-/NIzzTYC6LG2tZvTC-image.png)](https://bookstack.soffid.com/uploads/images/gallery/2026-07/NIzzTYC6LG2tZvTC-image.png)

We can now confirm that the **service provider** has the option "" enabled.

[![image.png](https://bookstack.soffid.com/uploads/images/gallery/2026-07/scaled-1680-/OR4UAx7zpt9lswIS-image.png)](https://bookstack.soffid.com/uploads/images/gallery/2026-07/OR4UAx7zpt9lswIS-image.png)

We use the **holderGroup** attribute in the **UID script**.

[![image.png](https://bookstack.soffid.com/uploads/images/gallery/2026-07/scaled-1680-/3IlGBG4T9Jghuuwb-image.png)](https://bookstack.soffid.com/uploads/images/gallery/2026-07/3IlGBG4T9Jghuuwb-image.png)

Finally, we’re going to authenticate with the service provider and **check the value of the UID attribute**.

[![image.png](https://bookstack.soffid.com/uploads/images/gallery/2026-07/scaled-1680-/rulrO538wOIv4CU5-image.png)](https://bookstack.soffid.com/uploads/images/gallery/2026-07/rulrO538wOIv4CU5-image.png)

[![image.png](https://bookstack.soffid.com/uploads/images/gallery/2026-07/scaled-1680-/CyJ7dPsSfYuvGaMl-image.png)](https://bookstack.soffid.com/uploads/images/gallery/2026-07/CyJ7dPsSfYuvGaMl-image.png)

[![image.png](https://bookstack.soffid.com/uploads/images/gallery/2026-07/scaled-1680-/N0bPJ2mwbHTgjsEq-image.png)](https://bookstack.soffid.com/uploads/images/gallery/2026-07/N0bPJ2mwbHTgjsEq-image.png)