# SAML SSO Issues: Single-Logout/custom metadata creation

**URL:** <https://community.zammad.org/t/saml-sso-issues-single-logout-custom-metadata-creation/5753>\
**Category:** Technical assistance\
**Created:** [November 25, 2020, 8:01am UTC](https://community.zammad.org/t/saml-sso-issues-single-logout-custom-metadata-creation/5753 "2020-11-25T08:01:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sjash](https://community.zammad.org/user_avatar/community.zammad.org/sjash/32/4425_2.png) [@sjash](https://community.zammad.org/u/sjash)\
**Post date:** [November 25, 2020, 8:01am UTC](https://community.zammad.org/t/saml-sso-issues-single-logout-custom-metadata-creation/5753/1 "2020-11-25T08:01:04Z")

</div>

Hello guys,  
I’m new to the Zammad community and recently I have installed and configured Zammad in a docker container, at first I have synced my users from LDAP. And Roles are also mapped from LDAP.  
I tried configuring SAML SSO authentication with Keycloak as IdP.  
After authentication it redirects me to the Zammad portal without the roles.  
Following are the details:

- Used Zammad version: 3.7
- Used Zammad installation source: Docker
- Operating system: Debian GNU/Linux 10
- Browser + version: Firefox and chrome (latest)

I’m stuck at following points. Need tech assistance

1. How to configure/sync the roles either from IdP or from LDAP after authentication ?
2. Is there anyway I can customized the SAML metadata for Zammad ?
3. How to configure the Single-Logout feature ?

Best Regards,  
Sharad

---

<div class="post-metadata">

**Author:** ![MrGeneration](https://community.zammad.org/user_avatar/community.zammad.org/mrgeneration/32/9260_2.png) [@MrGeneration](https://community.zammad.org/u/MrGeneration)\
**Post date:** [December 16, 2020, 4:00pm UTC](https://community.zammad.org/t/saml-sso-issues-single-logout-custom-metadata-creation/5753/2 "2020-12-16T16:00:14Z")

</div>

> [@sjash](#):
>
> After authentication it redirects me to the Zammad portal without the roles.

I’m afraid that’s correct.  
Zammad expects these attributes:

| Name | EmailAddress-Email |
| --- | --- |
| Mapper Type | User Property |
| Property | emailAddress |
| SAML Attribute Name | email |
| SAML Attribute NameFormat | basic |

This excludes roles. Roles are in general ignored by Zammad in this regard.

> [@sjash](#):
>
> - How to configure/sync the roles either from IdP or from LDAP after authentication ?

The only way to achieve what you want would be to synchronize your ldap source (which should contain the same user base) and allow them to login via SAML. This should provide the required role permissions.

Alternatively you could also apply agent or admin roles once to the user as Zammad will not overwrite them if not ldap sync is in place.

Note that this doesn’t matter to customer users, as Zammad will apply the default signup role for that.

> [@sjash](#):
>
> - Is there anyway I can customized the SAML metadata for Zammad ?

No, sorry.

> [@sjash](#):
>
> 1. How to configure the Single-Logout feature ?

Zammad does not provide such a functionality, I’m sorry.

---

<div class="post-metadata">

**Author:** ![system](https://community.zammad.org/uploads/default/original/1X/5c5afaea2d23f811dbec33cd4edb02fa29d3262f.png) [@system](https://community.zammad.org/u/system)\
**Post date:** [April 15, 2021, 4:00pm UTC](https://community.zammad.org/t/saml-sso-issues-single-logout-custom-metadata-creation/5753/3 "2021-04-15T16:00:15Z")

</div>

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.
