How do I identify which Access Mode a user has selected?
To identify which Calendar Access Mode a user has selected when connecting their calendar to Cronofy within your application, your application can make use of the Userinfo endpoint to check either the provider_name or provider_service. If a user has selected Free/Busy access mode these parameters will return ms_graph_free_busy and google_free_busy and for No-Access mode these will return as cronofy
You can also identify the access mode that a user has selected within the response of the Request an Access Token after a succesful call to this endpoint.
Within the response this returns a parameter named linking_profile with the newly linked profile information which inlcudes the following:
linking_profile.provider_namelinking_profile.provider_service
Both of these will return ms_graph_free_busy or google_free_busy if the user has selected Free/Busy Access mode and for No Calendar Access mode cronofy will be returned.
The Userinfo endpoint is also returned in the response of a succesful call to the Reqest an Access Token endpoint as well.