@Dyasani, Ranjeeth (NonEmp) • You can't use claims transformation for this purpose because you can't actually access the actual scp claim in the pipeline, as it might be tempered and may cause serious security issues.
Best you can do is, use {OIDC:Scope} claims resolver to capture scope parameter in the authentication request and pass it as scope claim in the token.
Read more: https://learn.microsoft.com/en-us/azure/active-directory-b2c/claim-resolver-overview
-----------------------------------------------------------------------------------------------------------
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.