
PaddyS.17074 (Customer) asked a question.
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]"
}
]
}
```

Hi @PaddyS.17074 (Customer) , Thank you for reaching out to the Okta Community!
I ran this by my workflows colleagues and they were not able to confirm that this is possible via Workflows.
You could also check with our Developer colleagues on devforum.okta.com to discuss other potential inline hooks options.
If my answer helped, remember to mark it as best to increase its visibility for other members of the Okta Community who might have the same questions as you.
Hope my answer helps!
--------------------------------
Headed to Oktane? Here's what you can expect, plus all the Okta tips you may have missed this month