Thank you for the suggestions.
Indeed, I have succeeded in applying the suggested workaround and now everything works as expected.
# Workaround
Manually updated the ldap attribute for the claim `oxScopeType: dynamic`:
- Logged in to gluu: `/sbin/gluu-serverd-3.1.0 login`
- Created the ldif to change the attribute:
```sh
LDAPTLS_REQCERT=never /opt/symas/bin/ldapsearch -H 'ldaps://localhost:1636' \
-o ldif-wrap=no -W -LLL \
-b "o=gluu" -D "cn=directory manager,o=gluu" -w somepassword \
"(&(objectClass=oxAuthCustomScope)(displayName=groups))" \
| grep 'dn:' > somescript.ldif
echo "changetype: modify" >> somescript.ldif
echo "replace: oxScopeType" >> somescript.ldif
echo "oxScopeType: dynamic" >> somescript.ldif
LDAPTLS_REQCERT=never /opt/symas/bin/ldapmodify -v -W -H 'ldaps://localhost:1636' \
-D "cn=directory manager,o=gluu" -w somepassword \
-f somescript.ldif
```
- Restarted oxauth: `systemctl restart oxauth`
# Updated the script for 3.1.0
Following the suggestions from [Migration_stepts_to_3.1.x.txt](https://github.com/GluuFederation/oxAuth/blob/master/Server/integrations/Migration_stepts_to_3.1.x.txt), I have updated the script:
```python
from org.xdi.service.cdi.util import CdiUtil
[...]
userService = CdiUtil.bean(UserService)
userGroupService = CdiUtil.bean(UserGroupService)
[...]
```