Hello all,
Attempting to configure OpenID Connect Login 3.2.0 with NextCloud 30.0.4
We have named user groups in NextCloud that we want to map to Security Groups in EntraID - this way we can configure them in EntraID and have users mapped to groups and group folders in NextCloud.
In all of our testing ‘oidc_create_groups’ => true is the default.
When configuring groups matching we have set Azure to GroupID as well as sAMAccountName.
In the config.php we have the following setting for “oidc_login_attributes”:
‘groups’ => ‘groups’, // Groups claim for group mapping
When this is set everything works for user mapping (id => upn) without blocking EntraID integrated user login.
However, this does create one group in NextCloud for each user logging in, name is the Azure GUID of the group, and places that user in that group when the Azure group claim type is GroupID. No group is created when the group claim type is sAMAccountName.
If we set groups to an array (text below) logins break, error messages appear.
‘groups’ => array(
‘ABCDEFG-1234-ABCD-1234-1234ABCD5678EFGH’ => ‘EntraIDGroup1’,
‘ABCDEFG-1234-ABCD-1234-1234ABCD5678EFG1’ => ‘EntraIDGroup2’,
),
When this is configured when a user logs in “Internal Server Error” appears after a login attempt, they are unable to login. Enabling debugging in config.php we see the following error:
Type: TypeError
Code: 0
Message: Cannot assign array to property OCA\OIDCLogin\Service\AttributeMap::$_groups of type string
File: /var/www/html/custom_apps/oidc_login/lib/Service/AttributeMap.php
Line: 61
In the documentation @ github for nextcloud-oidc-login it mentions that groups can be an array or space separated string of nextcloud groups for the user but the error message seems to contradict this (citation below).
“* groups: Array or space separated string of Nextcloud groups for the user. Note that the name here corresponds to the GID of the group and not the display name. In the admin panel, the GID may be obtained from the URL when editing a group”
Maybe what we’re attempting is simply impossible. We’ve tried all of the OpenID apps on the app store, as well as the SAML app from NextCloud, and none of them work for EntraID group mapping.
Any assistance is appreciated.