Hi @Pavan Josyula ,
Thanks for reaching out and apologies for delay in response.
Yes, it is possible to send username as input and sitename in the input claim and use REST API to append the value of both and send to output claim.
This can be achieved using user flow or custom policy.
In the user flow, API connector can be configured and userName and siteName claims can be sent along with PostAttributeCollection step attribute in the request which corresponds to "Before creating the user".
API will return the claim that you want to return in the token. It could be a built-in claim or defined as a custom attribute.
Reference: https://learn.microsoft.com/en-us/azure/active-directory-b2c/add-api-connector?pivots=b2c-user-flow
Hope this will help.
Thanks,
Shweta
----------------------------------
Please remember to "Accept Answer" if answer helped you.