Sounds like a SSO usecase that you want, please look into this question raised and answered before:
https://forum.mendix.com/link/space/integrations/questions/116609
Keywords for you are probably:
SSO
Azure AD