This module exposes mod_groups_internal groups to OAuth 2.0 clients via a
groups
scope/claim.
With the plugin installer in Prosody 0.12 you can use:
sudo prosodyctl install --server=https://modules.prosody.im/rocks/ mod_groups_oidc
For earlier versions see the documentation for installing 3rd party modules