Skip to content

Conversation

@naqvis
Copy link
Contributor

@naqvis naqvis commented Dec 18, 2025

No description provided.

@naqvis naqvis requested review from chillfox, stakach and w-le December 18, 2025 06:39
Copy link
Member

@stakach stakach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we move all these into the Calendar driver

# NOTE:: GraphAPI Only!
@[PlaceOS::Driver::Security(Level::Support)]
def get_user_manager(user_id : String)
logger.debug { "getting manager details for #{user_id}, note: graphAPI only" }
client do |_client|
if _client.client_id == :office365
_client.calendar.as(PlaceCalendar::Office365).client.get_user_manager(user_id).to_place_calendar
end
end
end

There are already graph api only functions in there - we don't want to manage secrets on multiple drivers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants