Group ids from azure AD in post login actions

We have Azure AD enterprise connection in auth0. The applications we have expect groupids instead of group names from azure.
I cant seem to find a way to map groupids in incoming connection. I tried print user.groups from azure connection, it only contains list of names. Is there an out of the box way to retrieve group ids instead of group names? Seems like there was an option in rules. But I dont see anything on actions for group ids from azure.