You need to sign in to do that
Don't have an account?
Aaron Wilson 1
Customer (external identity) accounts accessing Web APIs
Is it possible for customer user accounts (external identity) to access the web apis?
I have am basically trying to access the REST APIs to query account info from the context of an end customer. I have an external identity profile setup with API access enabled, and have setup a connected app, and the profile has access to the connected app. But attempting to authenticate via the oath endpoint always fails with an "invalid grant" error.
Any ideas?
I have am basically trying to access the REST APIs to query account info from the context of an end customer. I have an external identity profile setup with API access enabled, and have setup a connected app, and the profile has access to the connected app. But attempting to authenticate via the oath endpoint always fails with an "invalid grant" error.
Any ideas?
Error invalid_grant happens for below reasons.
>> When there is an IP restriction or login hour restriction.
>> User credentials are not valid.
>> Check if there is any user/ IP restriction.
>> End point URL with 'https://test.salesforce.com' or 'https://login.salesforce.com'.
Thanks,
>> There are no IP restrictions or login hour restrictions on the profile I am using.
>> The credentials are definitely valid (have tried several accounts, teted them on an Experience Cloud site I have, and reset the password a few times)
>> The user has no IP restrictions
>> And I am using the correct test endpoint.
Only other thing I can think of is that the customer account doesn't have an access token so I am not appending this to the password when calling the web service.
Thanks,
https://help.salesforce.com/articleView?id=user_security_token.htm&type=5
Thanks,