Sunday, 18 June 2017

Failed: Not approved for access in salesforce



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

5 comments:

  1. Great article. illustration using screenshots solved the problem in much much less time..
    Thanks Amit.

    ReplyDelete
  2. Thank you so much bro you save me

    ReplyDelete
  3. what if Login Type: Other Apex API & Application: N/A? same error Failed: Not approved for access

    ReplyDelete
  4. Go to your Profile > Session Settings > Check 'Relax login IP restrictions' (must be selected)

    At least this is what helped me. Best of luck :)

    ReplyDelete
    Replies
    1. System Permissions > Use Any API Client

      Delete