# Salesforce Integration Access Token Invalid

**URL:** <https://community.auth0.com/t/salesforce-integration-access-token-invalid/124072>\
**Category:** Get Help\
**Tags:** other-built-in-social-connections, connections\
**Created:** [January 3, 2024, 4:46pm UTC](https://community.auth0.com/t/salesforce-integration-access-token-invalid/124072 "2024-01-03T16:46:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![howlettga](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/howlettga/32/18481_2.png) [@howlettga](https://community.auth0.com/u/howlettga)\
**Post date:** [January 3, 2024, 4:46pm UTC](https://community.auth0.com/t/salesforce-integration-access-token-invalid/124072/1 "2024-01-03T16:46:09Z")

</div>

I am using this supported Salesforce Integration: [https://marketplace.auth0.com/integrations/salesforce-social-connection](https://marketplace.auth0.com/integrations/salesforce-social-connection)

And I have followed all the steps for retrieving an IDP Access Token using the Management API. I am able to retrieve the following Salesforce Connection Identity:

```auto
"identities": [
  {
    "access_token": "...",
    "provider": "salesforce-community",
    "user_id": "005300000##########",
    "connection": "salesforce-community",
    "isSocial": true
  }
]

```

This has the same format as valid Salesforce access tokens, but when I use it against the Salesforce API I get a 401 Invalid Token error. I realize this likely has something to do with my Salesforce Connected App OAuth settings since I do appear to be getting a token from Salesforce itself, but I was just hoping someone may have used this integration before or the supporting developers know what requirements there are to retrieve a valid token.

---

<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:** [January 4, 2024, 10:00pm UTC](https://community.auth0.com/t/salesforce-integration-access-token-invalid/124072/3 "2024-01-04T22:00:49Z")

</div>

Hi @howlettga,

Auth0 is simply providing the token returned from Salesforce, so it shouldn’t be related to Auth0 configuration. I would be fairly confident we can rule this out.

I would start by looking at the types of tokens SF issues and start troubleshooting from there.

[https://help.salesforce.com/s/articleView?id=sf.remoteaccess\_access\_tokens.htm&type=5](https://help.salesforce.com/s/articleView?id=sf.remoteaccess_access_tokens.htm&type=5)

Usually, invalid token errors mean that there is a problem with the token itself; i.e. it is expired, malformed, etc.

---

<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:** [January 19, 2024, 4:00pm UTC](https://community.auth0.com/t/salesforce-integration-access-token-invalid/124072/4 "2024-01-19T16:00:42Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
