<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
0D54z00009hWUcoCAGOkta Identity EngineWorkflowsAnswered2023-09-29T15:04:23.000Z2023-09-27T14:46:25.000Z2023-09-29T15:04:23.000Z

PaddyS.17074 (Customer) asked a question.

Is it possible to customize access token scopes during workflow?

I managed to add/replace/remove claims dynamically in an id-token and access-token using inline hooks.

 

However, the documentation (https://developer.okta.com/docs/reference/token-hook/) mentions "scopes", "scope" and "scp" as reserved claims and cannot be overridden.

 

Is there any other mechanism to externally edit the "scope" claim in the access token during the workflow?

 

I see that a command like below has no effect.

```

"type": "com.okta.access.patch",

"value": [

{

"op": "replace",

"path": "/claims/scp",

"value": "[custom-scope]"

}

]

}

 

 

```


This question is closed.
Loading
Is it possible to customize access token scopes during workflow?