# Access\_denied error when "trying" Microsoft social connection

**URL:** <https://community.auth0.com/t/access-denied-error-when-trying-microsoft-social-connection/8380>\
**Category:** Get Help\
**Tags:** microsoft, social-connection, access-is-denied, scopes\
**Created:** [October 4, 2017, 12:27am UTC](https://community.auth0.com/t/access-denied-error-when-trying-microsoft-social-connection/8380 "2017-10-04T00:27:28Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![hhubik](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@hhubik](https://community.auth0.com/u/hhubik)\
**Post date:** [October 4, 2017, 12:27am UTC](https://community.auth0.com/t/access-denied-error-when-trying-microsoft-social-connection/8380/1 "2017-10-04T00:27:28Z")

</div>

I just set up my Microsoft social connection. When I hit the `Try` button, I get the following error message:

```
{
  "error": "access_denied",
  "error_description": "The provided value for the input parameter 'scope' is not valid. The scope 'wl.signin wl.emails wl.scope' does not exist."
}

```

The Microsoft connection is set up is as follows:  
![alt text][1]  
I also tried with the Client ID and Secret values from my app’s configuration on `apps.dev.microsoft.com`, but that gives me the same error. What could be the problem? Thanks!

---

<div class="post-metadata">

**Author:** ![peter4](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@peter4](https://community.auth0.com/u/peter4)\
**Post date:** [October 4, 2017, 6:21pm UTC](https://community.auth0.com/t/access-denied-error-when-trying-microsoft-social-connection/8380/2 "2017-10-04T18:21:25Z")

</div>

I have found the same issues today when attempting to configure the MS social connector

---

<div class="post-metadata">

**Author:** ![hhubik](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@hhubik](https://community.auth0.com/u/hhubik)\
**Post date:** [October 4, 2017, 10:06pm UTC](https://community.auth0.com/t/access-denied-error-when-trying-microsoft-social-connection/8380/3 "2017-10-04T22:06:49Z")

</div>

In case it matters, my Google connection works fine.

---

<div class="post-metadata">

**Author:** ![aditya](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@aditya](https://community.auth0.com/u/aditya)\
**Post date:** [October 6, 2017, 7:16am UTC](https://community.auth0.com/t/access-denied-error-when-trying-microsoft-social-connection/8380/4 "2017-10-06T07:16:52Z")

</div>

I’m also facing the same issue. I tried changing permission scope to simple User profile read permission (not even email), and it still doesn’t work and gives the same error.

---

<div class="post-metadata">

**Author:** ![Anny](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/anny/32/13140_2.png) [@Anny](https://community.auth0.com/u/Anny)\
**Post date:** [October 10, 2017, 9:36pm UTC](https://community.auth0.com/t/access-denied-error-when-trying-microsoft-social-connection/8380/5 "2017-10-10T21:36:51Z")

</div>

We have identified a bug with our Microsoft social connection and the fix should reach production in about 48 hours. In the meantime, you can workaround it by patching the Microsoft connection through the [Management API](https://auth0.com/docs/api/management/v2#!/Connections/patch_connections_by_id) with the following body:

```
{
    "options": {
      "client_id": "",
      "signin": true,
      "emails": true,
      "postal_addresses": false,
      "birthday": false,
      "work_profile": false,
      "basic": false,
      "offline_access": false,
      "calendars": false,
      "calendars_update": false,
      "contacts_birthday": false,
      "contacts_create": false,
      "contacts_calendar": false,
      "contacts_photos": false,
      "contacts_skydrive": false,
      "events_create": false,
      "messenger": false,
      "phone_numbers": false,
      "photos": false,
      "share": false,
      "skydrive": false,
      "skydrive_update": false,
      "applications": false,
      "applications_create": false
    }
}

```

It doesn’t have the scope attribute, which is what’s causing this issue. You can obtain the connection id from the [get all connections](https://auth0.com/docs/api/management/v2#!/Connections/get_connections) endpoint.

---

<div class="post-metadata">

**Author:** ![hhubik](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@hhubik](https://community.auth0.com/u/hhubik)\
**Post date:** [October 10, 2017, 9:54pm UTC](https://community.auth0.com/t/access-denied-error-when-trying-microsoft-social-connection/8380/6 "2017-10-10T21:54:39Z")

</div>

@anny - thanks for the update. I’ll try the Microsoft connection again in a few days.

---

<div class="post-metadata">

**Author:** ![vadim.s](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@vadim.s](https://community.auth0.com/u/vadim.s)\
**Post date:** [October 17, 2017, 6:25pm UTC](https://community.auth0.com/t/access-denied-error-when-trying-microsoft-social-connection/8380/7 "2017-10-17T18:25:32Z")

</div>

Hello Anny, did you fix this already?  
Best, Vadim

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:56am UTC](https://community.auth0.com/t/access-denied-error-when-trying-microsoft-social-connection/8380/8 "2018-03-02T05:56:48Z")

</div>


