One way would be writing a custom claims mapping connector.
https://is.docs.wso2.com/en/5.11.0/develop/writing-a-custom-claim-handler/