# Set upstream\_params on social connection

**URL:** <https://community.auth0.com/t/set-upstream-params-on-social-connection/89435>\
**Category:** Get Help\
**Tags:** api, social-connections, management-api\
**Created:** [August 25, 2022, 1:39pm UTC](https://community.auth0.com/t/set-upstream-params-on-social-connection/89435 "2022-08-25T13:39:42Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Troopers](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/troopers/32/14673_2.png) [@Troopers](https://community.auth0.com/u/Troopers)\
**Post date:** [August 25, 2022, 1:39pm UTC](https://community.auth0.com/t/set-upstream-params-on-social-connection/89435/1 "2022-08-25T13:39:42Z")

</div>

Hi,

I try to add custom static parameter to my upstream IDP. I follow this documentation [https://auth0.com/docs/authenticate/identity-providers/pass-parameters-to-idps](https://auth0.com/docs/authenticate/identity-providers/pass-parameters-to-idps)

I can get the option for my connection via the management API.  
I add the upstream\_params object and try to update the connection by calling:  
PATCH url: http://{{auth0\_domain}}/api/v2/connections/:id  
with the body:

```auto
{
    "options": {
        "scope": "openid scope_all",
        "scripts": {
            "fetchUserProfile": "function(accessToken, ctx, cb) {\n const profile = {};\n // Call OAuth2 API with the accessToken and create the profile\n cb(null, profile);\n }"
        },
        "tokenURL": "https://auth.bas.psc.esante.gouv.fr/auth/realms/esante-wallet/protocol/openid-connect/token",
        "client_id": "XXX",
        "client_secret": "XXX",
        "authorizationURL": "https://wallet.bas.psc.esante.gouv.fr/auth",
        "upstream_params":{
            "acr_values": {"value":"eidas1"}
        }
    }
}

```

but this return the same result than the get connection by id without the upstream\_params  
and the connection is not updated  
Any ideas?

---

<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:** [August 30, 2022, 10:43pm UTC](https://community.auth0.com/t/set-upstream-params-on-social-connection/89435/3 "2022-08-30T22:43:36Z")

</div>

Hi @Troopers,

Some connection types don’t support them. If you share what type of connection are you using, I can confirm it is possible. Thanks

---

<div class="post-metadata">

**Author:** ![Troopers](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/troopers/32/14673_2.png) [@Troopers](https://community.auth0.com/u/Troopers)\
**Post date:** [August 31, 2022, 6:50am UTC](https://community.auth0.com/t/set-upstream-params-on-social-connection/89435/4 "2022-08-31T06:50:01Z")

</div>

Hi @dan.woda, I created my social connection from the custom social connection

---

<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:** [August 31, 2022, 5:48pm UTC](https://community.auth0.com/t/set-upstream-params-on-social-connection/89435/5 "2022-08-31T17:48:32Z")

</div>

I created a new custom social connection and sent the same `upstream_params` payload with success.

I used the [Management API Explorer](https://auth0.com/docs/api/management/v2#!/Connections/patch_connections_by_id) to complete the request. Have you tried it?

---

<div class="post-metadata">

**Author:** ![Troopers](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/troopers/32/14673_2.png) [@Troopers](https://community.auth0.com/u/Troopers)\
**Post date:** [September 1, 2022, 7:20am UTC](https://community.auth0.com/t/set-upstream-params-on-social-connection/89435/6 "2022-09-01T07:20:53Z")

</div>

Hi dan,  
Strangely it works with the management API Explorer but not with Postman.  
Have you an idea why?  
Thanks you for your help

---

<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:** [September 1, 2022, 3:59pm UTC](https://community.auth0.com/t/set-upstream-params-on-social-connection/89435/7 "2022-09-01T15:59:29Z")

</div>

Can you send a screenshot of your postman setup? Please remove/obscure sensitive info.

---

<div class="post-metadata">

**Author:** ![Troopers](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/troopers/32/14673_2.png) [@Troopers](https://community.auth0.com/u/Troopers)\
**Post date:** [September 2, 2022, 6:31am UTC](https://community.auth0.com/t/set-upstream-params-on-social-connection/89435/8 "2022-09-02T06:31:41Z")

</div>

![image](https://global.discourse-cdn.com/auth0/original/3X/6/c/6cf5fa1cc34e4b32f407ece0be89ba8973536c5a.png)  
 ![image](https://global.discourse-cdn.com/auth0/original/3X/6/5/658542d5da628a47b42f6251ae178dd4727a55ca.png)  
 ![image](https://global.discourse-cdn.com/auth0/original/3X/c/8/c8ef03bebb89cc11f63cb731c6d87dc2bcb84c76.jpeg)  
 ![image](https://global.discourse-cdn.com/auth0/original/3X/9/6/969366cdacd92abcca1be738d54d5487b3fb5e22.jpeg)  
Authorization token is inherited from collection

A simple body like this doesn’t work in Postman either  
{  
“options”: {  
“scope”: “openid”,  
}  
}

---

<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 11, 2023, 1:01pm UTC](https://community.auth0.com/t/set-upstream-params-on-social-connection/89435/9 "2023-05-11T13:01:44Z")

</div>


