Hi @大坂 翔 • Thank you for reaching out.
In case of ROPC flow, the credentials are directly checked against Azure AD and redirection to ADFS doesn't happen. However, you can use Azure policy to configure specific application(s) to do the password validation on the cloud without removing the federation. For this purpose, you can follow the steps I have provided in my blog post: ROPC (Username/Password) flow fails with AADSTS50126: Invalid username or password for federated users
If you don't want to enable Password Hash Sync for all users in the tenant, you may consider Selective password hash synchronization configuration for Azure AD Connect.
-----------------------------------------------------------------------------------------------------------
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.