<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

Okta 403 Error Occurs When Creating Event Hooks With Custom Roles

Okta Classic Engine
Okta Identity Engine
Admin Roles

Overview

An API application that uses a custom role to manage event hooks generates a 403 error when attempting to create an event hook. This occurs because the custom role lacks the necessary inline hook management permissions. Resolve this issue by assigning the Manage inline hooks permission to the custom role. Specifically, an API application (machine-to-machine) with public key authentication contains scopes such as okta.eventHooks.manage and uses a custom role with the Manage EventHooks permission. When the service requests an access token and attempts to create an event hook, Okta generates a 403 error.

Applies To

  • Okta Identity Engine (OIE)
  • Okta Classic Engine
  • Custom Admin Roles
  • Event Hooks
  • API Applications

Cause

The custom role used by the API application contains only the Manage EventHooks permission. Creating event hooks also requires the Manage inline hooks permission.

Solution

What steps resolve the 403 error when creating event hooks?

Resolve the 403 error by navigating to the custom role settings in the Admin Console and adding the inline hooks management permission.

  1. Open the Admin Console.
  2. Go to Security, and then select Administrators.
  3. Select the Roles tab.
  4. Choose the custom role that the API application uses.
  5. Edit the role to include the Manage inline hooks permission.
  6. Save the changes.

 

Related References

Loading
Okta 403 Error Occurs When Creating Event Hooks With Custom Roles | Okta Support