Skip to main content

I was testing using JWT token bearer flow from Salesforce to Salesforce.

So I created connected app in one salesforce org, added digital certificate.

Added different profiles System admin, standard user, platform user and customer community plus user etc.

 

then created JKS file out of the certification and add to another salesforce org.

Created Controller class to generate the JWT token and get the access token

and then call the Salesforce APIs.

 

It worked as expected for System admin user, Standard users.

 

But when I tried with Community user it always fired me below error:

 

{"error":"invalid_grant","error_description":"user hasn't approved this consumer"}

 

I even try adding API enabled system permission to its profile but that also did not solve the issue.

 

So it is not possible to authorize Salesforce API using community user?

3 件の回答
0/9000