Skip to content

Commit

Permalink
WIP actions/sync_gws_mailing_lists.py
Browse files Browse the repository at this point in the history
  • Loading branch information
vbrik committed May 21, 2024
1 parent 1b55c60 commit 8774b01
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions actions/sync_gws_mailing_lists.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,12 @@
from cachetools import Cache
from collections import defaultdict

from googleapiclient.discovery import build # type: ignore
# noinspection PyProtectedMember
from googleapiclient.discovery import build, Resource # type: ignore
from google.oauth2 import service_account # type: ignore

from rest_tools.client import RestClient

from krs.token import get_rest_client
from krs.groups import get_group_membership, group_info
from krs.users import user_info, UserDoesNotExist
Expand Down Expand Up @@ -167,8 +170,8 @@ async def get_gws_members_from_kc_group(group_path, role, keycloak_client) -> di
return ret


async def sync_kc_group_tree_to_gws(kc_root_group, group_email, keycloak_client, gws_members_client,
send_notifications, dryrun):
async def sync_kc_group_tree_to_gws(kc_root_group: dict, group_email: str, keycloak_client: RestClient,
gws_members_client: Resource, send_notifications: bool, dryrun: bool):
"""
Sync a single KeyCloak mailing group with subgroups to Google Workspace Group.
Expand Down

0 comments on commit 8774b01

Please sign in to comment.