Sharing information with integrations

We have a self hosted environment with integrations like Microsft Outlook and Youtube. At what point is information shared with these 3rd parties? Only when a user uses the integrations? Or also when a room doesn’t use it?
I’m asking this because of the GDPR. Even if it’s anonymous I only want to share information about our users when they use an integration.

Does anyone has an idea about this?