<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
System Status
Announcements
Announcements
Search
Search
Select Language
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?
Okta Support Agent (Beta)

Terms of Service

Hello! I'm the Okta Support Agent (Beta), your go-to resource for questions about Okta products. Please remember for your security and privacy, do not share any Personally Identifiable Information (PII) such as passwords, IP addresses, or other details with me.

Okta Privacy Policy and Terms of Service apply