Oidc-login app: How to restrict login to users in specific OIDC group?

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:


Or for longer, use three backticks above and below the code snippet:


Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): 23.0.0
Deployed using official Helm chart v2.11.x

The issue you are facing:

I would like to restrict login to members of a specific group that I am returning with the OIDC user info. The groups are already supported by options as explained in the app readme, but I do not see an option to require membership in a specific group. This functionality is present in the Nextcloud Social Login app from which this was forked, so I thought that perhaps it was a hidden config or something.