diff --git a/synapse/handlers/groups_local.py b/synapse/handlers/groups_local.py index 5cc4b86afd31c54cd4f01bf45d4a88f03f8b8a7e..7e5d3f148dac6165f832d8bec82fa16196773d9e 100644 --- a/synapse/handlers/groups_local.py +++ b/synapse/handlers/groups_local.py @@ -421,4 +421,9 @@ class GroupsLocalHandler(object): uid ) + # Check AS associated groups for this user - this depends on the + # RegExps in the AS registration file (under `users`) + for app_service in self.store.get_app_services(): + results[uid].extend(app_service.get_groups_for_user(uid)) + defer.returnValue({"users": results})