in ees_microsoft_outlook/permission_sync_command.py [0:0]
def set_permissions_to_users(self, user_account):
"""Method fetches users from Microsoft Outlook and adds fetched permissions to Enterprise Search users.
:param user_account: Microsoft Outlook user
"""
sync_microsoft_outlook = SyncMicrosoftOutlook(
self.config,
self.logger,
self.workplace_search_custom_client,
[],
)
sync_microsoft_outlook.map_ms_outlook_user_to_ws_user(
user_account.primary_smtp_address, [user_account.primary_smtp_address]
)