After entering credentials and attempting to login to Salesforce, the API user is denied access to the application and is typically accompanied by a Login History Status of "Failed: Not approved for access".
Solution:-
Update OAuth policies and set Permitted Users to "All users may self-authorize".
Step 1) Open the connected App the click on Manage button.
Step 2) Then click on Edit policies button
Step 3) then update "OAuth policies"
Please check below post to resolve this issue
1) https://help.salesforce.com/articleView?id=000212208&language=en_US&type=1
Thanks
Amit Chaudhary
Great article. illustration using screenshots solved the problem in much much less time..
ReplyDeleteThanks Amit.
Thank you so much bro you save me
ReplyDelete