Google SAML groups stopped syncing users #4949

Closed
opened 2026-02-05 09:28:48 +03:00 by OVERLORD · 6 comments
Owner

Originally created by @Jeffrey-FB on GitHub (Sep 11, 2024).

Attempted Debugging

  • I have read the debugging page

Searched GitHub Issues

  • I have searched GitHub for the issue.

Describe the Scenario

I have been using Google for SAML auth.
Everything has been working well.
Now today new groups we are creating will not sync users.
Is there a limit to how many user roles we can have?

I've looked at the logs and there doesn't seem to be anything in there.
Is there any where else i can get info on why this isn't working anymore?

Exact BookStack Version

v24.05.2

Log Content

No response

Hosting Environment

apache2, Ubuntu 24.04, SAML 2 to Google workspace.

Originally created by @Jeffrey-FB on GitHub (Sep 11, 2024). ### Attempted Debugging - [X] I have read the debugging page ### Searched GitHub Issues - [X] I have searched GitHub for the issue. ### Describe the Scenario I have been using Google for SAML auth. Everything has been working well. Now today new groups we are creating will not sync users. Is there a limit to how many user roles we can have? I've looked at the logs and there doesn't seem to be anything in there. Is there any where else i can get info on why this isn't working anymore? ### Exact BookStack Version v24.05.2 ### Log Content _No response_ ### Hosting Environment apache2, Ubuntu 24.04, SAML 2 to Google workspace.
OVERLORD added the 🐕 Support label 2026-02-05 09:28:48 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Sep 11, 2024):

Is there a limit to how many user roles we can have?

No hard limits built in, but I don't advise inflating the number of roles beyond what's needed since they can have a performance impact.

Is there any where else i can get info on why this isn't working anymore?

You can use the SAML2_DUMP_USER_DETAILS=true option to dump the fetched SAML details upon login. (This will stop login, so only enable temporarily during login).
Then double check if you're still getting group details provided in this data.

@ssddanbrown commented on GitHub (Sep 11, 2024): > Is there a limit to how many user roles we can have? No hard limits built in, but I don't advise inflating the number of roles beyond what's needed since they can have a performance impact. > Is there any where else i can get info on why this isn't working anymore? You can use the `SAML2_DUMP_USER_DETAILS=true` option to dump the fetched SAML details upon login. (This will stop login, so only enable temporarily during login). Then double check if you're still getting group details provided in this data.
Author
Owner

@bramFB commented on GitHub (Sep 12, 2024):

I've done extensive testing.
We have 10 groups/roles that work, and it seems everything created AFTER these first 10, do not sync.

Perhaps we have hit a limit?

We could work with just 10 roles, but it's less than ideal TBH.

10 doesn't seem that many does it?

@bramFB commented on GitHub (Sep 12, 2024): I've done extensive testing. We have 10 groups/roles that work, and it seems everything created AFTER these first 10, do not sync. Perhaps we have hit a limit? We could work with just 10 roles, but it's less than ideal TBH. 10 doesn't seem that many does it?
Author
Owner

@Jeffrey-FB commented on GitHub (Sep 12, 2024):

@ssddanbrown We did the SAML2_DUMP_USER_DETAILS=true and it's not adding/showing the newer groups, in the user dump.
i.e group number 11 and up

Could it be an issue if the user is a Viewer in one group but an Editor in another?
As the user is getting multiple Roles assigned

@Jeffrey-FB commented on GitHub (Sep 12, 2024): @ssddanbrown We did the `SAML2_DUMP_USER_DETAILS=true` and it's not adding/showing the newer groups, in the user dump. i.e group number 11 and up Could it be an issue if the user is a Viewer in one group but an Editor in another? As the user is getting multiple Roles assigned
Author
Owner

@bramFB commented on GitHub (Sep 12, 2024):

Additional bit of info, one of the groups that DOESN'T work, is nested in a group that DOES.
In this case, the user gets the permissions of the working group/role.

But for any group that is outside of the first 10 created (could be coincidental) it doesn't work.

Another note (which we presume doesn't relate)
We previously had used LDAP, but switched to Google SAML.

It is possible (hard to confirm) that all the WORKING groups, were previously also LDAP/AD groups. They were then recreated in Google.
The non-working groups, were only ever created in Google.

Any clues there?

@bramFB commented on GitHub (Sep 12, 2024): Additional bit of info, one of the groups that DOESN'T work, is nested in a group that DOES. In this case, the user gets the permissions of the working group/role. But for any group that is outside of the first 10 created (could be coincidental) it doesn't work. Another note (which we presume doesn't relate) We previously had used LDAP, but switched to Google SAML. It is possible (hard to confirm) that all the WORKING groups, were previously also LDAP/AD groups. They were then recreated in Google. The non-working groups, were only ever created in Google. Any clues there?
Author
Owner

@ssddanbrown commented on GitHub (Sep 12, 2024):

We did the SAML2_DUMP_USER_DETAILS=true and it's not adding/showing the newer groups, in the user dump.

@Jeffrey-FB Based up that, then this is an issue with Google not providing the extra groups to BookStack in the first place. BookStack can't consider them if Google is not providing them.

Based upon this page, th limit of groups in SAML responses for Google is 75, but you might need to ensure the groups are configured for the mapping?

@ssddanbrown commented on GitHub (Sep 12, 2024): > We did the SAML2_DUMP_USER_DETAILS=true and it's not adding/showing the newer groups, in the user dump. @Jeffrey-FB Based up that, then this is an issue with Google not providing the extra groups to BookStack in the first place. BookStack can't consider them if Google is not providing them. Based [upon this page](https://support.google.com/a/answer/11143403?hl=en), th limit of groups in SAML responses for Google is 75, but you might need to ensure the groups are configured for the mapping?
Author
Owner

@Jeffrey-FB commented on GitHub (Sep 17, 2024):

That did the trick thanks.

@Jeffrey-FB commented on GitHub (Sep 17, 2024): That did the trick thanks.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#4949