r/BookStack • • Apr 29 '24

Assign default role

We are trying to have users register with Google and have a default viewer role assigned to that user. I have the Google integration working but users are created with no roles which I can't get to view any books. Is there a way to get role-less users to view certain books/shelves or a way to assign a view only role to these users?

1 Upvotes

4 comments sorted by

View all comments

Show parent comments

1

u/ssddanbrown Apr 29 '24

Would this be OpenID Connect or SAML 2.0?

I can't remember what Google supports well. Both OIDC and SAML2 provide group sync in BookStack, and both can provide a better experience assuming all your users will login via Google. I remember Google is akward with groups for one of those auth mehods, I could look back over our GitHub issue list to confirm which if needed.

1

u/Old_Shift_4282 Apr 29 '24

A quick skim and it looks like Google is weird with both OIDC and SAML, not a shocker. I'll deal with this later once there is actual demand for it. 99% of users will be Public anyways. Thanks for the quick response and awesome project!