Skip to content

Conversation

@DHaussermann
Copy link
Contributor

Steps for mapping guests in Keycloak SAML

@DHaussermann DHaussermann self-assigned this Dec 2, 2025
@github-actions
Copy link

github-actions bot commented Dec 2, 2025

Newest code from mattermost has been published to preview environment for Git SHA 2ef3c9c

1 similar comment
@github-actions
Copy link

github-actions bot commented Dec 2, 2025

Newest code from mattermost has been published to preview environment for Git SHA 2ef3c9c

@DHaussermann
Copy link
Contributor Author

DHaussermann commented Dec 2, 2025

Hi @cwarnermm and @hanzei
As per recent conversation with Ben I had this PR sitting on my local.

The wording should be fine but unfortunately, I don't know how to preview what sso-saml-keycloak.rst will look like with these edits. I am just trying to match the existing style somewhat.

Can one of you assist in how I can spin up a preview so I can also match the style for consistency.

- Fix an italic fromat markdown
- Added whitespace above images for consistency
@github-actions
Copy link

github-actions bot commented Dec 2, 2025

Newest code from mattermost has been published to preview environment for Git SHA 73626b6

@cwarnermm
Copy link
Member

Hi @DHaussermann! Docs previews are auto-generated for all docs PRs, and each time changes are made to a PR, a new preview is generated. The github-actions bot will provide a link to the preview like this:
Screenshot 2025-12-03 at 8 58 47 AM

And when you click that link, you're taken to a build of the docs that includes your changes. From your file changes, copy the file path (omitting source) into the browser, replacing .rst or .md with HTML to go straight to changed pages you want to review.

@github-actions
Copy link

github-actions bot commented Dec 3, 2025

Newest code from mattermost has been published to preview environment for Git SHA e390cce

@DHaussermann
Copy link
Contributor Author

@cwarnermm or @hanzei this change is ready for review.

@hanzei hanzei added 1: Dev Review Requires review by a core commiter 2: Editor Review Requires review by an editor labels Dec 4, 2025
Copy link
Contributor

@hanzei hanzei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice on! 🎉

@hanzei hanzei removed the 1: Dev Review Requires review by a core commiter label Dec 4, 2025
Copy link
Member

@cwarnermm cwarnermm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @DHaussermann! Editorial feedback provided inline.

Configuing a SAML user as a Guest in Keycloak
---------------------------------------------

1. In the Mattermost **System Console** go to **Authentication > SAML**.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
1. In the Mattermost **System Console** go to **Authentication > SAML**.
1. In Mattermost, go to **System Console > Authentication > SAML**.


1. In the Mattermost **System Console** go to **Authentication > SAML**.

2. Set the **Guest Attribute** to the a value you will use to designate which SAML users are guests
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
2. Set the **Guest Attribute** to the a value you will use to designate which SAML users are guests
2. Set the **Guest Attribute** to designate which SAML users are guests.




3. In the Keycloak admin UI add a user attribute mapper for guests
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
3. In the Keycloak admin UI add a user attribute mapper for guests
3. In the Keycloak administration interface, add a user attribute mapper for guests.


3. In the Keycloak admin UI add a user attribute mapper for guests

- Select *Clients* from the LHS menu
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Select *Clients* from the LHS menu
a. Select **Clients** from the LHS menu.

3. In the Keycloak admin UI add a user attribute mapper for guests

- Select *Clients* from the LHS menu
- Select *mattermost* from the list
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Select *mattermost* from the list
b. Select **mattermost** from the list.


4. In Keycloak specify which users are guest by adding the attribute under **User details**

- Select *Users* from the LHS menu
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Select *Users* from the LHS menu
a. Select **Users** from the LHS menu.

4. In Keycloak specify which users are guest by adding the attribute under **User details**

- Select *Users* from the LHS menu
- Click the username of the desired user
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Click the username of the desired user
b. Select the username of the desired user.


- Select *Users* from the LHS menu
- Click the username of the desired user
- Select *Attribute* tab and click *+ add an attribute*
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Select *Attribute* tab and click *+ add an attribute*
c. Select the **Attribute** tab and select **+ add an attribute**.

- Select *Users* from the LHS menu
- Click the username of the desired user
- Select *Attribute* tab and click *+ add an attribute*
- Add the key and value as shown
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Add the key and value as shown
d. Add the key and value.

- Add the key and value as shown

.. image:: ../../images/guest-user-attribute.png
:alt: <Adding attribute to a user>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
:alt: <Adding attribute to a user>
:alt: An example of adding an attribute to a user.

@cwarnermm cwarnermm added 3: Reviews Complete All reviewers have approved the pull request and removed 2: Editor Review Requires review by an editor labels Dec 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3: Reviews Complete All reviewers have approved the pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants