Azure Active Directory (AAD) groups to confluence

I just wanted to know if there is a way to add Azure Active Directory (AAD) groups to confluence? What happens to the nested groups here will it convert into a flattened list ? Will the rest/api/group/{group-name}/member give a flattened list of users ?