Lowest scope to get user Timezone information

118 views Asked by At

We are trying to get access to the Timezone of the user or of his/her primary calendar.

What is the lowest scope in order to do this? Currently we are using "https://www.googleapis.com/auth/calendar.readonly"

If we check the main scopes documentation it says.

See the title, description, default time zone, and other properties of Google calendars you have access to

The issue is that it is a sensitive scope and we would rather use a non-sensitive scope. Is there a way to do that?

Thank you very much in advance.

1

There are 1 answers

2
Linda Lawton - DaImTo On BEST ANSWER

If you check the docs for calendars.get you will see that you need to use one of the following scopes

The lowest scope that gives the lest amount of access will be the https://www.googleapis.com/auth/calendar.readonly this scope will give you the ability to read everything on a users account but not make any changes.

You only have two options if you want to use the calendar.get method. either the full read scope or the read only scope. You will need to accept that this is a sensitive scope.