<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
403 Error or 200 Empty Response with Org2Org Provisioning with OAuth 2.0
Okta Classic Engine
Okta Identity Engine
API Access Management
Overview

The purpose of this article is to assist in addressing 403 errors or receiving empty 200 responses when integrating OAuth for Org2Org provisioning. For example, making calls to endpoints like api/v1/users or api/v1/apps could lead to either a 200 empty response or a 403 error, and this article aims to provide solutions for such scenarios.

 
Applies To
  • Org2Org with OAuth 2.0 provisioning
  • API Service app
Cause

The API Service app created for the OAuth 2.0 provisioning integration is not assigned sufficient admin roles. The admin roles  (assigns permissions and sets it while the API Scopes) are operations that can be performed on above permission/sets so the admin roles should have enough permissions for the scopes provided. The API scopes determine the action that can be performed like manage users, read apps and the admin role determines upon which resources an action can be performed.

Solution

Assign the API Service app an admin role through the Admin Console:

  1. Applications > Applications > Choose the API service app.
  2. Click on the Admin Roles tab.
  3. Assign both the Group Administrator and Group Membership Administrator roles to the app.
  4. Ensure that consent is granted for the API scopes that enable the service app to create new users and manage user profiles and credentials, okta.groups.manage and okta.users.manage.

More details on how to set up this integration can be found in the Related References. 

Related References

Loading
403 Error or 200 Empty Response with Org2Org Provisioning with OAuth 2.0