# Pass IdP specific scopes when using universal login

**URL:** <https://community.auth0.com/t/pass-idp-specific-scopes-when-using-universal-login/81638>\
**Category:** Get Help\
**Tags:** idp, social-connections\
**Created:** [April 12, 2022, 8:54pm UTC](https://community.auth0.com/t/pass-idp-specific-scopes-when-using-universal-login/81638 "2022-04-12T20:54:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rich-panda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rich-panda/32/34225_2.png) [@rich-panda](https://community.auth0.com/u/rich-panda)\
**Post date:** [April 12, 2022, 8:54pm UTC](https://community.auth0.com/t/pass-idp-specific-scopes-when-using-universal-login/81638/1 "2022-04-12T20:54:32Z")

</div>

I have an Auth0 tenant configured with multiple IdP logins including a Google social connection and M365 enterprise.

The Google social connection configuration UI does not allow read-only variants of scopes to be specified, only read/write.

I have my Google OAuth app configured to permit Calendar read/write and Contacts read, however Auth0 is requesting both as read/write when ticked in the Auth0 connector configuration (which I’m surprised Google isn’t blocking) and isn’t what I want.

I have seen several forum posts in which people are asking how to specify custom/readonly scopes such as [Readonly Gmail Scope in Google Social Login](https://community.auth0.com/t/readonly-gmail-scope-in-google-social-login/12760) and [Pass contacts.readonly scope to google IDP](https://community.auth0.com/t/pass-contacts-readonly-scope-to-google-idp/14570).

Responses to those posts point to the documentation at [Add Scopes/Permissions to Call Identity Provider APIs](https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp) which requires the client to explicitly specify the `connection_scope` when redirecting the client to the Auth0 universal login page, however this also requires specifying `connection=google-oauth2` which then has Auth0 immediately redirect to the google login, preventing the user from using any other identity provider.

How can I use universal login where the user can select the identity provider they want to use, but have the Google connector use the correct (readonly) scopes?

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [April 14, 2022, 2:40pm UTC](https://community.auth0.com/t/pass-idp-specific-scopes-when-using-universal-login/81638/3 "2022-04-14T14:40:10Z")

</div>

Hi @rich-panda,

Welcome to the Auth0 Community!

You can pass default or dynamic upstream params to identity providers, and you should be able to provide a scope parameter to override the existing scopes.

You will need to update your connection’s with the following:

```auto
{
"options":{
  "upstream_params": {
    "scope": {
      "value": "email profile https://www.googleapis.com/auth/calendar.readonly"
  },
//the rest of your connection options...
}

```

Let me know if you have any questions about this.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [May 25, 2022, 9:30pm UTC](https://community.auth0.com/t/pass-idp-specific-scopes-when-using-universal-login/81638/4 "2022-05-25T21:30:54Z")

</div>


