DEV Community ๐Ÿ‘ฉโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป

DEV Community ๐Ÿ‘ฉโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป is a community of 963,864 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
Max Katz for Okta Workflows

Posted on • Originally published at maxkatz.net on

How to Fix a 403 Forbidden Error When Using Search Systems Logs Card

Okta Workflows how-to guides are questions and answers from weekly community office hours, MacAdmins Workflows Slack channel, and other places.

Read all the other how-to guides โคต๏ธ

On to the question.

How to fix 403 Forbidden error when using Search Systems Logs card?

Okta โ€“ Search Systems Logs card allows you to search the Okta log by a keyword (and also expression, set in Options ):

Search Systems Logs card

Search Systems Logs card

When a run a flow with this card, you might get a 403 Forbidden error:

403 Forbidden error with Search Systems Logs card

403 Forbidden error with Search Systems Logs card

To fix this error you need to grand an additional scope to the Okta connection.

  1. From the Admin Console , go to Applications > Applications
  2. Click on Okta Workflows OAuth
  3. Open Okta API Scopes tab
  4. Find okta.logs.read scope and click Grant
  5. For this scope to take affect, you need to reauthorize the connection being used

Granding a scope to a connection

Granding a scope to a connection

After you reauthorize, run the flow again. The card is now able to search the logs:

Search Systems Logs card

Search Systems Logs card

๐Ÿ™๐Ÿผ Thanks to Bryan Barrows (LinkedIn, blog) who helped with this question on MacAdmins Slack channel.


More resources to help you learn :

๐Ÿ“บ Short how-to Workflows videos to help you become a better automation builder.

๐Ÿญ A collection of helpful Workflows tips.

Top comments (0)

Our newest Hackathon

Join the DEV x MongoDB Atlas Hackathon 2022 and use your ingenuity and creativity to build an application using MongoDB's cloud based developer data platform, MongoDB Atlas.

โ†’ Get Started