# 2025-09-16: IAM Service – validation of predefined group assignments

## Overview

The IAM Service was updated with validation for assigning customers to predefined groups.\
This ensures consistent role management within a company (Legal Entity) and provides clearer error handling for invalid assignments.

New validation rules:

* A customer can only be assigned to one predefined group (for example *Admin*, *Buyer*, *Requester*) within the same Legal Entity.
* Customers may still be assigned to different groups in different companies (Legal Entities).
* The *Contact* group can always be assigned.

## Modified endpoints

| Endpoint                                                                                                                                                                                             | Description                                                                                     |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- |
| [Adding a user to a group](https://developer.emporix.io/api-references/api-guides/users-and-permissions/iam/api-reference/group-assignments#post-iam-tenant-groups-groupid-users)                    | Validation added - a customer can only be assigned to one predefined group in one Legal Entity. |
| [Upserting a group assignment](https://developer.emporix.io/api-references/api-guides/users-and-permissions/iam/api-reference/group-assignments#put-iam-tenant-groups-groupid-users-usertype-userid) | Validation added - a customer can only be assigned to one predefined group in one Legal Entity. |

## Known problems

There are no known problems.


---

# 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://developer.emporix.io/changelog/archive/changelog-2025/2025-09-16-iam.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.
