You need to sign in to do that
Don't have an account?
Michelle Soto
Grant acces to customer user through API
We want to grant access to customer for query cases through API. We grant the licence Customer Community Plus, but i don´t know how grant the token because for autenthicate to API needed ClientId, ClientSecret, UserName, Password, Token.
We used a connected app. And that works for us ( Salesforce user ), but for the customer user not works.
When the customer try to "Authenticate", appear the next error: "Authentication failed: InvalidGrant : authentication failure"
We used the next code ( SalesforceSharp ).
Can customer user can to conect through API?
What do you recommend as best practice?
We used a connected app. And that works for us ( Salesforce user ), but for the customer user not works.
When the customer try to "Authenticate", appear the next error: "Authentication failed: InvalidGrant : authentication failure"
We used the next code ( SalesforceSharp ).
var client = new SalesforceClient(); var authFlow = new UsernamePasswordAuthenticationFlow(clientId, clientSecret, username, password); try { client.Authenticate(authFlow); } catch(SalesforceException ex) { Console.WriteLine("Authentication failed: {0} : {1}", ex.Error, ex.Message); }How i can to get the token?
Can customer user can to conect through API?
What do you recommend as best practice?
Does Customer Community Plus user has access to case object? Also community license has minimal access to org component and recommendation would be using salesforce user to query data using api.
You can create a secure Salesforce API user using below reference.
https://help.salesforce.com/s/articleView?id=000386144&type=1
Please mark as Best Answer if above information was helpful.
Thanks,
Thanks for the asnwer but, if i give salesforce user to customer. how i give acces only his account's registers?
We would't like that the customer view the information of another customer.