How to assign role to active directory user

Hello,

I created one tenant and also configured the application and configure the enterprise solution called Microsoft active directory. user can successfully login to my portal using active directory cred… onto my tenant, I have created multiples of the role of the user.
Problem: when users logged into my portal using the active directory they successfully logged in. but they don’t have any assigned roles. how to assign the role of the user before login into my portal. because active directory user records are there onto the Microsoft, not an auth0. auth0 will get the user record once they logged into my portal then created his/her record. but I wanna assign the role of the user before login into my portal.