User impersonation feature is on-boarded to wso2 Identity Server with version 7.1. Please find the impersonation guide from here [1].
[1] https://is.docs.wso2.com/en/next/guides/authorization/user-impersonation/