mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-09-21 11:34:37 -04:00
Document get_groups_for_user
This commit is contained in:
parent
270f9cd23a
commit
4e8374856d
1 changed files with 6 additions and 0 deletions
|
@ -274,6 +274,12 @@ class ApplicationService(object):
|
||||||
|
|
||||||
def get_groups_for_user(self, user_id):
|
def get_groups_for_user(self, user_id):
|
||||||
"""Get the groups that this user is associated with by this AS
|
"""Get the groups that this user is associated with by this AS
|
||||||
|
|
||||||
|
Args:
|
||||||
|
user_id (str): The ID of the user.
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
iterable[str]: an iterable that yields group_id strings.
|
||||||
"""
|
"""
|
||||||
return (
|
return (
|
||||||
regex_obj["group_id"]
|
regex_obj["group_id"]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue