> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zenzap.co/llms.txt
> Use this file to discover all available pages before exploring further.

# SAML Role Mapping

> Configure automatic role assignment via SAML assertions

Zenzap checks for role information in the SAML assertion to automatically assign user roles.

## Attribute Name

Configure a `role` attribute in your identity provider's SAML assertion.

If no role attribute is found, the user's role remains unchanged.

## Expected Values

| Value           | Effect                |
| --------------- | --------------------- |
| `admin`         | User gets Admin role  |
| `user`          | User gets Member role |
| (anything else) | No change             |

Values are case-insensitive.

## Behavior

* If role attribute exists with `admin` → user becomes Admin
* If role attribute exists with `user` → user becomes Member
* If role attribute exists but value isn't recognized → no change
* If no role attribute is present → no change
