<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
0D5KZ00000cHSh40AGOkta Identity EngineWorkflowsAnswered2025-04-30T17:55:15.000Z2025-04-15T19:06:21.000Z2025-04-30T17:55:15.000Z
Unable to manage directory group membership using OKTA API from OKTA workflows

Hi Everyone,

I am facing issue in OKTA workflow where we are trying add/remove AD group membership using "/api/v1/directories/{source_id}/groups/modify" (https://developer.okta.com/docs/api/openapi/okta-management/management/tag/DirectoriesIntegration/) OKTA API. We have ensured that the following are configured,

 

OKTA Workflows OAuth app has "okta.directories.groups.manage" scope granted.

The scope is also added OKTA connection in workflow.

The URL and payload are as expected.

AD agent has delegated permissions to OU to perform operations. 

 

However, we are facing 403 forbidden error when we tried to access the API

 

  "body": {  "errorCode": "E0000006",  "errorSummary": "You do not have permission to perform the requested action",  "errorLink": "E0000006",  "errorId": "oaemPBbu9gpS3qoeaZZHCMS9g",  "errorCauses": [] }, "message": "403 Forbidden", "code": 403, "description": "HTTP Request Error", 

 

We thought that the connection is not picking the new scope and tried to replicate the same in lower env by running the flow without scope assigned. We observed that error is 403 forbidden but it is different than the above,

 

error=\"insufficient_scope\", error_description=\"The access token provided does not contain the required scopes.\"

 

So, I believe it is clearly not scopes issue. 

Can you please help me understand if I am missing something here?

 

Thanks

 

 

 


This question is closed.
Loading
Unable to manage directory group membership using OKTA API from OKTA workflows